18 #include "milxQtDiffusionTensorPlugin.h" 25 MainWindow = qobject_cast<
milxQtMain *>(theParent);
31 pluginName =
"Diffusion Imaging";
37 milxQtDiffusionTensorPlugin::~milxQtDiffusionTensorPlugin()
41 cout <<
"DiffusionTensor Plugin Destroyed." << endl;
51 QString openPythonExt =
"";
72 QString savePythonExt =
"";
133 if(MainWindow->isActiveModel())
135 milxQtModel *currentWin = MainWindow->activeModel();
143 else if(MainWindow->isActiveImage())
145 milxQtImage *currentWin = MainWindow->activeImage();
bool threaded
Threaded plugin?
virtual void loadExtension()
Load the extension. [Implement this in your plugin].
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.
bool extension
Extension rather than a plugin?
void resultAvailable(milxQtRenderWindow *)
Send signal that Resultant render window is available for showing.
vectorImageType::Pointer GetVectorImage()
Returns the internal vector image data. Unlike the other Get*Image() members, the return value can be...
virtual void save(QString filename)
Save the result as a file using the plugin. [Implement this in your plugin].
This class represents the MILX Qt Model/Mesh Display object using VTK.
bool dockable
Dockable plugin?
virtual QString name()
Get the Name of the plugin. [Implement this in your plugin].
virtual milxQtModel * modelResult()
Get the model result. The result can then be displayed in milxQtMain etc. [Implement this in your plu...
milxQtDiffusionTensorModel * pluginWindow(QWidget *window)
The interface for any plugins that can be made for milxQtMain.
vtkSmartPointer< vtkPolyData > GetOutput()
Returns the mesh data object (PolyData) used internally VTK style.
virtual QDockWidget * dockWidget()
Return the dock widget (if one is provided by plugin). [Implement this in your plugin].
QString getName()
Returns the name of the data.
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...
virtual QStringList openExtensions()
Get a list of supported file format extensions. [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 openFileSupport()
Get the file support string for opening (extension wildcard list). [Implement this in your plugin]...
QPointer< milxQtDiffusionTensorImage > diffusionImage
Image extension.
virtual void SetInputCollection(vtkPolyDataCollection *collection, QStringList &filenames)
Pass a collection to internal plugin class. [Implement this in your plugin].
milxQtDiffusionTensorPlugin(QObject *theParent=0)
Default destructor.
This class represents the MILX Qt Main Window object using Qt.
virtual milxQtRenderWindow * genericResult()
Get the generic result, which is a milxQtRenderWindow. The result can then be displayed in milxQtMain...
QPointer< milxQtDiffusionTensorModel > diffusionModel
Model extension.
virtual QString saveFileSupport()
Get the file support string for saving (extension wildcard list). [Implement this in your plugin]...
virtual void open(QString filename)
Open the file using the plugin. [Implement this in your plugin].