From 565490c5fc393db122f86b3b9bc4ee3b91f95018 Mon Sep 17 00:00:00 2001 From: Comment Date: Sun, 20 Oct 2013 15:04:53 -0700 Subject: added step to paramater --- rotord/src/rotor.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index cfdf80f..d9ba66d 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -197,8 +197,8 @@ namespace Rotor { void init(const float &_val){ value=_val; } - Parameter(const string &_type,const string &_desc,const string &_title,float _value,float _min,float _max,Node* _connect): Signal_input(_desc,_title,_connect),value(_value),min(_min),max(_max),type(_type){}; - float value,min,max; + Parameter(const string &_type,const string &_desc,const string &_title,float _value,float _min,float _max,float _step,Node* _connect): Signal_input(_desc,_title,_connect),value(_value),min(_min),max(_max),step(_step),type(_type){}; + float value,min,max,step; float get(const Time_spec& time); string type; }; @@ -236,8 +236,8 @@ namespace Rotor { void create_signal_input(const string &_desc,const string &_title,Node* _connect=nullptr ) { inputs.push_back(new Signal_input(_desc,_title,_connect)); }; - void create_parameter(const string &_name,const string &_type,const string &_desc,const string &_title,float _value=1.0f,float _min=0.0f,float _max=0.0f,Node* _connect=nullptr) { - parameters[_name]=new Parameter(_type,_desc,_title,_value,_min,_max,_connect); + void create_parameter(const string &_name,const string &_type,const string &_desc,const string &_title,float _value=1.0f,float _min=0.0f,float _max=0.0f,float _step=0.0f,Node* _connect=nullptr) { + parameters[_name]=new Parameter(_type,_desc,_title,_value,_min,_max,_step,_connect); }; void create_attribute(const string &_attr,const string &_desc,const string &_title,const string &_value,std::vector _vals={}) { attributes[_attr]=new Attribute(_desc,_title,_value,_vals); -- cgit v1.2.3