18 #ifndef MILXQTANIMATEMODEL_H 19 #define MILXQTANIMATEMODEL_H 23 #include <vtkPolyDataCollection.h> 26 #include <milxQtModel.h> 44 void SetInputCollection(vtkPolyDataCollection* meshes, QStringList &filenames,
const int idIndex = -1);
51 void updateAnimation();
52 void startAnimation();
53 void pauseAnimation();
54 void interval(
int newInterval = 0);
55 void intervalRotation(
int newInterval = 0);
56 void movie(QString filename =
"",
int frames = 0);
57 inline void setInterval(
const int delay)
58 { m_interval = delay; }
59 inline int getInterval()
60 {
return m_interval; }
61 inline size_t getCurrentFrame()
62 {
return m_currentID; }
83 vtkSmartPointer<vtkPolyDataCollection>
m_meshes;
95 #endif // MILXQTANIMATEMODEL_H virtual void createMenu(QMenu *menu)
Create the menu for the data in this object. Used for context menu and file menus.
QList< int > m_caseIDs
A list of case IDs corresponding to the models in the SSM.
void contextMenuEvent(QContextMenuEvent *event)
The context menu setup member.
This file defines all the defines, aliases and frequently used functions and variables.
void createActions()
Create the actions for context menu etc.
QAction * intervalAct
Action for setting interval.
int m_rotationInterval
delay between frames in ms
QAction * pauseAct
Action for stopping/pausing animation.
bool m_pause
Pause animation?
void createConnections()
Create the connections for context menu etc.
This class represents the MILX Qt Model/Mesh Display object using VTK.
QAction * rotationIntervalAct
Action for rotating view as well.
QAction * movieAct
Action for recording movie.
QTimer timer
Timer for the animation loop.
bool isLoaded()
Is the data successfully loaded? Use this to check if all is ok with data display.
void reset()
Reset the display of the model, includes camera and regeneration.
QAction * startAct
Action for starting animation.
bool m_loaded
Shapes loaded?
int m_interval
delay between frames in ms
#define MILXQT_PLUGIN_EXPORT
Define Windows Plugin DLL importing.
vtkSmartPointer< vtkPolyDataCollection > m_meshes
Collection of meshes to animate.
QAction * rotationAct
Action for rotating view as well.
int m_currentID
Current frame or ID being displayed.