From 0582c81b7499281cfd9e8643e763c7521a67aec9 Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 24 Nov 2013 11:12:28 +0000 Subject: analytics --- rotord/src/rotor.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rotord/src/rotor.cpp') 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(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(source); if (connection) return true; -- cgit v1.2.3