![]() |
open_iA
2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Application main window, provides access to all global graphical user interface elements. More...
#include <mainwindow.h>
Public Slots | |
| void | loadLayout () |
Signals | |
| void | fullScreenToggled () |
| void | styleChanged () |
Public Member Functions | |
| template<typename T > | |
| T * | activeChild () |
| Get the active child window of type T. More... | |
| MdiChild * | activeMdiChild () |
| Provides access to the currently active mdi child, if such is available. More... | |
| QMdiSubWindow * | addSubWindow (QWidget *child) |
| template<typename T > | |
| QList< T * > | childList (QMdiArea::WindowOrder order=QMdiArea::CreationOrder) |
| Get the list of current child windows of type T. More... | |
| void | closeAllSubWindows () |
| void | closeMdiChild (MdiChild *child) |
| MdiChild * | createMdiChild (bool unsavedChanges) |
| const QString & | currentFile () |
| deprecated. Use a specific mdichilds, or even better, an mdichilds dlg_modalities methods instead! More... | |
| QMenu * | fileMenu () |
| Get the File menu (can be used by modules to append entries to it). More... | |
| QMenu * | filtersMenu () |
| Get the Filters menu (can be used by modules to append entries to it). More... | |
| const iAPreferences & | getDefaultPreferences () const |
| iAModuleDispatcher & | getModuleDispatcher () const |
| QMenu * | helpMenu () |
| Get the Help menu (can be used by modules to append entries to it). More... | |
| void | loadArguments (int argc, char **argv) |
| bool | loadCamera (iAXmlSettings &xml) |
| void | loadFile (QString const &fileName) |
| void | loadFile (QString fileName, bool isStack) |
| void | loadFiles (QStringList fileNames) |
| void | loadPreferences (QDomNode preferencesNode) |
| void | loadRenderSettings (QDomNode renderSettingsNode) |
| void | loadSlicerSettings (QDomNode slicerSettingsNode) |
| void | loadSliceViews (QDomNode sliceViewsNode) |
| MainWindow (QString const &appName, QString const &version, QString const &splashImage) | |
| QList< MdiChild * > | mdiChildList (QMdiArea::WindowOrder order=QMdiArea::CreationOrder) |
| Get the list of current MdiChild windows. More... | |
| QList< QString > | mdiWindowTitles () |
| Get list of the titles of currently open MdiChild windows. More... | |
| const QString & | path () |
| void | saveCamera (iAXmlSettings &xml) |
| void | savePreferences (iAXmlSettings &xml) |
| void | saveRenderSettings (iAXmlSettings &xml) |
| void | saveSlicerSettings (iAXmlSettings &xml) |
| void | saveSliceView (QDomDocument &doc, QDomNode &sliceViewsNode, vtkCamera *ren, QString const &elemStr) |
| void | saveSliceViews (iAXmlSettings &xml) |
| void | saveTransferFunction (QDomDocument &doc, iAChartTransferFunction *transferFunction) |
| MdiChild * | secondNonActiveChild () |
| Provides access to a second loaded mdi child, if such is available. More... | |
| void | setCurrentFile (const QString &fileName) |
| void | setPath (QString const &p) |
| QMenu * | toolsMenu () |
| Get the Tools menu (can be used by modules to append entries to it). More... | |
| ~MainWindow () | |
| MdiChild * | resultChild (QString const &title) |
| MdiChild * | resultChild (int childInd, QString const &title) |
| MdiChild * | resultChild (MdiChild *oldChild, QString const &title) |
Static Public Member Functions | |
| static void | initResources () |
| static int | runGUI (int argc, char *argv[], QString const &appName, QString const &version, QString const &splashPath, QString const &iconPath) |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *e) override |
| void | dropEvent (QDropEvent *e) override |
Application main window, provides access to all global graphical user interface elements.
| MainWindow::MainWindow | ( | QString const & | appName, |
| QString const & | version, | ||
| QString const & | splashImage | ||
| ) |
| MainWindow::~MainWindow | ( | ) |
| T * MainWindow::activeChild | ( | ) |
Get the active child window of type T.
| MdiChild * MainWindow::activeMdiChild | ( | ) |
Provides access to the currently active mdi child, if such is available.
| QMdiSubWindow * MainWindow::addSubWindow | ( | QWidget * | child | ) |
| QList< T * > MainWindow::childList | ( | QMdiArea::WindowOrder | order = QMdiArea::CreationOrder | ) |
Get the list of current child windows of type T.
| void MainWindow::closeAllSubWindows | ( | ) |
|
overrideprotected |
| void MainWindow::closeMdiChild | ( | MdiChild * | child | ) |
| MdiChild * MainWindow::createMdiChild | ( | bool | unsavedChanges | ) |
| const QString & MainWindow::currentFile | ( | ) |
deprecated. Use a specific mdichilds, or even better, an mdichilds dlg_modalities methods instead!
|
overrideprotected |
|
overrideprotected |
| QMenu * MainWindow::fileMenu | ( | ) |
Get the File menu (can be used by modules to append entries to it).
| QMenu * MainWindow::filtersMenu | ( | ) |
Get the Filters menu (can be used by modules to append entries to it).
|
signal |
| const iAPreferences & MainWindow::getDefaultPreferences | ( | ) | const |
| iAModuleDispatcher & MainWindow::getModuleDispatcher | ( | ) | const |
| QMenu * MainWindow::helpMenu | ( | ) |
Get the Help menu (can be used by modules to append entries to it).
|
static |
| void MainWindow::loadArguments | ( | int | argc, |
| char ** | argv | ||
| ) |
| bool MainWindow::loadCamera | ( | iAXmlSettings & | xml | ) |
| void MainWindow::loadFile | ( | QString const & | fileName | ) |
| void MainWindow::loadFile | ( | QString | fileName, |
| bool | isStack | ||
| ) |
| void MainWindow::loadFiles | ( | QStringList | fileNames | ) |
|
slot |
| void MainWindow::loadPreferences | ( | QDomNode | preferencesNode | ) |
| void MainWindow::loadRenderSettings | ( | QDomNode | renderSettingsNode | ) |
| void MainWindow::loadSlicerSettings | ( | QDomNode | slicerSettingsNode | ) |
| void MainWindow::loadSliceViews | ( | QDomNode | sliceViewsNode | ) |
| QList< MdiChild * > MainWindow::mdiChildList | ( | QMdiArea::WindowOrder | order = QMdiArea::CreationOrder | ) |
Get the list of current MdiChild windows.
| QList< QString > MainWindow::mdiWindowTitles | ( | ) |
Get list of the titles of currently open MdiChild windows.
| const QString & MainWindow::path | ( | ) |
| MdiChild * MainWindow::resultChild | ( | int | childInd, |
| QString const & | title | ||
| ) |
| MdiChild * MainWindow::resultChild | ( | QString const & | title | ) |
Get access to result child with the given title. (depending on preferences, this will either open a new mdi child window, or reuse the currently active one)
|
static |
| void MainWindow::saveCamera | ( | iAXmlSettings & | xml | ) |
| void MainWindow::savePreferences | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveRenderSettings | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveSlicerSettings | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveSliceView | ( | QDomDocument & | doc, |
| QDomNode & | sliceViewsNode, | ||
| vtkCamera * | ren, | ||
| QString const & | elemStr | ||
| ) |
| void MainWindow::saveSliceViews | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveTransferFunction | ( | QDomDocument & | doc, |
| iAChartTransferFunction * | transferFunction | ||
| ) |
| MdiChild * MainWindow::secondNonActiveChild | ( | ) |
Provides access to a second loaded mdi child, if such is available.
Will throw an error if none is available or more than two are loaded.
| void MainWindow::setCurrentFile | ( | const QString & | fileName | ) |
| void MainWindow::setPath | ( | QString const & | p | ) |
|
signal |
| QMenu * MainWindow::toolsMenu | ( | ) |
Get the Tools menu (can be used by modules to append entries to it).
1.8.16