18 #ifndef MILXQTSSMPLUGIN_H 19 #define MILXQTSSMPLUGIN_H 23 #include <milxQtPluginInterface.h> 24 #include <milxQtMain.h> 26 #include "milxQtShapeModel.h" 27 #include "milxQtRobustShapeModel.h" 28 #include "milxQtManager.h" 59 void SetInputCollection(vtkPolyDataCollection* collection, vtkPolyData *atlasSurface, QStringList &filenames);
61 void open(QString filename);
62 void save(QString filename);
71 {
return Qt::RightDockWidgetArea; }
73 bool isPluginRobustWindow(QWidget *window);
85 void updateManager(QWidget *newWindow);
88 void showAtlasFileDialog();
89 void showSurfacesFileDialog();
90 void closedSSM(QWidget *win);
91 void passOnCollection(vtkPolyDataCollection *modelCollection, QStringList &filenames);
102 QList< QPointer<milxQtShapeModel> > shapes;
103 QList< QPointer<milxQtRobustShapeModel> > robustShapes;
109 QPointer<milxQtMain> MainWindow;
118 QLineEdit *txtAtlasName;
119 QPushButton *btnAtlasName;
120 QString atlasFilename;
121 QListWidget *comboSurfaceNames;
122 QPushButton *btnSurfaceNames;
123 QPushButton *btnClearSurfaceNames;
124 QStringList surfaceFilenames;
129 cout <<
"Adding Normal Shape Model to System." << endl;
130 shapes.append(newShapeModel);
131 currentModel = qobject_cast<QWidget *>(newShapeModel);
133 cout <<
"Successfully added normal model to system" << endl;
134 connect(shapes.last(), SIGNAL(closing(QWidget *)),
this, SLOT(closedSSM(QWidget *)));
138 cout <<
"Adding Robust Shape Model to System." << endl;
139 robustShapes.append(newShapeModel);
140 currentModel = qobject_cast<QWidget *>(newShapeModel);
141 connect(robustShapes.last(), SIGNAL(closing(QWidget *)),
this, SLOT(closedSSM(QWidget *)));
143 void createActions();
146 void createConnections();
162 #endif // MILXQTSSMPLUGIN_H QPointer< milxQtManager > manager
Manager widget.
QWidget * currentModel
Current model being viewed/processed.
QAction * actionMultiModel
hybrid model action
bool modelManagerCreated
Model Manager tab has been created?
virtual QString saveFileSupport()=0
Get the file support string for saving (extension wildcard list). [Implement this in your plugin]...
The Statistical Shape Model (SSM) plugin for milxQt.
This class represents the MILX Qt Render Window Display object using QVTK.
virtual QStringList saveExtensions()=0
Get a list of supported file format extensions. [Implement this in your plugin].
This class represents the MILX Qt Image Display object using VTK.
QDockWidget * dockWidget()
Return the dock widget (if one is provided by plugin). [Implement this in your plugin].
virtual QStringList openExtensions()=0
Get a list of supported file format extensions. [Implement this in your plugin].
virtual void loadExtension()=0
Load the extension. [Implement this in your plugin].
QPointer< QDockWidget > dock
Dock widget.
bool hasSaveSupport()
Does the plugin support opening files? [Implement this in your plugin].
bool hasOpenSupport()
Does the plugin support opening files? [Implement this in your plugin].
QAction * actionFocusModel
focus model action
virtual void postStartTasks()=0
Tasks to complete after running or starting the thread. [Implement this].
virtual QString name()=0
Get the Name of the plugin. [Implement this in your plugin].
This class represents the MILX Qt Model/Mesh Display object using VTK.
virtual void SetInputCollection(vtkPolyDataCollection *collection, QStringList &filenames)=0
Pass a collection to internal plugin class. [Implement this in your plugin].
bool hasCollectionSupport()
Does the plugin support collections (PolyData collection etc.). [Implement this in your plugin]...
milxQtShapeModel * hybridShapeModel
Hybrid model.
Qt::DockWidgetArea dockDefaultArea()
Return the default dock widget area (if one is provided by plugin). [Implement this in your plugin]...
milxQtImage * imageResult()
Get the image result. The result can then be displayed in milxQtMain etc.[Implement this in your plug...
virtual void preStartTasks()=0
Tasks to complete before running or starting the thread. [Implement this].
The interface for any plugins that can be made for milxQtMain.
virtual void update()=0
Update the plugin. [Implement this in your plugin].
virtual bool isPluginWindow(QWidget *window)=0
Is the window provided a plugin generated window? In this case a milxQtShapeModel window...
virtual milxQtModel * modelResult()=0
Get the model result. The result can then be displayed in milxQtMain etc. [Implement this in your plu...
virtual milxQtRenderWindow * genericResult()=0
Get the generic result, which is a milxQtRenderWindow. The result can then be displayed in milxQtMain...
virtual QString openFileSupport()=0
Get the file support string for opening (extension wildcard list). [Implement this in your plugin]...
virtual void open(QString filename)=0
Open the file using the plugin. [Implement this in your plugin].
#define MILXQT_PLUGIN_EXPORT
Define Windows Plugin DLL importing.
bool caseManagerCreated
Model Manager tab has been created?
virtual void save(QString filename)=0
Save the result as a file using the plugin. [Implement this in your plugin].