![]() |
MAK Legion API Documentation
|
The control instance is an instance of a control. More...
Collaboration diagram for Legion::ControlInstance:Public Member Functions | |
| ControlInstance (ControlHandle handle) | |
| Constructor-This is called by the control manager and not to be instantiated by the end user. More... | |
| virtual | ~ControlInstance () |
| Destructor-This is called by the control manager and not to be called by the end user. More... | |
| ControlInstance (const ControlInstance &orig) | |
| copy constructor More... | |
| ControlInstance & | operator= (const ControlInstance &orig) |
| assignment operator More... | |
| ControlHandle | handle () const |
| Get the handle of this instance. Typically not called by the user. More... | |
| ControlType | typeId () const |
| Get unique type id of this class of controls. More... | |
| void | setSourceId (UInt16 id) |
| get/set the sender of this control More... | |
| UInt16 | sourceId () const |
| void | setTargetId (UInt16 id) |
| get/st the receiver of this control. Could be broadcast More... | |
| UInt16 | targetId () const |
| template<typename DATA_TYPE > | |
| DATA_TYPE | data (ParameterId parameterId) const |
| Reads a data attribute from the control. More... | |
| template<typename DATA_TYPE > | |
| const Span< DATA_TYPE > | dataArray (ParameterId parameterId) const |
| Reads an array attribute from the control. More... | |
| template<typename DATA_TYPE > | |
| void | setData (ParameterId parameterId, const DATA_TYPE &val) |
| Sets a data attribute from the control. More... | |
| template<typename DATA_TYPE > | |
| void | setDataArray (ParameterId parameterId, const Span< DATA_TYPE > &val) |
| Sets an array attribute for the control. More... | |
| template<typename DATA_TYPE > | |
| void | addDataArray (ParameterId parameterId, const Span< DATA_TYPE > &val) |
| Addts to an array attribute for the control. More... | |
| template<typename DATA_TYPE > | |
| void | removeDataArray (ParameterId parameterId, const Span< DATA_TYPE > &val) |
| Sets an array attribute for the control. More... | |
| void | setDataArrayLength (ParameterId parameterId, UInt32 length) |
| Sets a dynamic-length data array in the control. This makes a copy of the data. More... | |
| UInt32 | dataArrayLength (ParameterId parameterId) const |
Protected Attributes | |
| ControlHandle | myHandle |
The control instance is an instance of a control.
Controls are created through the control manager.
| Legion::ControlInstance::ControlInstance | ( | ControlHandle | handle | ) |
Constructor-This is called by the control manager and not to be instantiated by the end user.
|
virtual |
Destructor-This is called by the control manager and not to be called by the end user.
| Legion::ControlInstance::ControlInstance | ( | const ControlInstance & | orig | ) |
copy constructor
| void Legion::ControlInstance::addDataArray | ( | ParameterId | parameterId, |
| const Span< DATA_TYPE > & | val | ||
| ) |
Addts to an array attribute for the control.
| DATA_TYPE Legion::ControlInstance::data | ( | ParameterId | parameterId | ) | const |
Reads a data attribute from the control.
| const Span<DATA_TYPE> Legion::ControlInstance::dataArray | ( | ParameterId | parameterId | ) | const |
Reads an array attribute from the control.
| UInt32 Legion::ControlInstance::dataArrayLength | ( | ParameterId | parameterId | ) | const |
| ControlHandle Legion::ControlInstance::handle | ( | ) | const |
Get the handle of this instance. Typically not called by the user.
| ControlInstance& Legion::ControlInstance::operator= | ( | const ControlInstance & | orig | ) |
assignment operator
| void Legion::ControlInstance::removeDataArray | ( | ParameterId | parameterId, |
| const Span< DATA_TYPE > & | val | ||
| ) |
Sets an array attribute for the control.
| void Legion::ControlInstance::setData | ( | ParameterId | parameterId, |
| const DATA_TYPE & | val | ||
| ) |
Sets a data attribute from the control.
| void Legion::ControlInstance::setDataArray | ( | ParameterId | parameterId, |
| const Span< DATA_TYPE > & | val | ||
| ) |
Sets an array attribute for the control.
| void Legion::ControlInstance::setDataArrayLength | ( | ParameterId | parameterId, |
| UInt32 | length | ||
| ) |
Sets a dynamic-length data array in the control. This makes a copy of the data.
| void Legion::ControlInstance::setSourceId | ( | UInt16 | id | ) |
get/set the sender of this control
| void Legion::ControlInstance::setTargetId | ( | UInt16 | id | ) |
get/st the receiver of this control. Could be broadcast
| UInt16 Legion::ControlInstance::sourceId | ( | ) | const |
| UInt16 Legion::ControlInstance::targetId | ( | ) | const |
| ControlType Legion::ControlInstance::typeId | ( | ) | const |
Get unique type id of this class of controls.
|
protected |