diff options
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rw-r--r-- | rotord/src/rotor.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 83a0fa7..afb47e0 100644 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -81,40 +81,40 @@ Node_factory::Node_factory(){ add_type("ui_text",new UI_text(),category["UI"]); } -float Signal_input::get_time_used(){ +double Signal_input::get_time_used(){ if (connection){ return ((Signal_node*)connection)->get_time_used(); } - return 0.0f; + return 0.0; } -float Signal_input::get_time_taken(){ +double Signal_input::get_time_taken(){ if (connection){ return ((Signal_node*)connection)->time_taken; } - return 0.0f; + return 0.0; } bool Signal_input::connect(Node* source) { connection=dynamic_cast<Signal_node*>(source); if (connection) return true; else return false; } -float Signal_input::get(const Time_spec& time){ //gets input and updates variable +double Signal_input::get(const Time_spec& time){ //gets input and updates variable if (connection){ return (((Signal_node*)connection)->get_output(time)); } - else return 0.0f; + else return 0.0; } -float Image_input::get_time_used(){ +double Image_input::get_time_used(){ if (connection){ return ((Image_node*)connection)->get_time_used(); } - return 0.0f; + return 0.0; } -float Image_input::get_time_taken(){ +double Image_input::get_time_taken(){ if (connection){ return ((Image_node*)connection)->time_taken; } - return 0.0f; + return 0.0; } bool Image_input::connect(Node* source) { connection=dynamic_cast<Image_node*>(source); @@ -127,7 +127,7 @@ Image* Image_input::get(const Frame_spec& time){ //gets input and updates variab } else return nullptr; } -float Parameter::get(const Time_spec& time){ //gets input and updates variable +double Parameter::get(const Time_spec& time){ //gets input and updates variable if (connection){ value = ((Signal_node*)connection)->get_output(time); } |
