diff options
| author | Comment <tim@gray.(none)> | 2013-11-24 11:12:28 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-11-24 11:12:28 +0000 |
| commit | 0582c81b7499281cfd9e8643e763c7521a67aec9 (patch) | |
| tree | 109d275201454cc0031411042e981dc197b98f69 /rotord/src/rotor.cpp | |
| parent | b46286b8262cd5a4b96ac318a6d85d3db39e09e5 (diff) | |
analytics
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rw-r--r-- | rotord/src/rotor.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 0bb9341..9d76626 100644 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -78,6 +78,12 @@ Node_factory::Node_factory(){ add_type("video_feedback",new Video_feedback(),category["FX"]); } +float Signal_input::get_time_used(){ + if (connection){ + return ((Signal_node*)connection)->get_time_used(); + } + return 0.0f; +} bool Signal_input::connect(Node* source) { connection=dynamic_cast<Signal_node*>(source); if (connection) return true; @@ -89,6 +95,12 @@ float Signal_input::get(const Time_spec& time){ //gets input and updates variabl } else return 0.0f; } +float Image_input::get_time_used(){ + if (connection){ + return ((Image_node*)connection)->get_time_used(); + } + return 0.0f; +} bool Image_input::connect(Node* source) { connection=dynamic_cast<Image_node*>(source); if (connection) return true; |
