#include <SceneModel.h>

Public Slots | |
| void | connectParameters (Parameter *sourceParameter, Parameter *targetParameter) |
| Creates a connection between the given parameters. | |
| void | connectParameters (Node *sourceNode, Node *targetNode) |
| Create connections between two nodes (connect by name). | |
| void | createCamera (ViewingParameters *viewingParameters) |
| Creates a new camera with parameters initialized according to the given viewing parameters. | |
| void | deleteCamera (const QString &cameraName) |
| Deletes an existing camera. | |
| void | updateCamera (const QString &cameraName, ViewingParameters *viewingParameters) |
| Applies the given viewing parameters to the camera with the given name. | |
| void | cameraListRequested () |
| Sends the list of camereas when requested. | |
| void | applyCamera (const QString &cameraName, ViewingParameters *viewingParameters) |
| Applies the viewing parameters of the camera with the given name to the given viewing parameters. | |
| void | deleteObject (const QString &name) |
| Deletes a given object. | |
| void | selectDeselectObject (const QString &name) |
| Selects and deselects a given object. | |
| void | deleteSelected () |
| Deletes the currently selected objects from the scene. | |
| void | selectAll () |
| Selects all objects in the scene. | |
| void | evaluateSelectedObjects () |
| Sets the evaluation flag of the selected objects to True. | |
| void | ignoreSelectedObjects () |
| Sets the evaluation flag of the selected objects to False. | |
| void | graphicsSceneSelectionChanged () |
| Updates the selection model according to the currently selected graphics items in the graphics scene. | |
| void | changeNodeName (const QString &name) |
| Updates the m_graphicsItemList in case a node has changed its name. | |
| void | selectObject (const QString &name, bool toggle=false) |
| Selects the object with the given name or toggles the selection state of the object with the given name. | |
| void | deselectObject (const QString &name="") |
| Deselects the object with the given name. | |
| void | setCurrentFrame (int index, bool realtime=false) |
| Sets the index of the current frame in the scene's time. | |
| void | setStartFrame (int index) |
| Sets the index of the start frame in the scene's time. | |
| void | setEndFrame (int index) |
| Sets the index of the end frame in the scene's time. | |
| void | setInFrame (int index) |
| Sets the index of the in frame in the scene's time. | |
| void | setOutFrame (int index) |
| Sets the index of the out frame in the scene's time. | |
| void | setFrameStep (int frameStep) |
| Sets the frame step to use for the scene. | |
| void | setFrameRate (int frameRate) |
| Sets the frame rate to use for the scene. | |
| void | frameSelectedObjects (ViewingParameters *viewingParameters) |
| Adjusts the given viewing parameters so that the currently selected objects are centered in the view. | |
| void | setViewNode (unsigned int stageIndex, ViewNode *viewNode) |
| Sets the node that currently has the view flag set. | |
| void | rebuildScene () |
| Rebuilds the OGRE scene by obtaining the Ogre scene node from the current view node. | |
| void | redrawTriggered () |
| Redraws the OGRE scene when active view node exists. | |
| void | setNewNodePosition (const QPointF &scenePosition) |
| Sets the scene coordinates to use when creating a new node. | |
| void | addKey (NumberParameter *numberParameter) |
| Adds a keyframe for the given number parameter at the current frame index. | |
Signals | |
| void | sceneNameChanged (const QString &name) |
| Signal that is emitted when the scene name has changed. | |
| void | realtimeModeToggled (bool realtime) |
| Signal that is emitted when the realtime mode has changed. | |
| void | selectionChanged (bool objectsSelected) |
| Signal that is emitted when the selection has changed. | |
| void | currentFrameSet (int index) |
| Signal that is emitted when the index of the current frame in the scene's time has been changed. | |
| void | startFrameSet (int index) |
| Signal that is emitted when the index of the start frame in the scene's time has been changed. | |
| void | endFrameSet (int index) |
| Signal that is emitted when the index of the end frame in the scene's time has been changed. | |
| void | inFrameSet (int index) |
| Signal that is emitted when the index of the in frame in the scene's time has been changed. | |
| void | outFrameSet (int index) |
| Signal that is emitted when the index of the out frame in the scene's time has been changed. | |
| void | frameStepSet (int frameStep) |
| Signal that is emitted when the frame step for the scene has been changed. | |
| void | frameRateSet (int frameRate) |
| Signal that is emitted when the frame rate for the scene has been changed. | |
| void | modified () |
| Signal that is emitted when the internal state of the scene model has changed. | |
| void | triggerRedraw () |
| Signal emitted when ogre scene node has changed in a a way that only scene redraw is needed. No structural change. | |
| void | renderingTriggered () |
| Signal emitted when render targets should be updated. | |
| void | imageSet (unsigned int stageIndex, Ogre::TexturePtr image) |
| Signal that is emitted when the image to be viewed has been changed. | |
| void | objectCreated (const QString &objectName) |
| Signal that is emitted when a new object has been created. | |
| void | camerasUpdated (const QList< Node * > &cameraNodes, const QString &cameraName) |
| Signal that is emitted when the list of cameras has changed. | |
Public Member Functions | |
| SceneModel () | |
| Constructor of the SceneModel class. | |
| ~SceneModel () | |
| Destructor of the SceneModel class. | |
| QString | getName () const |
| Returns the name of the scene. | |
| void | setName (const QString &name) |
| Sets the name of the scene. | |
| NodeModel * | getNodeModel () const |
| Returns the node model that holds all scene objects like meshes, cameras and lights. | |
| QItemSelectionModel * | getSelectionModel () const |
| Returns the selection model to use for synchronizing selections in all views. | |
| NodeGraphicsItem * | getGraphicsItem (const QString &name) const |
| Returns the graphics graphics item associated with a node by name. | |
| QGraphicsScene * | getGraphicsScene () const |
| Returns the graphics scene to use for all network views. | |
| QList< QAction * > | getControlActions () const |
| Returns a list of actions representing scene time controls. | |
| QStringList | getSelectedObjects (bool onlyConnections=false) const |
| Builds a list of object names from the current selection. | |
| int | getFrameStep () const |
| Returns the frame step currently set for the scene. | |
| int | getFrameRate () const |
| Returns the frame rate currently set for the scene. | |
| void | getFrameRange (int *firstFrame, int *lastFrame) const |
| Fills the given frame index variables with the frame range available for the scene time. | |
| int | getCurrentFrame () const |
| Returns the index of the current frame in the scene's time. | |
| int | getStartFrame () const |
| Returns the index of the start frame in the scene's time. | |
| int | getEndFrame () const |
| Returns the index of the end frame in the scene's time. | |
| int | getInFrame () const |
| Returns the index of the in frame in the scene's time. | |
| int | getOutFrame () const |
| Returns the index of the out frame in the scene's time. | |
| void | createSceneRoot () |
| Creates the OGRE scene root scene node. | |
| void | createScene (daeElement *rootElement) |
| Creates the scene objects by parsing the COLLADA element tree contained in the given root element. | |
| QString | createObject (const QString &typeName, const QString &name="", const QPointF &position=QPointF(-1,-1), bool select=false, bool visible=true) |
| Creates a scene object of the given type with the given name with a node graphics item at the given location and optionally selects it. | |
| void | connectParameters (Node *sourceNode, const QString &sourceParameterName, Node *targetNode, const QString &targetParameterName) |
| Creates a connection between the parameters with the given names of the given nodes. | |
| void | connectParametersByName (Node *sourceNode, Node *targetNode) |
| Connects all parameters with the same name of two nodes. | |
| void | createDaeElements (daeElement *parentElement) const |
| Creates a COLLADA element tree corresponding to the objects currently contained in the scene. | |
| void | clear () |
| Deletes all objects contained in the scene. | |
Protected Member Functions | |
| virtual void | timerEvent (QTimerEvent *event) |
| Handles timer events for the scene model. | |
Private Slots | |
| void | selectionModelSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| Updates the scene model according to the given item selections. | |
| void | connectionDestroyed (Connection *connection) |
| Removes the connection that has been destroyed from the list of connections. | |
| void | on_m_inFrameAction_triggered (bool checked=false) |
| Event handler that is called when the in frame action has been triggered. | |
| void | on_m_previousKeyAction_triggered (bool checked=false) |
| Event handler that is called when the previous key action has been triggered. | |
| void | on_m_previousFrameAction_triggered (bool checked=false) |
| Event handler that is called when the previous frame action has been triggered. | |
| void | on_m_playAction_toggled (bool checked) |
| Event handler that is called when the play action has been toggled. | |
| void | on_m_realtimeAction_toggled (bool checked) |
| Event handler that is called when the realtime action has been toggled. | |
| void | on_m_nextFrameAction_triggered (bool checked=false) |
| Event handler that is called when the next frame action has been triggered. | |
| void | on_m_nextKeyAction_triggered (bool checked=false) |
| Event handler that is called when the next key action has been triggered. | |
| void | on_m_outFrameAction_triggered (bool checked=false) |
| Event handler that is called when the out frame action has been triggered. | |
Private Member Functions | |
| void | initializeActions () |
| Initializes the actions that are contained in the scene model. | |
| void | updateActions () |
| Enables or disables the timeline actions according to the current frame index. | |
| QPointF | decodePosition (std::string position, const QString &nodeName) |
| Decodes the given position for node graphics items from a COLLADA scene file. | |
| void | createDaeElements (ParameterGroup *parameterGroup, daeElement *parentElement) const |
| Creates COLLADA elements corresponding to the parameters contained in the given parameter group and adds them to the given parent element. | |
Private Attributes | |
| QString | m_name |
| The name of the current scene. | |
| NodeModel * | m_nodeModel |
| The node model that holds all scene objects like meshes, cameras and lights. | |
| QItemSelectionModel * | m_selectionModel |
| The selection model to use for synchronizing selections in all views. | |
| QGraphicsScene * | m_graphicsScene |
| The graphics scene to use for all network views. | |
| QMap< QString, QGraphicsItem * > | m_graphicsItemMap |
| A map for referencing graphics items by name. | |
| QMap< QString, QGraphicsItem * > | m_connectionGraphicsItemMap |
| A map for referencing graphics items (connections) by name. | |
| QMap< unsigned int, Connection * > | m_connectionMap |
| The list of connections currently set up in the scene. | |
| QList< Node * > | m_cameraNodes |
| The list of camera nodes currently set up in the scene. | |
| int | m_newNodeIndex |
| The number of newly created nodes to be used in the name of new nodes. | |
| NumberParameter * | m_frameParameter |
| The parameter containing the index of the current frame and the global frame range. | |
| NumberParameter * | m_frameRangeParameter |
| The parameter defining the indices of the in and out frames. | |
| int | m_frameStep |
| The number of frames to advance the animation by each play back step. | |
| NumberParameter * | m_fpsParameter |
| The parameter containing the number of frames per second. | |
| QTime | m_lastTimestamp |
| The last timestamp. | |
| double | m_averageFps |
| The averarage fps. | |
| unsigned int | m_averageCounter |
| The average counter. | |
| QList< ViewNode * > | m_viewNodeList |
| The node that currently has the view flag set. | |
| int | m_timerId |
| The ID of the scene timer. | |
| Ogre::SceneNode * | m_sceneRoot |
| The parent scene node for all scene objects to be displayed in viewports. | |
| QPointF | m_newNodePosition |
| The position to use for new nodes. | |
| QAction * | m_inFrameAction |
| The action for jumping to the in frame of the animation. | |
| QAction * | m_previousKeyAction |
| The action for jumping to the previous key of the selected channel. | |
| QAction * | m_previousFrameAction |
| The action for selecting the previous frame in the animation. | |
| QAction * | m_playAction |
| The action for starting and stopping animation playback. | |
| QAction * | m_realtimeAction |
| The action for starting and stopping realtime animation playback. | |
| QAction * | m_nextFrameAction |
| The action for selecting the next frame in the animation. | |
| QAction * | m_nextKeyAction |
| The action for jumping to the next key of the selected channel. | |
| QAction * | m_outFrameAction |
| The action for jumping to the out frame of the animation. | |
| QAction * | m_separatorAction |
| The action representing a separator for separating the playback options. | |
| QAction * | m_playOptionsAction |
| The action for grouping playback options. | |
| QAction * | m_playLoopingAction |
| The action representing the play looping option. | |
| QAction * | m_playOnceAction |
| The action representing the play once option. | |
| SceneModel::SceneModel | ( | ) |
Constructor of the SceneModel class.
Constructors and Destructors.
| SceneModel::~SceneModel | ( | ) |
Destructor of the SceneModel class.
| QString SceneModel::getName | ( | ) | const |
Returns the name of the scene.
Public Functions.
| void SceneModel::setName | ( | const QString & | name | ) |
Sets the name of the scene.
| name | The name of the scene. |
| NodeModel * SceneModel::getNodeModel | ( | ) | const |
Returns the node model that holds all scene objects like meshes, cameras and lights.
Returns the standard item model that holds all scene objects like meshes, cameras and lights.
The standard item model that holds all scene objects.
| QItemSelectionModel * SceneModel::getSelectionModel | ( | ) | const |
Returns the selection model to use for synchronizing selections in all views.
| NodeGraphicsItem * SceneModel::getGraphicsItem | ( | const QString & | name | ) | const |
Returns the graphics graphics item associated with a node by name.
| QGraphicsScene * SceneModel::getGraphicsScene | ( | ) | const |
Returns the graphics scene to use for all network views.
| QList< QAction * > SceneModel::getControlActions | ( | ) | const |
Returns a list of actions representing scene time controls.
| QStringList SceneModel::getSelectedObjects | ( | bool | onlyConnections = false |
) | const |
Builds a list of object names from the current selection.
| int SceneModel::getFrameStep | ( | ) | const |
Returns the frame step currently set for the scene.
| int SceneModel::getFrameRate | ( | ) | const |
Returns the frame rate currently set for the scene.
| void SceneModel::getFrameRange | ( | int * | firstFrame, | |
| int * | lastFrame | |||
| ) | const |
Fills the given frame index variables with the frame range available for the scene time.
| firstFrame | The index of the first frame in the scene's time range. | |
| lastFrame | The index of the last frame in the scene's time range. |
| int SceneModel::getCurrentFrame | ( | ) | const |
Returns the index of the current frame in the scene's time.
| int SceneModel::getStartFrame | ( | ) | const |
Returns the index of the start frame in the scene's time.
| int SceneModel::getEndFrame | ( | ) | const |
Returns the index of the end frame in the scene's time.
| int SceneModel::getInFrame | ( | ) | const |
Returns the index of the in frame in the scene's time.
| int SceneModel::getOutFrame | ( | ) | const |
Returns the index of the out frame in the scene's time.
| void SceneModel::createSceneRoot | ( | ) |
Creates the OGRE scene root scene node.
| void SceneModel::createScene | ( | daeElement * | rootElement | ) |
Creates the scene objects by parsing the COLLADA element tree contained in the given root element.
| rootElement | The root element of the tree to build the scene from. |
| QString SceneModel::createObject | ( | const QString & | typeName, | |
| const QString & | name = "", |
|||
| const QPointF & | position = QPointF(-1, -1), |
|||
| bool | select = false, |
|||
| bool | visible = true | |||
| ) |
Creates a scene object of the given type with the given name with a node graphics item at the given location and optionally selects it.
| typeName | The name of the type of object to create. | |
| name | The name to give to the object to add to the model. | |
| position | The position for the object's node graphics item. | |
| select | Flag to control whether to select the new node. | |
| visible | Flag to control whether the object should be visible in the scene model. |
| void SceneModel::connectParameters | ( | Node * | sourceNode, | |
| const QString & | sourceParameterName, | |||
| Node * | targetNode, | |||
| const QString & | targetParameterName | |||
| ) |
Creates a connection between the parameters with the given names of the given nodes.
The parameters to be connected must have the same parameter type.
| sourceNode | The source node for the new connection. | |
| sourceParameterName | The name of the output parameter of the source node. | |
| targetNode | The target node for the new connection. | |
| targetParameterName | The name of the input parameter of the target node. |
Connects all parameters with the same name of two nodes.
The parameters to be connected must have the same parameter type.
| sourceNode | The source node for the new connections. | |
| targetNode | The target node for the new connections. |
| void SceneModel::createDaeElements | ( | daeElement * | parentElement | ) | const |
Creates a COLLADA element tree corresponding to the objects currently contained in the scene.
| parentElement | The element under which to create the COLLADA element tree representing the scene. |
| void SceneModel::clear | ( | ) |
Deletes all objects contained in the scene.
| void SceneModel::connectParameters | ( | Parameter * | sourceParameter, | |
| Parameter * | targetParameter | |||
| ) | [slot] |
Creates a connection between the given parameters.
Public Slots.
The parameters to be connected must have the same parameter type.
| sourceParameter | The output parameter of the source node to connect. | |
| targetParameter | The input parameter of the target node to connect. |
The parameters to be connected must have the same parameter type.
| sourceParameter | The output parameter of the source node to connect. | |
| targetParameter | The input parameter of the target node to connect. |
Create connections between two nodes (connect by name).
| sourceNode | The source node. | |
| targetNode | The target node. |
| void SceneModel::createCamera | ( | ViewingParameters * | viewingParameters | ) | [slot] |
Creates a new camera with parameters initialized according to the given viewing parameters.
| viewingParameters | A collection of parameters for viewing the 3D scene. |
| void SceneModel::deleteCamera | ( | const QString & | cameraName | ) | [slot] |
Deletes an existing camera.
| cameraName | The name of the camera to delete. |
| void SceneModel::updateCamera | ( | const QString & | cameraName, | |
| ViewingParameters * | viewingParameters | |||
| ) | [slot] |
Applies the given viewing parameters to the camera with the given name.
| cameraName | The name of the camera to update. | |
| viewingParameters | The viewing parameters to apply to the camera with the given name. |
| void SceneModel::cameraListRequested | ( | ) | [slot] |
Sends the list of camereas when requested.
| void SceneModel::applyCamera | ( | const QString & | cameraName, | |
| ViewingParameters * | viewingParameters | |||
| ) | [slot] |
Applies the viewing parameters of the camera with the given name to the given viewing parameters.
| cameraName | The name of the camera to use. | |
| viewingParameters | The viewing parameters to modify. |
| void SceneModel::deleteObject | ( | const QString & | name | ) | [slot] |
Deletes a given object.
| void SceneModel::selectDeselectObject | ( | const QString & | name | ) | [slot] |
Selects and deselects a given object.
| void SceneModel::deleteSelected | ( | ) | [slot] |
Deletes the currently selected objects from the scene.
| void SceneModel::selectAll | ( | ) | [slot] |
Selects all objects in the scene.
| void SceneModel::evaluateSelectedObjects | ( | ) | [slot] |
Sets the evaluation flag of the selected objects to True.
| void SceneModel::ignoreSelectedObjects | ( | ) | [slot] |
Sets the evaluation flag of the selected objects to False.
| void SceneModel::graphicsSceneSelectionChanged | ( | ) | [slot] |
Updates the selection model according to the currently selected graphics items in the graphics scene.
Is called when the selection in the graphics scene has changed.
| void SceneModel::changeNodeName | ( | const QString & | name | ) | [slot] |
Updates the m_graphicsItemList in case a node has changed its name.
| void SceneModel::selectObject | ( | const QString & | name, | |
| bool | toggle = false | |||
| ) | [slot] |
Selects the object with the given name or toggles the selection state of the object with the given name.
| name | The name of the object to select. | |
| toggle | Flag that controls whether to toggle the selection of the object with the given name. |
| void SceneModel::deselectObject | ( | const QString & | name = "" |
) | [slot] |
Deselects the object with the given name.
| name | The name of the object to deselect. |
| void SceneModel::setCurrentFrame | ( | int | index, | |
| bool | realtime = false | |||
| ) | [slot] |
Sets the index of the current frame in the scene's time.
| index | The new index of the current frame in the scene's time. |
| void SceneModel::setStartFrame | ( | int | index | ) | [slot] |
Sets the index of the start frame in the scene's time.
| index | The new index of the start frame in the scene's time. |
| void SceneModel::setEndFrame | ( | int | index | ) | [slot] |
Sets the index of the end frame in the scene's time.
| index | The new index of the end frame in the scene's time. |
| void SceneModel::setInFrame | ( | int | index | ) | [slot] |
Sets the index of the in frame in the scene's time.
| index | The new index of the in frame in the scene's time. |
| void SceneModel::setOutFrame | ( | int | index | ) | [slot] |
Sets the index of the out frame in the scene's time.
| index | The new index of the out frame in the scene's time. |
| void SceneModel::setFrameStep | ( | int | frameStep | ) | [slot] |
Sets the frame step to use for the scene.
| frameStep | The frame step to use for the scene. |
| void SceneModel::setFrameRate | ( | int | frameRate | ) | [slot] |
Sets the frame rate to use for the scene.
| frameRate | The frame rate to use for the scene. |
| void SceneModel::frameSelectedObjects | ( | ViewingParameters * | viewingParameters | ) | [slot] |
Adjusts the given viewing parameters so that the currently selected objects are centered in the view.
All objects will be framed if no objects are currently selected.
| viewingParameters | The viewing parameters to modify. |
| void SceneModel::setViewNode | ( | unsigned int | stageIndex, | |
| ViewNode * | viewNode | |||
| ) | [slot] |
Sets the node that currently has the view flag set.
| stageIndex | The index of the stage for which to set the view node (currently not used). | |
| viewNode | The new node that is currently viewed. |
| void SceneModel::rebuildScene | ( | ) | [slot] |
Rebuilds the OGRE scene by obtaining the Ogre scene node from the current view node.
Obtains the OGRE scene node from the current view node and adds it as a child to the scene root scene node.
| void SceneModel::redrawTriggered | ( | ) | [slot] |
Redraws the OGRE scene when active view node exists.
| void SceneModel::setNewNodePosition | ( | const QPointF & | scenePosition | ) | [slot] |
Sets the scene coordinates to use when creating a new node.
| scenePosition | The position in scene coordinates to use for a new node. |
| void SceneModel::addKey | ( | NumberParameter * | numberParameter | ) | [slot] |
Adds a keyframe for the given number parameter at the current frame index.
| numberParameter | The number parameter to add a keyframe for. |
| void SceneModel::sceneNameChanged | ( | const QString & | name | ) | [signal] |
Signal that is emitted when the scene name has changed.
| name | The scene name. |
| void SceneModel::realtimeModeToggled | ( | bool | realtime | ) | [signal] |
Signal that is emitted when the realtime mode has changed.
| realtime | Flag that states whether realtime mode is enabled or not. |
| void SceneModel::selectionChanged | ( | bool | objectsSelected | ) | [signal] |
Signal that is emitted when the selection has changed.
| objectsSelected | Flag that states whether objects in the scene are selected. |
| void SceneModel::currentFrameSet | ( | int | index | ) | [signal] |
Signal that is emitted when the index of the current frame in the scene's time has been changed.
| index | The new index of the current frame in the scene's time. |
| void SceneModel::startFrameSet | ( | int | index | ) | [signal] |
Signal that is emitted when the index of the start frame in the scene's time has been changed.
| index | The new index of the start frame in the scene's time. |
| void SceneModel::endFrameSet | ( | int | index | ) | [signal] |
Signal that is emitted when the index of the end frame in the scene's time has been changed.
| index | The new index of the end frame in the scene's time. |
| void SceneModel::inFrameSet | ( | int | index | ) | [signal] |
Signal that is emitted when the index of the in frame in the scene's time has been changed.
| index | The new index of the in frame in the scene's time. |
| void SceneModel::outFrameSet | ( | int | index | ) | [signal] |
Signal that is emitted when the index of the out frame in the scene's time has been changed.
| index | The new index of the out frame in the scene's time. |
| void SceneModel::frameStepSet | ( | int | frameStep | ) | [signal] |
Signal that is emitted when the frame step for the scene has been changed.
| frameStep | The new frame step to use for the scene. |
| void SceneModel::frameRateSet | ( | int | frameRate | ) | [signal] |
Signal that is emitted when the frame rate for the scene has been changed.
| frameRate | The new frame rate to use for the scene. |
| void SceneModel::modified | ( | ) | [signal] |
Signal that is emitted when the internal state of the scene model has changed.
| void SceneModel::triggerRedraw | ( | ) | [signal] |
Signal emitted when ogre scene node has changed in a a way that only scene redraw is needed. No structural change.
| void SceneModel::renderingTriggered | ( | ) | [signal] |
Signal emitted when render targets should be updated.
| void SceneModel::imageSet | ( | unsigned int | stageIndex, | |
| Ogre::TexturePtr | image | |||
| ) | [signal] |
Signal that is emitted when the image to be viewed has been changed.
| stageIndex | The index of the stage to which the image belongs. | |
| image | The image that is to be viewed. |
| void SceneModel::objectCreated | ( | const QString & | objectName | ) | [signal] |
Signal that is emitted when a new object has been created.
| objectName | The name of the created object. |
| void SceneModel::camerasUpdated | ( | const QList< Node * > & | cameraNodes, | |
| const QString & | cameraName | |||
| ) | [signal] |
Signal that is emitted when the list of cameras has changed.
| cameraNames | List of cameras in the scene. | |
| cameraName | Name of new created camera. |
| void SceneModel::timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Handles timer events for the scene model.
Protected Events.
| event | The description of the timer event. |
| event | The description of the timer event. |
| void SceneModel::selectionModelSelectionChanged | ( | const QItemSelection & | selected, | |
| const QItemSelection & | deselected | |||
| ) | [private, slot] |
Updates the scene model according to the given item selections.
Private Slots.
Is called when the selection in the selection model has changed.
| selected | The list of selected items. | |
| deselected | The list of deselected items. |
Is called when the selection in the selection model has changed.
| selected | The list of selected items. | |
| deselected | The list of deselected items. |
| void SceneModel::connectionDestroyed | ( | Connection * | connection | ) | [private, slot] |
Removes the connection that has been destroyed from the list of connections.
Is called when a connection has been destroyed.
| void SceneModel::on_m_inFrameAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the in frame action has been triggered.
| checked | The state of the action. |
| void SceneModel::on_m_previousKeyAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the previous key action has been triggered.
| checked | The state of the action. |
| void SceneModel::on_m_previousFrameAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the previous frame action has been triggered.
| checked | The state of the action. |
| void SceneModel::on_m_playAction_toggled | ( | bool | checked | ) | [private, slot] |
Event handler that is called when the play action has been toggled.
| checked | The state of the play action. | |
| checked | The state of the action. |
| void SceneModel::on_m_realtimeAction_toggled | ( | bool | checked | ) | [private, slot] |
Event handler that is called when the realtime action has been toggled.
| checked | The state of the action. |
| void SceneModel::on_m_nextFrameAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the next frame action has been triggered.
| checked | The state of the action. |
| void SceneModel::on_m_nextKeyAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the next key action has been triggered.
| checked | The state of the action. |
| void SceneModel::on_m_outFrameAction_triggered | ( | bool | checked = false |
) | [private, slot] |
Event handler that is called when the out frame action has been triggered.
| checked | The state of the action. |
| void SceneModel::initializeActions | ( | ) | [private] |
Initializes the actions that are contained in the scene model.
Private Functions.
| void SceneModel::updateActions | ( | ) | [private] |
Enables or disables the timeline actions according to the current frame index.
| QPointF SceneModel::decodePosition | ( | std::string | position, | |
| const QString & | nodeName | |||
| ) | [private] |
Decodes the given position for node graphics items from a COLLADA scene file.
| position | The position value to decode into a Qt position. | |
| nodeName | The name of the node whose position value to decode (used for log messages only). |
| void SceneModel::createDaeElements | ( | ParameterGroup * | parameterGroup, | |
| daeElement * | parentElement | |||
| ) | const [private] |
Creates COLLADA elements corresponding to the parameters contained in the given parameter group and adds them to the given parent element.
| parameterGroup | The parameter group to create COLLADA elements from. | |
| parentElement | The element under which to create the COLLADA elements representing the parameter group. |
QString SceneModel::m_name [private] |
The name of the current scene.
NodeModel* SceneModel::m_nodeModel [private] |
The node model that holds all scene objects like meshes, cameras and lights.
QItemSelectionModel* SceneModel::m_selectionModel [private] |
The selection model to use for synchronizing selections in all views.
QGraphicsScene* SceneModel::m_graphicsScene [private] |
The graphics scene to use for all network views.
QMap<QString, QGraphicsItem *> SceneModel::m_graphicsItemMap [private] |
A map for referencing graphics items by name.
QMap<QString, QGraphicsItem *> SceneModel::m_connectionGraphicsItemMap [private] |
A map for referencing graphics items (connections) by name.
QMap<unsigned int, Connection *> SceneModel::m_connectionMap [private] |
The list of connections currently set up in the scene.
QList<Node *> SceneModel::m_cameraNodes [private] |
The list of camera nodes currently set up in the scene.
int SceneModel::m_newNodeIndex [private] |
The number of newly created nodes to be used in the name of new nodes.
NumberParameter* SceneModel::m_frameParameter [private] |
The parameter containing the index of the current frame and the global frame range.
NumberParameter* SceneModel::m_frameRangeParameter [private] |
The parameter defining the indices of the in and out frames.
int SceneModel::m_frameStep [private] |
The number of frames to advance the animation by each play back step.
NumberParameter* SceneModel::m_fpsParameter [private] |
The parameter containing the number of frames per second.
QTime SceneModel::m_lastTimestamp [private] |
The last timestamp.
double SceneModel::m_averageFps [private] |
The averarage fps.
unsigned int SceneModel::m_averageCounter [private] |
The average counter.
QList<ViewNode *> SceneModel::m_viewNodeList [private] |
The node that currently has the view flag set.
int SceneModel::m_timerId [private] |
The ID of the scene timer.
Ogre::SceneNode* SceneModel::m_sceneRoot [private] |
The parent scene node for all scene objects to be displayed in viewports.
QPointF SceneModel::m_newNodePosition [private] |
The position to use for new nodes.
QAction* SceneModel::m_inFrameAction [private] |
The action for jumping to the in frame of the animation.
QAction* SceneModel::m_previousKeyAction [private] |
The action for jumping to the previous key of the selected channel.
QAction* SceneModel::m_previousFrameAction [private] |
The action for selecting the previous frame in the animation.
QAction* SceneModel::m_playAction [private] |
The action for starting and stopping animation playback.
QAction* SceneModel::m_realtimeAction [private] |
The action for starting and stopping realtime animation playback.
QAction* SceneModel::m_nextFrameAction [private] |
The action for selecting the next frame in the animation.
QAction* SceneModel::m_nextKeyAction [private] |
The action for jumping to the next key of the selected channel.
QAction* SceneModel::m_outFrameAction [private] |
The action for jumping to the out frame of the animation.
QAction* SceneModel::m_separatorAction [private] |
The action representing a separator for separating the playback options.
QAction* SceneModel::m_playOptionsAction [private] |
The action for grouping playback options.
QAction* SceneModel::m_playLoopingAction [private] |
The action representing the play looping option.
QAction* SceneModel::m_playOnceAction [private] |
The action representing the play once option.
1.5.9