18 #ifndef MILXQTPLUGININTERFACE_H 19 #define MILXQTPLUGININTERFACE_H 23 #include <QDockWidget> 25 #include <vtkPolyDataCollection.h> 28 #include "milxQtRenderWindow.h" 29 #include "milxQtImage.h" 30 #include "milxQtModel.h" 62 virtual QString
name() = 0;
88 virtual bool hasOpenSupport() = 0;
93 virtual QString openFileSupport() = 0;
98 virtual QStringList openExtensions() = 0;
103 virtual bool hasSaveSupport() = 0;
108 virtual QString saveFileSupport() = 0;
113 virtual QStringList saveExtensions() = 0;
119 virtual bool hasCollectionSupport() = 0;
124 virtual void SetInputCollection(vtkPolyDataCollection* collection, QStringList &filenames) = 0;
130 virtual void open(QString filename) = 0;
135 virtual void save(QString filename) = 0;
156 virtual QDockWidget* dockWidget() = 0;
162 virtual Qt::DockWidgetArea dockDefaultArea() = 0;
168 virtual bool isPluginWindow(QWidget *window) = 0;
192 return consoleWindow;
209 return fileMenuEntries;
225 virtual void loadExtension() = 0;
233 virtual void update() = 0;
238 virtual void preStartTasks() = 0;
243 virtual void postStartTasks() = 0;
265 void resultAvailable(vtkPolyDataCollection*, QStringList&);
271 void working(
int value);
276 void done(
int value);
288 QList<QAction*> fileMenuEntries;
289 QList<QMenu*> menuToAdd;
306 #endif // MILXQTPLUGININTERFACE_H bool threaded
Threaded plugin?
This file defines all the defines, aliases and frequently used functions and variables.
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 isExtension()
Is the plugin an extension? [Don't Reimplement this].
bool extension
Extension rather than a plugin?
void setConsole(milxQtConsole *con)
Set console to be used by plugins for output.
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.
QList< QMenu * > addToMenuBar()
Menus to add to the menu bar. [Don't Reimplement this].
void setFileName(const QString filename)
Set the Name of the data. [Don't Reimplement this].
bool dockable
Dockable plugin?
#define MILXQT_EXPORT
Define Windows DLL importing.
milxQtConsole * console
console for logging
QList< QAction * > addToFileMenu()
Actions to add to the file or context menu. [Don't Reimplement this].
The interface for any plugins that can be made for milxQtMain.
bool isThreaded()
Is the plugin threaded? [Don't Reimplement this].
milxQtPluginInterface(QObject *theParent=0)
Default destructor.
A console (tabbed) widget class for displaying information such as logs, terminals and consoles...
bool isDockable()
Is the plugin a dock window? [Don't Reimplement this].
bool isConsole()
Is the plugin a console dock window? If so, it will be added to the console dock window. [Don't Reimplement this].