diff options
Diffstat (limited to 'NT/src/rotor.cpp')
| -rw-r--r-- | NT/src/rotor.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index f600c7f..6380f28 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -13,6 +13,9 @@ string Variable::get_connection_id(){ if (connection) return connection->get_id(); return ""; } +string Variable::get_name(){ + return name; +} template <class T> Json::Value Variable_type<T>::to_json(){ @@ -98,13 +101,7 @@ int main(){ //now need a way to grab output - Node* p=r.graph.find_node("print"); + printf("%s\n",r.text_render().c_str()); - if (p){ - for (double t=0;t<10.0;t+=0.765){ - Frame_parameters f=Frame_parameters(t,25.0,10.0,640,360); - printf("%04f %s\n",t,(dynamic_cast<Node_type<string>*>(p))->get_output(f).c_str()); - } - } } |
