SMILX
1.01
|
This class represents the MILX Qt Window Display object using QVTK. More...
#include <milxQtWindow.h>
Public Slots | |
void | setName (const QString filename) |
Set the name of the data. | |
QString | getName () |
Returns the name of the data. | |
void | rename () |
Renames the data. | |
QString | strippedName () |
Returns the stripped (path removed) name of the data. | |
QString | strippedBaseName () |
Returns the stripped (path removed) base (no suffix) name of the data. | |
virtual QString | strippedNamePrefix () |
Returns the stripped (path removed) name of the data with "Generic" prefix. More... | |
void | setNamePrefix (const QString newPrefix) |
Sets the prefix of the name of the data provided. | |
void | addToContextMenu (QAction *act) |
Adds (prepends) the action to the context menu. Connections are assumed to be made before hand. | |
void | appendToContextMenu (QAction *act) |
Adds (appends) the action to the context menu. Connections are assumed to be made before hand. | |
void | addToContextMenu (QMenu *newMenu) |
Adds the menu to the context menu. Connections are assumed to be made before hand. | |
void | addExtensionAction (QAction *act) |
Adds (in extension section) the action as an extension action. Connections are assumed to be made before hand. | |
void | addMenuToContextMenu (QMenu *newMenu) |
Adds (prepends) the menu to the context menu. Connections are assumed to be made before hand. | |
void | appendMenuToContextMenu (QMenu *newMenu) |
Adds (appends) the menu to the context menu. Connections are assumed to be made before hand. | |
virtual void | copyToContextMenu (QMenu *copyMenu) |
Copies the menu, by duplicating the entries, to the context menu. Connections are assumed to be made before hand. | |
void | setVerboseMode (bool verbose) |
Verbose mode for message output. | |
void | setDeletableOnClose (bool delOnClose) |
Set if the window deletable on close. Default is true. | |
bool | isDeletableOnClose () |
Is the window deletable on close? | |
void | setConsole (milxQtConsole *con) |
Set the console for log output. | |
void | consumeVTKEvent (vtkObject *obj, unsigned long, void *client_data, void *, vtkCommand *command) |
Consume the event so that VTK interactor style doesn't get it. Safeguard for if remove observer directives have missed some bindings. | |
void | updateQtEvents () |
Update the Qt events, used to keep UI responsive. | |
Signals | |
void | closing (QWidget *win) |
Send signal that the window is closing. | |
void | nameChanged (const QString newName) |
Send signal that the data has been renamed. | |
void | working (int value) |
Send signal that computation is in progress. Value carries the progress,. | |
void | done (int value) |
Send signal that computation is done. Value carries the progress,. | |
Public Member Functions | |
milxQtWindow (QWidget *theParent=0) | |
The standard constructor. More... | |
virtual | ~milxQtWindow () |
The standard destructor. | |
Protected Member Functions | |
void | createConnections () |
Create the connections for context menu etc. | |
void | closeEvent (QCloseEvent *clEvent) |
When closing, execute this member. | |
void | printError (QString msg) |
Error message wrapper for console. | |
void | printWarning (QString msg) |
Warning message wrapper for console. | |
void | printDebug (QString msg) |
Debug message wrapper for console. | |
void | printInfo (QString msg) |
Info message wrapper for console. | |
Protected Attributes | |
QString | name |
Name of the data. | |
QString | prefix |
Prefix of the data. | |
bool | verboseMode |
Verbose message output mode. | |
bool | deletableOnClose |
Delete on close allowed? Allowed by default. | |
bool | consoleAssigned |
Console assigned for output? | |
QMenu * | contextMenu |
Context Menu. | |
QList< QAction * > | actionsToAdd |
Context actions to add. | |
QList< QAction * > | actionsToAppend |
Context actions to append. | |
QList< QAction * > | extActionsToAdd |
Extension actions to add. | |
QList< QMenu * > | menusToAdd |
Context Menu's to add. | |
QList< QMenu * > | menusToAppend |
Context Menu's to append. | |
milxQtConsole * | console |
Console for log outputs. | |
This class represents the MILX Qt Window Display object using QVTK.
This is a base class for all windows. It encapsulates all the basic properties of the windows. You should use the milxQtImage, milxQtModel etc. classes instead of using this class directly.
The rendering is encapsulated within a QVTK widget.
Definition at line 40 of file milxQtWindow.h.
milxQtWindow::milxQtWindow | ( | QWidget * | theParent = 0 | ) |
The standard constructor.
VTK Includes.
Init Flags
Set strings
Definition at line 24 of file milxQtWindow.cpp.
|
inlinevirtualslot |
Returns the stripped (path removed) name of the data with "Generic" prefix.
This member should be overloaded in derived classes to assign correct prefixes.
Reimplemented in milxQtImage, and milxQtModel.
Definition at line 98 of file milxQtWindow.h.