88 #include "../r_code/object.h"
104 static uint32 lastOID_;
105 static uint32 GetOID();
116 void reset_ctrl_values();
119 float32 initial_sln_;
120 float32 initial_act_;
122 void init(r_code::_View::SyncMode sync,
130 void reset_init_sln();
131 void reset_init_act();
133 static uint16 ViewOpcode_;
137 static float32 MorphValue(float32 value, float32 source_thr, float32 destination_thr);
138 static float32 MorphChange(float32 change, float32 source_thr, float32 destination_thr);
140 uint32 periods_at_low_sln_;
141 uint32 periods_at_high_sln_;
142 uint32 periods_at_low_act_;
143 uint32 periods_at_high_act_;
148 View(
const View *view,
bool new_OID =
false);
149 View(r_code::_View::SyncMode sync,
156 View(r_code::_View::SyncMode sync,
169 uint32 get_oid()
const;
171 virtual bool is_notification()
const;
175 r_code::_View::SyncMode get_sync();
181 uint32 &ctrl0() {
return code_[VIEW_CTRL_0].atom_; }
182 uint32 &ctrl1() {
return code_[VIEW_CTRL_1].atom_; }
184 void mod_res(float32 value);
185 void set_res(float32 value);
186 void mod_sln(float32 value);
187 void set_sln(float32 value);
188 void mod_act(float32 value);
189 void set_act(float32 value);
190 void mod_vis(float32 value);
191 void set_vis(float32 value);
193 float32 update_res();
194 float32 update_sln(float32 low, float32 high);
195 float32 update_act(float32 low, float32 high);
196 float32 update_vis();
198 float32 update_sln_delta();
199 float32 update_act_delta();
201 void force_res(float32 value);
204 void mod(uint16 member_index, float32 value);
205 void set(uint16 member_index, float32 value);
207 void delete_from_object();
208 void delete_from_group();
216 bool is_notification()
const override;
221 #include "view.inline.cpp"