From 1d05d2380bb4f1fd265aef55744f432af38b08aa Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 8 Dec 2013 10:55:03 +0000 Subject: switched signals to double and random to uint16 --- rotord/src/rotor.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'rotord/src/rotor.cpp') 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(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(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); } -- cgit v1.2.3