diff options
| author | Comment <tim@gray.(none)> | 2013-12-08 10:55:03 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-12-08 10:55:03 +0000 |
| commit | 1d05d2380bb4f1fd265aef55744f432af38b08aa (patch) | |
| tree | 89c1c15497149951d4b99938ad932abde42eae14 /rotord/src/rotor.cpp | |
| parent | e04516069c71a5a1e32e6a5fbf0eb5b86dcfc5a2 (diff) | |
switched signals to double and random to uint16
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); } |
