1 #include "milxQtRegistrationPlugin.h" 8 MainWindow = qobject_cast<
milxQtMain *>(theParent);
14 pluginName =
"Registration";
21 milxQtRegistrationPlugin::~milxQtRegistrationPlugin()
25 cout <<
"Registration Plugin Destroyed." << endl;
35 QString openPythonExt =
"";
56 QString savePythonExt =
"";
137 void milxQtRegistrationPlugin::createActions()
140 actionItkAffine->setText(QApplication::translate(
"RegistrationPlugin",
"Affine (Itk)", 0, QApplication::UnicodeUTF8));
143 actionItkDemon->setText(QApplication::translate(
"RegistrationPlugin",
"Demon (Itk)"));
146 actionF3DNifti =
new QAction(MainWindow);
147 actionF3DNifti->setText(QApplication::translate(
"RegistrationPlugin",
"Free Form Deformation (Nifti)", 0, QApplication::UnicodeUTF8));
149 actionAladinNifti =
new QAction(MainWindow);
150 actionAladinNifti->setText(QApplication::translate(
"RegistrationPlugin",
"Aladin (Nifti)"));
155 actionElastixAffine =
new QAction(MainWindow);
156 actionElastixAffine->setText(QApplication::translate(
"RegistrationPlugin",
"Affine (Elastix)", 0, QApplication::UnicodeUTF8));
158 actionElastixBSpline =
new QAction(MainWindow);
159 actionElastixBSpline->setText(QApplication::translate(
"RegistrationPlugin",
"BSpline (Elastix)"));
164 void milxQtRegistrationPlugin::createMenu()
166 menu =
new QMenu(MainWindow);
167 menu->setTitle(QApplication::translate(
"RegistrationPlugin",
"Image Registration", 0, QApplication::UnicodeUTF8));
173 menu->addAction(actionF3DNifti);
174 menu->addAction(actionAladinNifti);
178 menu->addAction(actionElastixAffine);
179 menu->addAction(actionElastixBSpline);
182 menuToAdd.append(
menu);
186 void milxQtRegistrationPlugin::createConnections()
192 connect(actionF3DNifti, SIGNAL(activated()),
this, SLOT(F3DNiftiRegistrationSlot()));
193 connect(actionAladinNifti, SIGNAL(activated()),
this, SLOT(AladinNiftiRegistrationSlot()));
197 connect(actionElastixAffine, SIGNAL(activated()),
this, SLOT(ElastixAffineRegistrationSlot()));
198 connect(actionElastixBSpline, SIGNAL(activated()),
this, SLOT(ElastixBSplineRegistrationSlot()));
221 void milxQtRegistrationPlugin::F3DNiftiRegistrationSlot()
229 void milxQtRegistrationPlugin::AladinNiftiRegistrationSlot()
239 void milxQtRegistrationPlugin::ElastixAffineRegistrationSlot()
247 void milxQtRegistrationPlugin::ElastixBSplineRegistrationSlot()
bool threaded
Threaded plugin?
QPointer< milxQtRegistrationWindow > regWindow
registration window
QAction * actionItkAffine
Itk Affine action.
void ItkDemonRegistrationSlot()
Slot for the Itk Demon registration button.
This class represents the MILX Qt Render Window Display object using QVTK.
bool consoleWindow
console window?
This class represents the MILX Qt Image Display object using VTK.
virtual void open(QString filename)
Open the file using the plugin. [Implement this in your plugin].
bool extension
Extension rather than a plugin?
virtual QString openFileSupport()
Get the file support string for opening (extension wildcard list). [Implement this in your plugin]...
QMenu * menu
Registration menu.
virtual void save(QString filename)
Save the result as a file using the plugin. [Implement this in your plugin].
milxQtRegistrationPlugin(QObject *theParent=0)
Default destructor.
virtual void SetInputCollection(vtkPolyDataCollection *collection, QStringList &filenames)
Pass a collection to internal plugin class. [Implement this in your plugin].
QAction * actionItkDemon
Itk Demon action.
virtual QDockWidget * dockWidget()
Return the dock widget (if one is provided by plugin). [Implement this in your plugin].
This class represents the MILX Qt Model/Mesh Display object using VTK.
virtual void loadExtension()
Load the extension. [Implement this in your plugin].
bool dockable
Dockable plugin?
The interface for any plugins that can be made for milxQtMain.
This class is the registration window/form.
virtual QString name()
Get the Name of the plugin. [Implement this in your plugin].
virtual bool isPluginWindow(QWidget *window)
Is the window provided a plugin generated window? In this case a milxQtShapeModel window...
virtual QString saveFileSupport()
Get the file support string for saving (extension wildcard list). [Implement this in your plugin]...
virtual milxQtRenderWindow * genericResult()
Get the generic result, which is a milxQtRenderWindow. The result can then be displayed in milxQtMain...
virtual QStringList saveExtensions()
Get a list of supported file format extensions. [Implement this in your plugin].
virtual milxQtImage * imageResult()
Get the image result. The result can then be displayed in milxQtMain etc.[Implement this in your plug...
This class represents the MILX Qt Main Window object using Qt.
virtual milxQtModel * modelResult()
Get the model result. The result can then be displayed in milxQtMain etc. [Implement this in your plu...
void ItkAffineRegistrationSlot()
Slot for the Itk Affine registration button.
virtual QStringList openExtensions()
Get a list of supported file format extensions. [Implement this in your plugin].