![]() |
open_iA
2020.01
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Child window of MainWindow's mdi area for showing a volume or mesh dataset. More...
#include <mdichild.h>
Public Slots | |
| void | addMsg (QString txt) |
| void | addStatusMsg (QString txt) |
| void | camPosition (double *camOptions) |
| Calls the camPosition function of iARenderer (described there in more detail). More... | |
| void | disableRenderWindows (int ch) |
| void | enableRenderWindows () |
| void | hideProgressBar () |
| void | initProgressBar () |
| void | maximizeRC () |
| void | maximizeXY () |
| void | maximizeXZ () |
| void | maximizeYZ () |
| void | removeFinishedAlgorithms () |
| void | resetLayout () |
| void | setCamPosition (double *camOptions, bool rsParallelProjection) |
| Calls the setCamPosition function of iARenderer (described there in more detail). More... | |
| void | setCamPosition (int pos) override |
| Calls the setCamPosition function of iARenderer (described there in more detail). More... | |
| void | setupProject (bool active=false) |
| void | setupStackView (bool active=false) |
| void | setupView (bool active=false) |
| void | updateProbe (int ptIndex, double *newPos) |
| void | updateProgressBar (int i) |
| void | updateSlicer (int index) |
| void | updateSlicers () |
| void | updateViews () |
| bool | updateVolumePlayerView (int updateIndex, bool isApplyForAll) |
Signals | |
| void | active () |
| void | closed () |
| void | endPointSelected () |
| void | fileLoaded () |
| void | histogramAvailable () |
| void | magicLensToggled (bool isToggled) |
| void | noPointSelected () |
| void | pointSelected () |
| void | preferencesChanged () |
| void | rendererDeactivated (int c) |
| void | renderSettingsChanged () |
| void | slicerSettingsChanged () |
| void | transferFunctionChanged () |
| void | viewsUpdated () |
Public Member Functions | |
| void | addProject (QString const &key, QSharedPointer< iAProjectBase > project) |
| add project More... | |
| void | applyViewerPreferences () |
| void | applyVolumeSettings (const bool loadSavedVolumeSettings) |
| Apply current volume settings to all modalities in the current list in dlg_modalities. More... | |
| void | changeColor () |
| void | check2DMode () |
| int | chooseComponentNr (int modalityNr) |
| If given modality has more than one component, ask user to choose one of them. More... | |
| int | chooseModalityNr (QString const &caption="Choose Channel") |
| If more than one modality loaded, ask user to choose one of them. More... | |
| void | clearHistogram () |
| Clear current histogram (i.e. don't show it anymore) More... | |
| vtkColorTransferFunction * | colorTF () |
| Access the color transfer function of the "main image". More... | |
| void | connectAlgorithmSignalsToChildSlots (iAAlgorithm *thread) |
| void | connectIOThreadSignals (iAIO *thread) |
| void | connectThreadSignalsToChildSlots (iAAlgorithm *thread) |
| QString | currentFile () const |
| int | deletePoint () |
| bool | displayResult (QString const &title, vtkImageData *image=nullptr, vtkPolyData *poly=nullptr) |
| void | doSaveProject () override |
| Ask for a project file name and store in that project file: More... | |
| bool | editPrefs (iAPreferences const &p) |
| bool | editRendererSettings (iARenderSettings const &rs, iAVolumeSettings const &vs) |
| bool | editSlicerSettings (iASlicerSettings const &slicerSettings) |
| void | enableInteraction (bool b) |
| QFileInfo | fileInfo () const |
| QString | filePath () const |
| std::vector< iAChartFunction * > & | functions () |
| iASlicer * | getSlicer (uint i) |
| void | hideHistogram () |
| Hides the histogram dockwidget. More... | |
| iAChartWithFunctionsWidget * | histogram () |
| iADockWidgetWrapper * | histogramDockWidget () |
| Access to histogram dock widget. More... | |
| vtkImageData * | imageData () |
| Access to the "main image". More... | |
| vtkSmartPointer< vtkImageData > | imagePointer () |
| Access to the "main image". More... | |
| dlg_imageproperty * | imagePropertyDockWidget () |
| Access to image property dock widget. More... | |
| bool | isFullyLoaded () const |
| workaround for bug in splitDockWidget (see https://bugreports.qt.io/browse/QTBUG-60093) splitDockWidget would makes ref and newWidget disappear if ref is tabbed at the moment More... | |
| int | isFuncEndPoint (int index) |
| bool | isMaximized () |
| bool | isSliceProfileToggled (void) const |
| bool | isSnakeSlicerToggled () const |
| bool | isVolumeDataLoaded () const |
| Whether volume data is loaded (only checks filename and volume dimensions). More... | |
| QString | layoutName () const |
| Returns the name of the layout currently applied to this child window. More... | |
| bool | linkedMDIs () const |
| Whether this child has the linked MDIs feature enabled. More... | |
| bool | linkedViews () const |
| Whether this child has the linked views feature enabled. More... | |
| void | linkMDIs (bool lm) |
| Enable or disable linked MDI windows for this MDI child. More... | |
| void | linkViews (bool l) |
| Enable or disable linked slicers and 3D renderer. More... | |
| bool | loadFile (const QString &f, bool isStack) |
| void | loadLayout (QString const &layout) |
| Loads the layout with the given name from the settings store, and tries to restore the according dockwidgets configuration. More... | |
| bool | loadRaw (const QString &f) |
| bool | loadTransferFunction () |
| dlg_logs * | logDockWidget () |
| Access to log message dock widget. More... | |
| iALogger * | logger () |
| MainWindow * | mainWnd () |
| MdiChild (MainWindow *mainWnd, iAPreferences const &preferences, bool unsavedChanges) | |
| QSharedPointer< iAModalityList > | modalities () |
| Retrieve the list of all currently loaded modalities. More... | |
| dlg_modalities * | modalitiesDockWidget () |
| Access to modalities dock widget. More... | |
| QSharedPointer< iAModality > | modality (int idx) |
| Retrieve data for modality with given index. More... | |
| void | multiview () |
| vtkPiecewiseFunction * | opacityTF () |
| Access the opacity function of the "main image". More... | |
| vtkPolyData * | polyData () |
| Access to "main" polydata object (if any) More... | |
| const int * | position () const |
| Current coordinate position (defined by the respective slice number in the slice views). More... | |
| const iAPreferences & | preferences () const |
| void | prepareForResult () |
| dlg_profile * | profileDockWidget () |
| Access to line profile dock widget. More... | |
| const QMap< QString, QSharedPointer< iAProjectBase > > & | projects () |
| void | redrawHistogram () |
| dlg_renderer * | renderDockWidget () |
| Access to 3D renderer dock widget. More... | |
| iARenderer * | renderer () |
| Access to the 3D renderer widget. More... | |
| const iARenderSettings & | renderSettings () const |
| void | resetTrf () |
| void | resetView () |
| bool | resultInNewWindow () const |
| bool | save () |
| bool | saveAs () |
| bool | saveFile (const QString &f, int modalityNr, int componentNr) |
| void | saveMovie (iARenderer &raycaster) |
| Provides the possibility to save a raycaster movie of the given raycaster view. More... | |
| void | saveProject (QString const &fileName) |
| Save all currently loaded files into a project with the given file name. More... | |
| bool | saveTransferFunction () |
| int | selectedFuncPoint () |
| void | setCurrentFile (const QString &f) |
| void | setHistogramFocus () |
| void | setImageData (QString const &filename, vtkSmartPointer< vtkImageData > imgData) |
| void | setImageData (vtkImageData *iData) |
| Set "main image" - does not update views (see displayResult for a method that does)! More... | |
| void | setModalities (QSharedPointer< iAModalityList > modList) |
| Set the list of modalities for this window. More... | |
| void | setReInitializeRenderWindows (bool reInit) |
| void | setRenderSettings (iARenderSettings const &rs, iAVolumeSettings const &vs) |
| void | setROIVisible (bool visible) |
| void | setupSlicers (iASlicerSettings const &ss, bool init) |
| void | showPoly () |
| int | sliceNumber (int mode) const |
| Get current slice number in the respective slicer. More... | |
| iASlicer * | slicer (int mode) |
| Access slicer for given mode (use iASlicerMode enum for mode values) More... | |
| dlg_slicer * | slicerDockWidget (int mode) |
| Access to slicer dock widget for the given mode. More... | |
| const iASlicerSettings & | slicerSettings () const |
| vtkTransform * | slicerTransform () |
| void | toggleSliceProfile (bool isEnabled) |
| void | toggleSnakeSlicer (bool isEnabled) |
| void | updateLayout () |
| void | updateROI (int const roi[6]) |
| QString | userFriendlyCurrentFile () const |
| const iAVolumeSettings & | volumeSettings () const |
| iAVolumeStack * | volumeStack () |
| void | waitForPreviousIO () |
| waits for the IO thread to finish in case any I/O operation is running; otherwise it will immediately exit More... | |
| ~MdiChild () | |
| uint | createChannel () |
| void | updateChannel (uint id, vtkSmartPointer< vtkImageData > imgData, vtkScalarsToColors *ctf, vtkPiecewiseFunction *otf, bool enable) |
| Update the data of the given channel ID. More... | |
| void | updateChannelOpacity (uint id, double opacity) |
| Update opacity of the given channel ID. More... | |
| void | setChannelRenderingEnabled (uint, bool enabled) |
| void | setSlicerChannelEnabled (uint id, bool enabled) |
| Enable / disable a channel in all slicers. More... | |
| void | removeChannel (uint id) |
| Remove channel in all slicers. More... | |
| iAChannelData * | channelData (uint id) |
| const iAChannelData * | channelData (uint id) const |
| void | initChannelRenderer (uint id, bool use3D, bool enableChannel=true) |
| void | updateChannelMappers () |
| void | toggleMagicLens (bool isEnabled) |
| Magic Lens. More... | |
| bool | isMagicLensToggled (void) const |
| void | setMagicLensInput (uint id) |
| void | setMagicLensEnabled (bool isOn) |
| void | reInitMagicLens (uint id, QString const &name, vtkSmartPointer< vtkImageData > imgData, vtkScalarsToColors *ctf) |
| int | magicLensSize () const |
| int | magicLensFrameWidth () const |
Public Member Functions inherited from iAChangeableCameraWidget | |
| virtual void | setCamPosition (int pos)=0 |
| Set a predefined camera position to the 3D renderer(s) in this widget. More... | |
Public Member Functions inherited from iASavableProject | |
| void | saveProject () |
| Called from main window to save the project of the current window. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from iAChangeableCameraWidget | |
| ~iAChangeableCameraWidget () | |
| Prevent destruction of the object through this interface. More... | |
Protected Member Functions inherited from iASavableProject | |
| virtual | ~iASavableProject () |
| Prevent destruction of the object through this interface. More... | |
Child window of MainWindow's mdi area for showing a volume or mesh dataset.
Some tools in the modules attach to MdiChild's to enhance their functionality.
| MdiChild::MdiChild | ( | MainWindow * | mainWnd, |
| iAPreferences const & | preferences, | ||
| bool | unsavedChanges | ||
| ) |
| MdiChild::~MdiChild | ( | ) |
|
signal |
|
slot |
| void MdiChild::addProject | ( | QString const & | key, |
| QSharedPointer< iAProjectBase > | project | ||
| ) |
add project
|
slot |
| void MdiChild::applyViewerPreferences | ( | ) |
| void MdiChild::applyVolumeSettings | ( | const bool | loadSavedVolumeSettings | ) |
Apply current volume settings to all modalities in the current list in dlg_modalities.
|
slot |
Calls the camPosition function of iARenderer (described there in more detail).
| camOptions | All informations of the camera stored in a double array |
| void MdiChild::changeColor | ( | ) |
| iAChannelData * MdiChild::channelData | ( | uint | id | ) |
| iAChannelData const * MdiChild::channelData | ( | uint | id | ) | const |
| void MdiChild::check2DMode | ( | ) |
| int MdiChild::chooseComponentNr | ( | int | modalityNr | ) |
If given modality has more than one component, ask user to choose one of them.
(currently used for determining which modality to save)
| int MdiChild::chooseModalityNr | ( | QString const & | caption = "Choose Channel" | ) |
If more than one modality loaded, ask user to choose one of them.
(currently used for determining which modality to save)
| void MdiChild::clearHistogram | ( | ) |
Clear current histogram (i.e. don't show it anymore)
|
signal |
| vtkColorTransferFunction * MdiChild::colorTF | ( | ) |
Access the color transfer function of the "main image".
| void MdiChild::connectAlgorithmSignalsToChildSlots | ( | iAAlgorithm * | thread | ) |
| void MdiChild::connectIOThreadSignals | ( | iAIO * | thread | ) |
| void MdiChild::connectThreadSignalsToChildSlots | ( | iAAlgorithm * | thread | ) |
| uint MdiChild::createChannel | ( | ) |
Multi-Channel rendering Create a new channel, return its ID.
| QString MdiChild::currentFile | ( | ) | const |
| int MdiChild::deletePoint | ( | ) |
|
slot |
| bool MdiChild::displayResult | ( | QString const & | title, |
| vtkImageData * | image = nullptr, |
||
| vtkPolyData * | poly = nullptr |
||
| ) |
|
overridevirtual |
Ask for a project file name and store in that project file:
Implements iASavableProject.
| bool MdiChild::editPrefs | ( | iAPreferences const & | p | ) |
| bool MdiChild::editRendererSettings | ( | iARenderSettings const & | rs, |
| iAVolumeSettings const & | vs | ||
| ) |
| bool MdiChild::editSlicerSettings | ( | iASlicerSettings const & | slicerSettings | ) |
| void MdiChild::enableInteraction | ( | bool | b | ) |
|
slot |
|
signal |
| QFileInfo MdiChild::fileInfo | ( | ) | const |
|
signal |
| QString MdiChild::filePath | ( | ) | const |
| std::vector< iAChartFunction * > & MdiChild::functions | ( | ) |
|
inline |
| void MdiChild::hideHistogram | ( | ) |
Hides the histogram dockwidget.
|
slot |
| iAChartWithFunctionsWidget * MdiChild::histogram | ( | ) |
|
signal |
| iADockWidgetWrapper * MdiChild::histogramDockWidget | ( | ) |
Access to histogram dock widget.
| vtkImageData * MdiChild::imageData | ( | ) |
Access to the "main image".
| vtkSmartPointer< vtkImageData > MdiChild::imagePointer | ( | ) |
Access to the "main image".
| dlg_imageproperty * MdiChild::imagePropertyDockWidget | ( | ) |
Access to image property dock widget.
| void MdiChild::initChannelRenderer | ( | uint | id, |
| bool | use3D, | ||
| bool | enableChannel = true |
||
| ) |
|
slot |
| bool MdiChild::isFullyLoaded | ( | ) | const |
workaround for bug in splitDockWidget (see https://bugreports.qt.io/browse/QTBUG-60093) splitDockWidget would makes ref and newWidget disappear if ref is tabbed at the moment
Checks whether the main image data is fully loaded.
| int MdiChild::isFuncEndPoint | ( | int | index | ) |
| bool MdiChild::isMagicLensToggled | ( | void | ) | const |
| bool MdiChild::isMaximized | ( | ) |
| bool MdiChild::isSliceProfileToggled | ( | void | ) | const |
| bool MdiChild::isSnakeSlicerToggled | ( | ) | const |
| bool MdiChild::isVolumeDataLoaded | ( | ) | const |
Whether volume data is loaded (only checks filename and volume dimensions).
| QString MdiChild::layoutName | ( | ) | const |
Returns the name of the layout currently applied to this child window.
| bool MdiChild::linkedMDIs | ( | ) | const |
Whether this child has the linked MDIs feature enabled.
| bool MdiChild::linkedViews | ( | ) | const |
Whether this child has the linked views feature enabled.
| void MdiChild::linkMDIs | ( | bool | lm | ) |
Enable or disable linked MDI windows for this MDI child.
| void MdiChild::linkViews | ( | bool | l | ) |
Enable or disable linked slicers and 3D renderer.
| bool MdiChild::loadFile | ( | const QString & | f, |
| bool | isStack | ||
| ) |
| void MdiChild::loadLayout | ( | QString const & | layout | ) |
Loads the layout with the given name from the settings store, and tries to restore the according dockwidgets configuration.
| bool MdiChild::loadRaw | ( | const QString & | f | ) |
| bool MdiChild::loadTransferFunction | ( | ) |
| dlg_logs * MdiChild::logDockWidget | ( | ) |
Access to log message dock widget.
| iALogger * MdiChild::logger | ( | ) |
| int MdiChild::magicLensFrameWidth | ( | ) | const |
| int MdiChild::magicLensSize | ( | ) | const |
|
signal |
| MainWindow * MdiChild::mainWnd | ( | ) |
|
slot |
|
slot |
|
slot |
|
slot |
| QSharedPointer< iAModalityList > MdiChild::modalities | ( | ) |
Retrieve the list of all currently loaded modalities.
| dlg_modalities * MdiChild::modalitiesDockWidget | ( | ) |
Access to modalities dock widget.
| QSharedPointer< iAModality > MdiChild::modality | ( | int | idx | ) |
Retrieve data for modality with given index.
| void MdiChild::multiview | ( | ) |
|
signal |
| vtkPiecewiseFunction * MdiChild::opacityTF | ( | ) |
Access the opacity function of the "main image".
|
signal |
| vtkPolyData * MdiChild::polyData | ( | ) |
Access to "main" polydata object (if any)
| int const * MdiChild::position | ( | ) | const |
Current coordinate position (defined by the respective slice number in the slice views).
| iAPreferences const & MdiChild::preferences | ( | ) | const |
|
signal |
| void MdiChild::prepareForResult | ( | ) |
| dlg_profile * MdiChild::profileDockWidget | ( | ) |
Access to line profile dock widget.
| QMap< QString, QSharedPointer< iAProjectBase > > const & MdiChild::projects | ( | ) |
| void MdiChild::redrawHistogram | ( | ) |
| void MdiChild::reInitMagicLens | ( | uint | id, |
| QString const & | name, | ||
| vtkSmartPointer< vtkImageData > | imgData, | ||
| vtkScalarsToColors * | ctf | ||
| ) |
| void MdiChild::removeChannel | ( | uint | id | ) |
Remove channel in all slicers.
|
slot |
| dlg_renderer * MdiChild::renderDockWidget | ( | ) |
Access to 3D renderer dock widget.
| iARenderer * MdiChild::renderer | ( | ) |
Access to the 3D renderer widget.
|
signal |
| iARenderSettings const & MdiChild::renderSettings | ( | ) | const |
|
signal |
|
slot |
| void MdiChild::resetTrf | ( | ) |
| void MdiChild::resetView | ( | ) |
| bool MdiChild::resultInNewWindow | ( | ) | const |
| bool MdiChild::save | ( | ) |
| bool MdiChild::saveAs | ( | ) |
| bool MdiChild::saveFile | ( | const QString & | f, |
| int | modalityNr, | ||
| int | componentNr | ||
| ) |
| void MdiChild::saveMovie | ( | iARenderer & | raycaster | ) |
Provides the possibility to save a raycaster movie of the given raycaster view.
| [in] | raycaster | the VTK raycaster the movie shall be exported from. |
| void MdiChild::saveProject | ( | QString const & | fileName | ) |
Save all currently loaded files into a project with the given file name.
| bool MdiChild::saveTransferFunction | ( | ) |
| int MdiChild::selectedFuncPoint | ( | ) |
|
slot |
Calls the setCamPosition function of iARenderer (described there in more detail).
| camOptions | All informations of the camera stored in a double array |
| rsParallelProjection | boolean variable to determine if parallel projection option on. |
|
overrideslot |
Calls the setCamPosition function of iARenderer (described there in more detail).
| pos | set one of the predefined camera positions |
| void MdiChild::setChannelRenderingEnabled | ( | uint | id, |
| bool | enabled | ||
| ) |
| void MdiChild::setCurrentFile | ( | const QString & | f | ) |
| void MdiChild::setHistogramFocus | ( | ) |
| void MdiChild::setImageData | ( | QString const & | filename, |
| vtkSmartPointer< vtkImageData > | imgData | ||
| ) |
| void MdiChild::setImageData | ( | vtkImageData * | iData | ) |
Set "main image" - does not update views (see displayResult for a method that does)!
| void MdiChild::setMagicLensEnabled | ( | bool | isOn | ) |
| void MdiChild::setMagicLensInput | ( | uint | id | ) |
| void MdiChild::setModalities | ( | QSharedPointer< iAModalityList > | modList | ) |
Set the list of modalities for this window.
| void MdiChild::setReInitializeRenderWindows | ( | bool | reInit | ) |
| void MdiChild::setRenderSettings | ( | iARenderSettings const & | rs, |
| iAVolumeSettings const & | vs | ||
| ) |
| void MdiChild::setROIVisible | ( | bool | visible | ) |
| void MdiChild::setSlicerChannelEnabled | ( | uint | id, |
| bool | enabled | ||
| ) |
Enable / disable a channel in all slicers.
|
slot |
| void MdiChild::setupSlicers | ( | iASlicerSettings const & | ss, |
| bool | init | ||
| ) |
|
slot |
|
slot |
| void MdiChild::showPoly | ( | ) |
| int MdiChild::sliceNumber | ( | int | mode | ) | const |
Get current slice number in the respective slicer.
| iASlicer * MdiChild::slicer | ( | int | mode | ) |
Access slicer for given mode (use iASlicerMode enum for mode values)
| dlg_slicer * MdiChild::slicerDockWidget | ( | int | mode | ) |
Access to slicer dock widget for the given mode.
| mode | slicer to access - use constants from iASlicerMode enum |
| iASlicerSettings const & MdiChild::slicerSettings | ( | ) | const |
|
signal |
| vtkTransform * MdiChild::slicerTransform | ( | ) |
| void MdiChild::toggleMagicLens | ( | bool | isEnabled | ) |
Magic Lens.
| void MdiChild::toggleSliceProfile | ( | bool | isEnabled | ) |
| void MdiChild::toggleSnakeSlicer | ( | bool | isEnabled | ) |
|
signal |
| void MdiChild::updateChannel | ( | uint | id, |
| vtkSmartPointer< vtkImageData > | imgData, | ||
| vtkScalarsToColors * | ctf, | ||
| vtkPiecewiseFunction * | otf, | ||
| bool | enable | ||
| ) |
Update the data of the given channel ID.
| void MdiChild::updateChannelMappers | ( | ) |
| void MdiChild::updateChannelOpacity | ( | uint | id, |
| double | opacity | ||
| ) |
Update opacity of the given channel ID.
| void MdiChild::updateLayout | ( | ) |
|
slot |
|
slot |
| void MdiChild::updateROI | ( | int const | roi[6] | ) |
|
slot |
|
slot |
|
slot |
|
slot |
| QString MdiChild::userFriendlyCurrentFile | ( | ) | const |
|
signal |
| iAVolumeSettings const & MdiChild::volumeSettings | ( | ) | const |
| iAVolumeStack * MdiChild::volumeStack | ( | ) |
| void MdiChild::waitForPreviousIO | ( | ) |
waits for the IO thread to finish in case any I/O operation is running; otherwise it will immediately exit
1.8.16