diff options
| author | Comment <tim@gray.(none)> | 2013-10-20 15:04:53 -0700 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-10-20 15:04:53 -0700 |
| commit | 565490c5fc393db122f86b3b9bc4ee3b91f95018 (patch) | |
| tree | 2906a428e86354cdab1aede72b535fdcfc43f2f3 /rotord/src/rotor.h | |
| parent | 343afc68943fc7f1815e5eb5fd2df3a8cd201d3c (diff) | |
added step to paramater
Diffstat (limited to 'rotord/src/rotor.h')
| -rw-r--r-- | rotord/src/rotor.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<std::string> _vals={}) { attributes[_attr]=new Attribute(_desc,_title,_value,_vals); |
