42 #include <QtCore/QObject>
43 #include <QtCore/QTime>
44 #include <QtGui/QStandardItemModel>
45 #include <QtGui/QItemSelectionModel>
46 #include <QtGui/QGraphicsScene>
50 #if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32)
57 #include <dom/domCOLLADA.h>
103 QString getName ()
const;
110 void setName (
const QString &name);
126 QItemSelectionModel * getSelectionModel ()
const;
140 QGraphicsScene * getGraphicsScene ()
const;
147 QList<QAction *> getControlActions ()
const;
154 QStringList getSelectedObjects (
bool onlyConnections =
false )
const;
161 int getFrameStep ()
const;
168 int getFrameRate ()
const;
177 void getFrameRange (
int& firstFrame,
int& lastFrame )
const;
184 int getCurrentFrame ()
const;
191 int getStartFrame ()
const;
198 int getEndFrame ()
const;
205 int getInFrame ()
const;
212 int getOutFrame ()
const;
217 void createSceneRoot ();
225 void createScene ( daeElement *rootElement );
238 QString createObject (
const QString &typeName,
const QString &name =
"",
const QPointF &position = QPointF(-1, -1),
bool select =
false,
bool visible =
true );
251 void connectParameters (
Node *sourceNode,
const QString &sourceParameterName,
Node *targetNode,
const QString &targetParameterName );
261 void connectParametersByName (
Node *sourceNode,
Node *targetNode );
269 void createDaeElements ( daeElement *parentElement );
276 void createSceneDAEProperties ( daeElement *parentElement )
const;
301 void connectParameters (
Node *sourceNode,
Node *targetNode );
316 void deleteCamera (
const QString &cameraName );
324 void updateCamera (
const QString &cameraName,
ViewingParameters *viewingParameters );
329 void cameraListRequested ();
338 void applyCamera (
const QString &cameraName,
ViewingParameters *viewingParameters );
343 void deleteObject (
const QString &name );
348 void selectDeselectObject (
const QString &name );
353 void deleteSelected ();
363 void evaluateSelectedObjects ();
368 void ignoreSelectedObjects ();
376 void graphicsSceneSelectionChanged ();
381 void changeNodeName(
const QString &name);
390 void selectObject (
const QString &name,
bool toggle =
false );
397 void deselectObject (
const QString &name =
"" );
404 inline void setCurrentFrame (
int index,
bool realtime =
false );
416 void setStartFrame (
int index );
423 void setEndFrame (
int index );
430 void setInFrame (
int index );
437 void setOutFrame (
int index );
444 void setFrameStep (
int frameStep );
451 void setFrameRate (
int frameRate );
469 void setViewNode (
unsigned int stageIndex,
ViewNode *viewNode );
475 void rebuildScene ();
480 void redrawTriggered ();
487 void setNewNodePosition (
const QPointF &scenePosition );
504 void sceneNameChanged (
const QString &name );
511 void realtimeModeToggled (
bool realtime );
518 void selectionChanged (
bool objectsSelected );
526 void currentFrameSet (
int index );
534 void startFrameSet (
int index );
542 void endFrameSet (
int index );
550 void inFrameSet (
int index );
558 void outFrameSet (
int index );
566 void frameStepSet (
int frameStep );
574 void frameRateSet (
int frameRate );
586 void triggerRedraw ();
591 void renderingTriggered ();
599 void imageSet (
unsigned int stageIndex, Ogre::TexturePtr image );
606 void objectCreated (
const QString &objectName );
628 void camerasUpdated (
const QList<Node *> &cameraNodes,
const QString &cameraName );
633 void loadSceneElementsReady ();
652 virtual void timerEvent ( QTimerEvent *event );
664 void selectionModelSelectionChanged (
const QItemSelection &selected,
const QItemSelection &deselected );
672 void connectionDestroyed (
Connection *connection);
680 void on_m_inFrameAction_triggered (
bool checked =
false );
688 void on_m_previousKeyAction_triggered (
bool checked =
false );
696 void on_m_previousFrameAction_triggered (
bool checked =
false );
703 void on_m_playAction_toggled (
bool checked );
710 void on_m_realtimeAction_toggled (
bool checked );
718 void on_m_nextFrameAction_triggered (
bool checked =
false );
726 void on_m_nextKeyAction_triggered (
bool checked =
false );
734 void on_m_outFrameAction_triggered (
bool checked =
false );
741 void initializeActions ();
747 void updateActions ();
749 void deleteConnection (
const QString &name,
bool deleteGraphicItem =
false );
759 QPointF decodePosition ( std::string position,
const QString &nodeName );
768 void createDaeElements (
ParameterGroup *parameterGroup, daeElement *parentElement )
const;
770 void createParameters(
Node *node,
ParameterGroup *parameterGroup, daeElement *parametersElement);