OpenViBE Documentation 3.6.0
|
Complete OpenViBE box interface. More...
#include <ovIBox.h>
Public Member Functions | |
Box naming and identification | |
virtual CIdentifier | getIdentifier () const =0 |
Gets the identifier of this box. More... | |
virtual CString | getName () const =0 |
Gets the display name of this box. More... | |
virtual CIdentifier | getAlgorithmClassIdentifier () const =0 |
Gets the algorithm class identifier. More... | |
virtual bool | setIdentifier (const CIdentifier &id)=0 |
Changes the identifier of this box. More... | |
virtual bool | setName (const CString &name)=0 |
Renames this box. More... | |
virtual bool | setAlgorithmClassIdentifier (const CIdentifier &id)=0 |
Changes the algorithm identifier of this box. More... | |
virtual CIdentifier | getUnusedSettingIdentifier (const CIdentifier &id=CIdentifier::undefined()) const =0 |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of settings. More... | |
virtual CIdentifier | getUnusedInputIdentifier (const CIdentifier &id=CIdentifier::undefined()) const =0 |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of the inputs of the given map object. More... | |
virtual CIdentifier | getUnusedOutputIdentifier (const CIdentifier &id=CIdentifier::undefined()) const =0 |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of the outputs of the given map object. More... | |
Initialisation from prototypes etc... | |
virtual bool | initializeFromAlgorithmClassIdentifier (const CIdentifier &id)=0 |
Initializes the box from box algorithm descriptor. More... | |
virtual bool | initializeFromExistingBox (const IBox &existingBox)=0 |
Initializes the box from an already existing box. More... | |
virtual bool | addInterfacor (const EBoxInterfacorType type, const CString &name, const CIdentifier &typeID, const CIdentifier &id, const bool notify=true)=0 |
virtual bool | removeInterfacor (const EBoxInterfacorType type, const size_t index, const bool notify=true)=0 |
virtual size_t | getInterfacorCount (const EBoxInterfacorType type) const =0 |
virtual size_t | getInterfacorCountIncludingDeprecated (const EBoxInterfacorType type) const =0 |
virtual bool | getInterfacorIdentifier (const EBoxInterfacorType type, const size_t index, CIdentifier &id) const =0 |
virtual bool | getInterfacorIndex (const EBoxInterfacorType type, const CIdentifier &id, size_t &index) const =0 |
virtual bool | getInterfacorIndex (const EBoxInterfacorType type, const CString &name, size_t &index) const =0 |
virtual bool | getInterfacorType (const EBoxInterfacorType type, const size_t index, CIdentifier &typeID) const =0 |
virtual bool | getInterfacorType (const EBoxInterfacorType type, const CIdentifier &id, CIdentifier &typeID) const =0 |
virtual bool | getInterfacorType (const EBoxInterfacorType type, const CString &name, CIdentifier &typeID) const =0 |
virtual bool | getInterfacorName (const EBoxInterfacorType type, const size_t index, CString &name) const =0 |
virtual bool | getInterfacorName (const EBoxInterfacorType type, const CIdentifier &id, CString &name) const =0 |
virtual bool | getInterfacorDeprecatedStatus (const EBoxInterfacorType type, const size_t index, bool &value) const =0 |
virtual bool | getInterfacorDeprecatedStatus (const EBoxInterfacorType type, const CIdentifier &id, bool &value) const =0 |
virtual bool | hasInterfacorWithIdentifier (const EBoxInterfacorType type, const CIdentifier &id) const =0 |
virtual bool | hasInterfacorWithType (const EBoxInterfacorType type, const size_t index, const CIdentifier &typeID) const =0 |
virtual bool | hasInterfacorWithNameAndType (const EBoxInterfacorType type, const CString &name, const CIdentifier &typeID) const =0 |
virtual bool | setInterfacorType (const EBoxInterfacorType type, const size_t index, const CIdentifier &typeID)=0 |
virtual bool | setInterfacorType (const EBoxInterfacorType type, const CIdentifier &id, const CIdentifier &typeID)=0 |
virtual bool | setInterfacorType (const EBoxInterfacorType type, const CString &name, const CIdentifier &typeID)=0 |
virtual bool | setInterfacorName (const EBoxInterfacorType type, const size_t index, const CString &name)=0 |
virtual bool | setInterfacorName (const EBoxInterfacorType type, const CIdentifier &id, const CString &name)=0 |
virtual bool | setInterfacorDeprecatedStatus (const EBoxInterfacorType type, const size_t index, const bool value)=0 |
virtual bool | setInterfacorDeprecatedStatus (const EBoxInterfacorType type, const CIdentifier &id, const bool value)=0 |
virtual bool | updateInterfacorIdentifier (const EBoxInterfacorType type, const size_t index, const CIdentifier &id)=0 |
virtual bool | addInterfacorTypeSupport (const EBoxInterfacorType type, const CIdentifier &typeID)=0 |
virtual bool | hasInterfacorTypeSupport (const EBoxInterfacorType type, const CIdentifier &typeID) const =0 |
Input management | |
virtual bool | addInput (const CString &name, const CIdentifier &typeID, const CIdentifier &id=CIdentifier::undefined(), const bool notify=true)=0 |
Adds an input to this box. More... | |
virtual bool | removeInput (const size_t index, const bool notify=true)=0 |
Removes an input for this box. More... | |
virtual size_t | getInputCount () const =0 |
Gets the number of inputs for this box. More... | |
virtual bool | getInputType (const size_t index, CIdentifier &typeID) const =0 |
Gets an input type identifier by index. More... | |
virtual bool | getInputName (const size_t index, CString &name) const =0 |
Gets an input name by index. More... | |
virtual bool | setInputType (const size_t index, const CIdentifier &typeID)=0 |
Sets an input type identifier by index. More... | |
virtual bool | setInputName (const size_t index, const CString &name)=0 |
Sets an input name by index. More... | |
Output management | |
virtual bool | addOutput (const CString &name, const CIdentifier &typeID, const CIdentifier &id=CIdentifier::undefined(), const bool notify=true)=0 |
Adds an output to this box. More... | |
virtual bool | removeOutput (const size_t index, const bool notify=true)=0 |
Removes an output for this box. More... | |
virtual size_t | getOutputCount () const =0 |
Gets the number of outputs for this box. More... | |
virtual bool | getOutputType (const size_t index, CIdentifier &typeID) const =0 |
Gets an output type identifier by index. More... | |
virtual bool | getOutputName (const size_t index, CString &name) const =0 |
Gets an output name by index. More... | |
virtual bool | setOutputType (const size_t index, const CIdentifier &typeID)=0 |
Sets an output type identifier by index. More... | |
virtual bool | setOutputName (const size_t index, const CString &name)=0 |
Sets an output name by index. More... | |
Setting management | |
virtual bool | addSetting (const CString &name, const CIdentifier &typeID, const CString &value, const size_t index=size_t(-1), const bool modifiability=false, const CIdentifier &id=CIdentifier::undefined(), const bool notify=true)=0 |
Adds a setting to this box. More... | |
virtual bool | removeSetting (const size_t index, const bool notify=true)=0 |
Removes a setting for this box. More... | |
virtual size_t | getSettingCount () const =0 |
Gets the number of settings for this box. More... | |
virtual bool | hasSettingWithName (const CString &name) const =0 |
checks if a setting with a given name is present More... | |
virtual bool | getSettingType (const size_t index, CIdentifier &typeID) const =0 |
Gets a setting type by index. More... | |
virtual bool | getSettingName (const size_t index, CString &name) const =0 |
Gets a setting name by index. More... | |
virtual bool | getSettingDefaultValue (const size_t index, CString &value) const =0 |
Gets the default setting value by index. More... | |
virtual bool | getSettingDefaultValue (const CIdentifier &id, CString &value) const =0 |
Gets the default setting value by id. More... | |
virtual bool | getSettingDefaultValue (const CString &name, CString &defaultValue) const =0 |
Gets the default setting value by name. More... | |
virtual bool | getSettingValue (const size_t index, CString &value) const =0 |
Gets the setting value by index. More... | |
virtual bool | getSettingValue (const CIdentifier &id, CString &value) const =0 |
Gets the setting value by id. More... | |
virtual bool | getSettingValue (const CString &name, CString &value) const =0 |
Gets the setting value by name. More... | |
virtual bool | setSettingType (const size_t index, const CIdentifier &typeID)=0 |
Sets a setting type identifier by index. More... | |
virtual bool | setSettingName (const size_t index, const CString &name)=0 |
Sets a setting name by index. More... | |
virtual bool | setSettingDefaultValue (const size_t index, const CString &value)=0 |
Sets the default setting value by index. More... | |
virtual bool | setSettingDefaultValue (const CIdentifier &id, const CString &value)=0 |
Sets the default setting value by id. More... | |
virtual bool | setSettingDefaultValue (const CString &name, const CString &value)=0 |
Sets the default setting value by name. More... | |
virtual bool | setSettingValue (const size_t index, const CString &value, const bool notify=true)=0 |
Sets the setting value by index. More... | |
virtual bool | setSettingValue (const CIdentifier &id, const CString &value)=0 |
Sets the setting value by id. More... | |
virtual bool | setSettingValue (const CString &name, const CString &value)=0 |
Sets the setting value by name. More... | |
virtual bool | getSettingMod (const size_t index, bool &value) const =0 |
Gets the setting modifiability by index. More... | |
virtual bool | getSettingMod (const CIdentifier &id, bool &value) const =0 |
Gets the setting modifiability by id. More... | |
virtual bool | getSettingMod (const CString &name, bool &value) const =0 |
Gets the setting modifiability by name. More... | |
virtual bool | setSettingMod (const size_t index, const bool value)=0 |
Sets the setting modifiability by index. More... | |
virtual bool | setSettingMod (const CIdentifier &id, const bool value)=0 |
Sets the setting modifiability by id. More... | |
virtual bool | setSettingMod (const CString &name, const bool value)=0 |
Sets the setting modifiability by name. More... | |
virtual bool | swapSettings (const size_t indexA, const size_t indexB)=0 |
virtual bool | swapInputs (const size_t indexA, const size_t indexB)=0 |
virtual bool | swapOutputs (const size_t indexA, const size_t indexB)=0 |
virtual bool | hasModifiableSettings () const =0 |
Inform if the box possess a modifiable interface. More... | |
virtual size_t * | getModifiableSettings (size_t &count) const =0 |
Input/Output management | |
virtual bool | addInputSupport (const CIdentifier &typeID)=0 |
Marks this type as supported by inputs. More... | |
virtual bool | hasInputSupport (const CIdentifier &typeID) const =0 |
Indicates if a type is support by inputs. More... | |
virtual bool | addOutputSupport (const CIdentifier &typeID)=0 |
Marks this type as supported by outputs. More... | |
virtual bool | hasOutputSupport (const CIdentifier &typeID) const =0 |
Indicates if a type is support by outputs. More... | |
virtual bool | setSupportTypeFromAlgorithmIdentifier (const CIdentifier &typeID)=0 |
Set the supported stream type for input and output according to the restriction of the algorithm whose identifier is given in parameter. More... | |
virtual std::vector< CIdentifier > | getInputSupportTypes () const =0 |
Get a vector of input supported types. More... | |
virtual std::vector< CIdentifier > | getOutputSupportTypes () const =0 |
Get a vector of output supported types. More... | |
virtual void | clearOutputSupportTypes ()=0 |
clear output supported types list More... | |
virtual void | clearInputSupportTypes ()=0 |
clear input supported types list More... | |
Public Member Functions inherited from OpenViBE::Kernel::IAttributable | |
virtual bool | addAttribute (const CIdentifier &id, const CString &value)=0 |
virtual bool | removeAttribute (const CIdentifier &id)=0 |
virtual bool | removeAllAttributes ()=0 |
virtual CString | getAttributeValue (const CIdentifier &id) const =0 |
virtual bool | setAttributeValue (const CIdentifier &id, const CString &value)=0 |
virtual bool | hasAttribute (const CIdentifier &id) const =0 |
virtual bool | hasAttributes () const =0 |
virtual CIdentifier | getNextAttributeIdentifier (const CIdentifier &previousID) const =0 |
Public Member Functions inherited from OpenViBE::IObject | |
virtual CIdentifier | getClassIdentifier () const =0 |
Returns the final class identifier of the concrete class. More... | |
virtual bool | isDerivedFromClass (const CIdentifier &classId) const |
Checks if this object is compatible with a class identifier. More... | |
virtual bool | acceptVisitor (IObjectVisitor &visitor) |
Requests this object to accept a visitor. More... | |
Public Member Functions inherited from OpenViBE::CObservable | |
virtual void | addObserver (IObserver *o) |
Add the observer give in parameter in the list of observers of the object. More... | |
virtual void | deleteObserver (IObserver *o) |
Remove the observer give in parameter from the list of observers of the object. Only the first occurence of the observer will be remove from the list. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from OpenViBE::IObject | |
virtual | ~IObject () |
Protected Member Functions inherited from OpenViBE::CObservable | |
virtual void | setChanged () |
This function is used to indicate when the notification need to reach the observers. If this function is not called before notifyObserver, the notification will be ignore. More... | |
virtual void | clearChanged () |
Revert the effect of setChanged. | |
virtual bool | hasChanged () |
Indicate if some change have been made. More... | |
virtual void | notifyObservers (void *data=nullptr) |
Notify all registered observers. More... | |
Complete OpenViBE box interface.
This interface can be used in order to fully describe an OpenViBE black box. It describes its identification values, its inputs, its outputs and its settings.
|
pure virtual |
Gets the identifier of this box.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the display name of this box.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the algorithm class identifier.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Changes the identifier of this box.
id | [in] : The new id this box should take. |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Renames this box.
name | [in] : The name this box should take |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Changes the algorithm identifier of this box.
id | [in] : The new algorithm identifier this box should take. |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of settings.
id | [in] : the requested id |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of the inputs of the given map object.
id | [in] : the requested id |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Requests for a suggested id. If it is already used in the box or if it is CIdentifier::undefined(), a news random one is proposed uniq in the scope of the outputs of the given map object.
id | [in] : the requested id |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Initializes the box from box algorithm descriptor.
id | [in] : The new algorithm identifier this box should take. |
Resets the box and initializes its input/output/settings according to the box algorithm descriptor
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Initializes the box from an already existing box.
existingBox | [in] : The existing box. |
Resets the box and initializes its input/output/settings according to the existing box.
|
pure virtual |
Adds an input to this box.
name | [in] : The input name |
typeID | [in] : The input type id |
id | [in] : The input id |
notify | : if true, activate notification callback (true by default) |
The input is always added after the last already existing input.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Removes an input for this box.
index | [in] : The index of the input to be removed |
notify | manage notify. Is enabled by default |
Inputs coming after the removed input have their indices changing after this, they all decrease by 1.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the number of inputs for this box.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets an input type identifier by index.
index | [in] : The input index |
typeID | [out] : The type identifier |
typeID
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets an input name by index.
index | [in] : The input index |
name | [out] : The name of this input |
name
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets an input type identifier by index.
index | [in] : The input index |
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets an input name by index.
index | [in] : The input index |
name | [in] : The name of this input |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Adds an output to this box.
name | [in] : The output name |
typeID | [in] : The output type idenfitier |
id | [in] : The output id |
notify | : if true, activate notification callback (true by default) |
The output is always added after the last already existing output.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Removes an output for this box.
index | [in] : The index of the output to remove |
notify | manage notify. Is enabled by default |
Outputs coming after the removed output have their indices changing after this, they all decrease by 1.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the number of outputs for this box.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets an output type identifier by index.
index | [in] : The output index |
typeID | [out] : The type identifier |
typeID
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets an output name by index.
index | [in] : The output index |
name | [out] : The name of this output |
name
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets an output type identifier by index.
index | [in] : The output index |
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets an output name by index.
index | [in] : The output index |
name | [in] : The name of this output |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Adds a setting to this box.
name | [in] : The setting name |
typeID | [in] : The setting type id |
value | [in] : The default value for this setting |
index | [in] : The index where to add the setting |
modifiability | [in] : true if modifiable setting |
id | [in] : The setting id |
notify | if true, activate notification callback (true by default) |
The setting is added to the index required. The default value -1 means that the setting will be add to the end.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Removes a setting for this box.
index | [in] : The index of the setting to remove |
notify | manage notify. Is enabled by default |
Settings coming after the removed setting have their indices changing after this, they all decrease by 1.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the number of settings for this box.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
checks if a setting with a given name is present
name | [in] : Name of the setting |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets a setting type by index.
index | [in] : The setting index |
typeID | [out] : The type identifier |
typeID
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets a setting name by index.
index | [in] : The setting index |
name | [out] : The name of this setting |
name
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the default setting value by index.
index | [in] : The setting index |
value | [out] : The default value |
value
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the default setting value by id.
id | [in] : The setting id |
value | [out] : The default value |
value
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the default setting value by name.
name | [in] : The setting name |
defaultValue | [out] : The default value |
defaultValue
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting value by index.
index | [in] : The setting index |
value | [out] : The value |
value
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting value by id.
id | [in] : The setting id |
value | [out] : The value |
value
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting value by name.
name | [in] : The setting name |
value | [out] : The value |
value
remains unchanged. Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets a setting type identifier by index.
index | [in] : The setting index |
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets a setting name by index.
index | [in] : The setting index |
name | [in] : The name of this setting |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the default setting value by index.
index | [in] : The setting index |
value | [in] : The default value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the default setting value by id.
id | [in] : The setting id |
value | [in] : The default value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the default setting value by name.
name | [in] : The setting name |
value | [in] : The default value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting value by index.
index | [in] : The setting index |
value | [in] : The value |
notify | : allow notification |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting value by id.
id | [in] : The setting id |
value | [in] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting value by name.
name | [in] : The setting name |
value | [in] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting modifiability by index.
index | [in] : The setting index |
value | [out] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting modifiability by id.
id | [in] : The setting id |
value | [out] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Gets the setting modifiability by name.
name | [in] : The setting name |
value | [out] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting modifiability by index.
index | [in] : The setting index |
value | [in] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting modifiability by id.
id | [in] : The setting id |
value | [in] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Sets the setting modifiability by name.
name | [in] : The setting name |
value | [in] : The value |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Inform if the box possess a modifiable interface.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Marks this type as supported by inputs.
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Indicates if a type is support by inputs.
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Marks this type as supported by outputs.
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Indicates if a type is support by outputs.
typeID | [in] : The type identifier |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Set the supported stream type for input and output according to the restriction of the algorithm whose identifier is given in parameter.
typeID | [in] : identifier of the algorithm |
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Get a vector of input supported types.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
Get a vector of output supported types.
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
clear output supported types list
Implemented in OpenViBE::Tracker::TrackerBox.
|
pure virtual |
clear input supported types list
Implemented in OpenViBE::Tracker::TrackerBox.