The VisualisationManager handles IVisualisationTree objects It maintains a list of IVisualisationTree objects, each of which is associated to a scenario. This manager is used both at scenario creation time (to load or create IVisualisationTree objects), and when the scenario is being run (to forward IVisualisationWidget pointers to the related IVisualisationTree).
More...
Inherits IKernelObject.
Inherited by TKernelObject< OpenViBE::Kernel::IVisualisationManager >.
The VisualisationManager handles IVisualisationTree objects It maintains a list of IVisualisationTree objects, each of which is associated to a scenario. This manager is used both at scenario creation time (to load or create IVisualisationTree objects), and when the scenario is being run (to forward IVisualisationWidget pointers to the related IVisualisationTree).
- Author
- Vincent Delannoy (INRIA/IRISA)
- Date
- 2007-11
virtual OpenViBE::boolean initialize3DContext |
( |
void |
| ) |
|
|
pure virtual |
Initialize 3D context and primary render window.
- Returns
- True if 3d context was successfully initialized, false otherwise
Create a resource group.
- Parameters
-
[out] | rResourceGroupIdentifier | Identifier of resource group created |
[in] | rResourceGroupName | Resource group name |
- Returns
- True if resource group could be created, false otherwise
virtual OpenViBE::boolean addResourceLocation |
( |
const OpenViBE::CIdentifier & |
rResourceGroupIdentifier, |
|
|
const OpenViBE::CString & |
rResourceName, |
|
|
OpenViBE::Kernel::EResourceType |
rResourceType, |
|
|
OpenViBE::boolean |
bRecursive |
|
) |
| |
|
pure virtual |
Add a resource location.
- Parameters
-
rResourceGroupIdentifier | Resource group identifier |
rResourceName | Resource name |
eResourceType | Resource type |
bRecursive | Resources are added recursively from location passed in parameter if true |
- Returns
- True if resource location could be added, false otherwise
virtual OpenViBE::boolean initializeResourceGroup |
( |
const OpenViBE::CIdentifier & |
rResourceGroupIdentifier | ) |
|
|
pure virtual |
Initialize resource group.
- Parameters
-
rResourceGroupIdentifier | Resource group identifier |
- Returns
- True if resource group could be initialized (or was initialized already), false if an error occurred
Destroy resource group.
- Parameters
-
rResourceGroupIdentifier | Resource group identifier |
- Returns
- True if resource group could be destroyed (or was initialized already), false if an error occurred
virtual OpenViBE::boolean createVisualisationTree |
( |
OpenViBE::CIdentifier & |
rVisualisationTreeIdentifier | ) |
|
|
pure virtual |
Creates an IVisualisationTree object.
- Parameters
-
rVisualisationTreeIdentifier | [out] identifier of the IVisualisationTree object created by this method |
- Returns
- True if object was successfully created, false otherwise
virtual OpenViBE::boolean releaseVisualisationTree |
( |
const OpenViBE::CIdentifier & |
rVisualisationTreeIdentifier | ) |
|
|
pure virtual |
Releases an IVisualisationTree object.
- Parameters
-
rVisualisationTreeIdentifier | [in] identifier of the IVisualisationTree object to be released |
- Returns
- True if object was successfully released, false otherwise
virtual OpenViBE::boolean setToolbar |
( |
const CIdentifier & |
rVisualisationTreeIdentifier, |
|
|
const CIdentifier & |
rBoxIdentifier, |
|
|
::GtkWidget * |
pToolbar |
|
) |
| |
|
pure virtual |
Set the toolbar of a visualisation plugin. This method is to be called by visualisation plugins as they are being initialized. It lets them send a pointer to their toolbar (if they have one) to the scenario's IVisualisationTree.
- Parameters
-
rVisualisationTreeIdentifier | [in] identifier of IVisualisationTree to which the toolbar pointer is to be forwarded |
rBoxIdentifier | [in] Identifier of IBox whose toolbar pointer is being set |
pToolbarWidget | [in] pointer to the toolbar of the widget |
- Returns
- True if pointer was successfully forwarded to IVisualisationTree, false otherwise
virtual OpenViBE::boolean setWidget |
( |
const CIdentifier & |
rVisualisationTreeIdentifier, |
|
|
const CIdentifier & |
rBoxIdentifier, |
|
|
::GtkWidget * |
pTopmostWidget |
|
) |
| |
|
pure virtual |
Set the topmost widget of a visualisation plugin. This method is to be called by visualisation plugins as they are being initialized. It lets them send a pointer to their topmost widget to the scenario's IVisualisationTree.
- Parameters
-
rVisualisationTreeIdentifier | [in] identifier of IVisualisationTree to which the toolbar pointer is to be forwarded |
rBoxIdentifier | [in] Identifier of IBox whose topmost widget pointer is being set |
pWidget | [in] pointer to the main window of the widget |
- Returns
- True if pointer was successfully forwarded to IVisualisationTree, false otherwise