summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/rotor.h')
-rw-r--r--rotord/src/rotor.h8
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);