diff options
| author | Comment <tim@gray.(none)> | 2013-08-16 00:56:32 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-08-16 00:56:32 +0100 |
| commit | 1af93fbfe4c8cfa214331d2d96327637ffe749bf (patch) | |
| tree | f452a61b83e16993c5b4702f3a46c85d7d0829b6 /rotord/src/rotor.h | |
| parent | f91c866884819bee50b39b7b370209ef6b94ec53 (diff) | |
adding render log
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 937a884..1f345d1 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -123,6 +123,9 @@ namespace Rotor { class Parameter: public Signal_input{ public: virtual ~Parameter(){}; + 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; float get(const Time_spec& time); @@ -182,6 +185,11 @@ namespace Rotor { attributes[a.first]->init(find_setting(settings,a.first,"")); } } + for (auto p: parameters){ + if (find_setting(settings,p.first,"")!="") { + parameters[p.first]->init(find_setting(settings,p.first,0)); + } + } } void update(const Time_spec &time){ for (auto p: parameters){ |
