From fc9b92ea1ab78e8f8b441cef2416eb73472ff106 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 23 May 2014 09:45:50 +0100 Subject: variable type getter/setter --- NT/src/nodes.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'NT/src/nodes.h') diff --git a/NT/src/nodes.h b/NT/src/nodes.h index f6a8a0d..eaf857b 100644 --- a/NT/src/nodes.h +++ b/NT/src/nodes.h @@ -3,21 +3,12 @@ #include "rotor.h" #include "nodes_audio_analysis.h" +#include "nodes_source.h" using namespace std; namespace Rotor{ - typedef Node_type Number_node; - typedef Node_type String_node; - typedef Node_type Image_node; - typedef Variable_type Number_inlet; - typedef Variable_type String_inlet; - typedef Variable_type Image_inlet; - - typedef Variable_array_type Number_array; - typedef Variable_array_type String_array; - typedef Variable_array_type Image_array; //colour node could be an alias of vec3f node and they could be interchangeable? @@ -46,7 +37,7 @@ namespace Rotor{ Time* clone(Json::Value &_settings) { return new Time(_settings);}; private: }; - class Multiply: public Double_node { + class Multiply: public Number_node { public: Multiply(){ factors=create_array("factors","Factors to multiply","Factors"); @@ -73,7 +64,7 @@ namespace Rotor{ } Multiply* clone(Json::Value &_settings) { return new Multiply(_settings);}; private: - Double_array *factors; + Number_array *factors; }; class Print: public String_node { public: @@ -96,7 +87,7 @@ namespace Rotor{ } Print* clone(Json::Value &_settings) { return new Print(_settings);}; private: - Double_inlet *inlet; + Number_inlet *inlet; }; } -- cgit v1.2.3