open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Slots | Public Member Functions | List of all members
MdiChild Class Reference

Child window of MainWindow's mdi area for showing a volume or mesh dataset. More...

#include <mdichild.h>

Inheritance diagram for MdiChild:
[legend]
Collaboration diagram for MdiChild:
[legend]

Public Slots

void addStatusMsg (QString const &txt) override
 
void camPosition (double *camOptions)
 Calls the camPosition function of iARenderer (described there in more detail). More...
 
void disableRenderWindows (int ch) override
 
void enableRenderWindows () override
 
void maximizeRC ()
 
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)
 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 toggleProfileHandles (bool isChecked)
 
void updateProbe (int ptIndex, double *newPos)
 
void updateRenderer () override
 
void updateSlicer (int index)
 
void updateSlicers () override
 
void updateViews () override
 
bool updateVolumePlayerView (int updateIndex, bool isApplyForAll)
 
- Public Slots inherited from iAMdiChild
virtual void disableRenderWindows (int ch)=0
 
virtual void enableRenderWindows ()=0
 method "enabling render windows", basically called when dataset is ready to be shown but quite convoluted and confusing, so: More...
 
virtual void updateRenderer ()=0
 Update 3D renderer. More...
 
virtual void updateSlicers ()=0
 Update all slice views. More...
 
virtual void updateViews ()=0
 Updates all views (slicers, renderers) More...
 

Public Member Functions

 MdiChild (MainWindow *mainWnd, iAPreferences const &preferences, bool unsavedChanges)
 
 ~MdiChild ()
 
void addProject (QString const &key, QSharedPointer< iAProjectBase > project) override
 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...
 
bool brightMode () const override
 whether the current qss theme is bright mode (true) or dark mode (false) 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") override
 If more than one modality loaded, ask user to choose one of them. More...
 
void clearHistogram () override
 Clear current histogram (i.e. don't show it anymore) More...
 
void connectAlgorithmSignalsToChildSlots (iAAlgorithm *thread)
 
void connectIOThreadSignals (iAIO *thread) override
 
void connectThreadSignalsToChildSlots (iAAlgorithm *thread) override
 
QString currentFile () const override
 Name of the currently open file (project file / first modality file / ...) If possible, use something more specific (e.g. More...
 
dlg_modalitiesdataDockWidget () override
 Access to modalities dock widget. More...
 
int deletePoint ()
 
bool displayResult (QString const &title, vtkImageData *image=nullptr, vtkPolyData *poly=nullptr) override
 display an image or a mesh might be deprecated soon. More...
 
bool doSaveProject (QString const &projectFileName) override
 Store current situation in the given project file: More...
 
bool editPrefs (iAPreferences const &p)
 
bool editRendererSettings (iARenderSettings const &rs, iAVolumeSettings const &vs) override
 "set" rednder settings More...
 
bool editSlicerSettings (iASlicerSettings const &slicerSettings)
 
void enableInteraction (bool b)
 
QFileInfo const & fileInfo () const override
 Access to file info of "current" file. More...
 
QString filePath () const override
 
bool hasProfilePlot () const
 whether this child has a profile plot (only has one if "normal" volume data loaded) More...
 
iAChartWithFunctionsWidgethistogram () override
 
QDockWidget * histogramDockWidget () override
 Access to histogram dock widget. More...
 
vtkImageData * imageData () override
 Access the opacity function of the "main image". More...
 
vtkSmartPointer< vtkImageData > imagePointer () override
 Access to the "main image". More...
 
QDockWidget * imagePropertyDockWidget () override
 Access to image property dock widget. More...
 
iAInteractionMode interactionMode () const override
 Retrieve the current interaction mode (whether camera is changed, or manual registration is active, see iAInteractionMode) More...
 
bool isFullyLoaded () const override
 Checks whether the main image data is fully loaded. More...
 
int isFuncEndPoint (int index)
 
bool isMaximized ()
 
bool isSliceProfileToggled (void) const
 
bool isSnakeSlicerToggled () const
 
bool isVolumeDataLoaded () const override
 Whether volume data is loaded (only checks filename and volume dimensions). More...
 
QString layoutName () const override
 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 override
 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) override
 Load a file. More...
 
void loadLayout (QString const &layout) override
 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 ()
 
iAMainWindowmainWnd () override
 Access to main window. More...
 
void maximizeSlicer (int mode)
 maximize slicer dockwidget with the given mode More...
 
bool meshDataMovable ()
 
QSharedPointer< iAModalityListmodalities () override
 Retrieve the list of all currently loaded modalities. More...
 
QSharedPointer< iAModalitymodality (int idx) override
 Retrieve data for modality with given index. More...
 
void multiview () override
 Apply the "multiview" layout (i.e. More...
 
vtkPolyData * polyData () override
 Access to "main" polydata object (if any) More...
 
int const * position () const override
 Current coordinate position (defined by the respective slice number in the slice views). More...
 
iAPreferences const & preferences () const override
 
void prepareForResult ()
 
bool profileHandlesEnabled () const
 whether profile handles are currently shown (i.e. "Edit profile points" mode is enabled) More...
 
QMap< QString, QSharedPointer< iAProjectBase > > const & projects ()
 
QDockWidget * renderDockWidget () override
 Access to 3D renderer dock widget. More...
 
iARendererrenderer () override
 Access to the 3D renderer widget. More...
 
iARenderSettings const & renderSettings () const override
 
void resetTrf ()
 
void resetView ()
 
bool resultInNewWindow () const
 
bool save ()
 
bool saveAs ()
 
bool saveFile (const QString &f, int modalityNr, int componentNr)
 
void saveProject (QString const &fileName) override
 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) override
 Set "main image" - does not update views (see displayResult for a method that does)! More...
 
void setInteractionMode (iAInteractionMode mode)
 
void setMeshDataMovable (bool movable)
 
void setModalities (QSharedPointer< iAModalityList > modList) override
 Set the list of modalities for this window. More...
 
void setReInitializeRenderWindows (bool reInit) override
 
void setRenderSettings (iARenderSettings const &rs, iAVolumeSettings const &vs)
 
void setROIVisible (bool visible) override
 
void setupSlicers (iASlicerSettings const &ss, bool init)
 
void showPoly ()
 
int sliceNumber (int mode) const
 Get current slice number in the respective slicer. More...
 
iASlicerslicer (int mode) override
 Access slicer for given mode (use iASlicerMode enum for mode values) More...
 
QHBoxLayout * slicerContainerLayout (int mode) override
 Access to the layout in the slicer dockwidget containing the actual iASlicer. More...
 
QDockWidget * slicerDockWidget (int mode) override
 Access to slicer dock widget for the given mode. More...
 
QSlider * slicerScrollBar (int mode) override
 Access to the scroll bar next to a slicer. More...
 
iASlicerSettings const & slicerSettings () const override
 
vtkTransform * slicerTransform () override
 
void toggleSliceProfile (bool isEnabled)
 
void toggleSnakeSlicer (bool isEnabled)
 
void updateLayout () override
 Apply the layout currently selected in the layout combobox in the main window. More...
 
void updateROI (int const roi[6]) override
 
QString userFriendlyCurrentFile () const
 
iAVolumeSettings const & volumeSettings () const override
 
iAVolumeStackvolumeStack () override
 Access the "volume stack" if a stack of volumes is loaded. More...
 
void waitForPreviousIO ()
 waits for the IO thread to finish in case any I/O operation is running; otherwise it will immediately exit More...
 
uint createChannel () override
 
void updateChannel (uint id, vtkSmartPointer< vtkImageData > imgData, vtkScalarsToColors *ctf, vtkPiecewiseFunction *otf, bool enable) override
 Update the data of the given channel ID. More...
 
void updateChannelOpacity (uint id, double opacity) override
 Update opacity of the given channel ID. More...
 
void setChannelRenderingEnabled (uint, bool enabled) override
 Enable/Disable channel rendering for a given channel ID. More...
 
void setSlicerChannelEnabled (uint id, bool enabled)
 Enable / disable a channel in all slicers. More...
 
void removeChannel (uint id) override
 Remove channel in all slicers. More...
 
iAChannelDatachannelData (uint id) override
 
iAChannelData const * channelData (uint id) const override
 
void initChannelRenderer (uint id, bool use3D, bool enableChannel=true) override
 Initialize the renderers for a channel. More...
 
void toggleMagicLens2D (bool isEnabled)
 Magic Lens. More...
 
void toggleMagicLens3D (bool isEnabled)
 
bool isMagicLens2DEnabled () const override
 whether the 2D magic lens in slicer is currently enabled More...
 
bool isMagicLens3DEnabled () const
 
void setMagicLensInput (uint id) override
 Set the ID of the channel which should be the input to the 2D magic lens in slicer. More...
 
void setMagicLensEnabled (bool isOn) override
 Enable/Disable the 2D magic lens in slicer. More...
 
void reInitMagicLens (uint id, QString const &name, vtkSmartPointer< vtkImageData > imgData, vtkScalarsToColors *ctf) override
 Reinitialize magic lens channel? More...
 
int magicLensSize () const
 
int magicLensFrameWidth () const
 
bool statisticsComputed (QSharedPointer< iAModality >)
 
bool statisticsComputable (QSharedPointer< iAModality >, int modalityIdx=-1)
 
void computeStatisticsAsync (std::function< void()> callbackSlot, QSharedPointer< iAModality > modality)
 
size_t histogramNewBinCount (QSharedPointer< iAModality >) override
 for recomputing histogram. should probably be made private somehow More...
 
bool histogramComputed (size_t newBinCount, QSharedPointer< iAModality >) override
 
void computeHistogramAsync (std::function< void()> callbackSlot, size_t newBinCount, QSharedPointer< iAModality >) override
 
- Public Member Functions inherited from iAMdiChild
virtual void addStatusMsg (QString const &txt)=0
 Adds a message to the status bar. More...
 
- Public Member Functions inherited from iASavableProject
QString const & fileName () const
 return the name of the last file that was stored More...
 
bool saveProject (QString const &basePath)
 Called from main window to save the project of the current window. More...
 

Additional Inherited Members

- Public Types inherited from iAMdiChild
enum  iAInteractionMode { imCamera , imRegistration }
 
- Signals inherited from iAMdiChild
void active ()
 obscure signal, actual use has to be determined More...
 
void closed ()
 
void fileLoaded ()
 emitted when the file data is loaded; the initialization operations are not fully done yet then - use histogramAvailable instead if you require the file to be fully loaded! More...
 
void histogramAvailable ()
 emitted when a file is fully loaded and its statistics and histogram are available. More...
 
void magicLensToggled (bool isToggled)
 emitted whenever the magic lens has been toggled on or off More...
 
void rendererDeactivated (int c)
 
void renderSettingsChanged ()
 emitted when the renderer settings have changed More...
 
void slicerSettingsChanged ()
 emitted when the slicer settings have changed More...
 
void transferFunctionChanged ()
 emitted when a transfer function changed More...
 
void viewsUpdated ()
 emitted when the slicer/renderer views have been updated, and when their camera has been reset More...
 
void pointSelected ()
 
void noPointSelected ()
 
void endPointSelected ()
 
- Protected Member Functions inherited from iASavableProject
virtual ~iASavableProject ()
 Prevent destruction of the object through this interface. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MdiChild()

MdiChild::MdiChild ( MainWindow mainWnd,
iAPreferences const &  preferences,
bool  unsavedChanges 
)

◆ ~MdiChild()

MdiChild::~MdiChild ( )

Member Function Documentation

◆ addProject()

void MdiChild::addProject ( QString const &  key,
QSharedPointer< iAProjectBase project 
)
overridevirtual

add project

Implements iAMdiChild.

◆ addStatusMsg

void MdiChild::addStatusMsg ( QString const &  txt)
overrideslot

◆ applyViewerPreferences()

void MdiChild::applyViewerPreferences ( )

◆ applyVolumeSettings()

void MdiChild::applyVolumeSettings ( const bool  loadSavedVolumeSettings)

Apply current volume settings to all modalities in the current list in dlg_modalities.

◆ brightMode()

bool MdiChild::brightMode ( ) const
overridevirtual

whether the current qss theme is bright mode (true) or dark mode (false)

Implements iAMdiChild.

◆ camPosition

void MdiChild::camPosition ( double *  camOptions)
slot

Calls the camPosition function of iARenderer (described there in more detail).

Parameters
camOptionsAll informations of the camera stored in a double array

◆ changeColor()

void MdiChild::changeColor ( )

◆ channelData() [1/2]

iAChannelData const * MdiChild::channelData ( uint  id) const
overridevirtual

Implements iAMdiChild.

◆ channelData() [2/2]

iAChannelData * MdiChild::channelData ( uint  id)
overridevirtual

Retrieve data for a given channel ID

Implements iAMdiChild.

◆ check2DMode()

void MdiChild::check2DMode ( )

◆ chooseComponentNr()

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)

◆ chooseModalityNr()

int MdiChild::chooseModalityNr ( QString const &  caption = "Choose Channel")
overridevirtual

If more than one modality loaded, ask user to choose one of them.

(currently used for determining which modality to save)

Implements iAMdiChild.

◆ clearHistogram()

void MdiChild::clearHistogram ( )
overridevirtual

Clear current histogram (i.e. don't show it anymore)

Implements iAMdiChild.

◆ computeHistogramAsync()

void MdiChild::computeHistogramAsync ( std::function< void()>  callbackSlot,
size_t  newBinCount,
QSharedPointer< iAModality mod 
)
overridevirtual

Implements iAMdiChild.

◆ computeStatisticsAsync()

void MdiChild::computeStatisticsAsync ( std::function< void()>  callbackSlot,
QSharedPointer< iAModality modality 
)

◆ connectAlgorithmSignalsToChildSlots()

void MdiChild::connectAlgorithmSignalsToChildSlots ( iAAlgorithm thread)

◆ connectIOThreadSignals()

void MdiChild::connectIOThreadSignals ( iAIO thread)
overridevirtual
Deprecated:
. Use iARunASync / new IO mechanism (to be devised)...

Implements iAMdiChild.

◆ connectThreadSignalsToChildSlots()

void MdiChild::connectThreadSignalsToChildSlots ( iAAlgorithm thread)
overridevirtual
Deprecated:
. Use iARunAsync / iAJobListView directly also, don't use iAAlgorithm anymore!

Implements iAMdiChild.

◆ createChannel()

uint MdiChild::createChannel ( )
overridevirtual

Multi-Channel rendering Create a new channel, return its ID.

Implements iAMdiChild.

◆ currentFile()

QString MdiChild::currentFile ( ) const
overridevirtual

Name of the currently open file (project file / first modality file / ...) If possible, use something more specific (e.g.

file name from specific modality)

Implements iAMdiChild.

◆ dataDockWidget()

dlg_modalities * MdiChild::dataDockWidget ( )
overridevirtual

Access to modalities dock widget.

Implements iAMdiChild.

◆ deletePoint()

int MdiChild::deletePoint ( )

◆ disableRenderWindows

void MdiChild::disableRenderWindows ( int  ch)
overrideslot

◆ displayResult()

bool MdiChild::displayResult ( QString const &  title,
vtkImageData *  image = nullptr,
vtkPolyData *  poly = nullptr 
)
overridevirtual

display an image or a mesh might be deprecated soon.

Use modality methods instead - though probably still required for first dataset at the moment.

Implements iAMdiChild.

◆ doSaveProject()

bool MdiChild::doSaveProject ( QString const &  projectFileName)
overridevirtual

Store current situation in the given project file:

  • loaded files and their transfer functions, when old project file (.mod) is chosen
  • configuration of opened tools (which support it), when new project file (.iaproj) is chosen (to be extended to modalities and TFs soon)

Implements iASavableProject.

◆ editPrefs()

bool MdiChild::editPrefs ( iAPreferences const &  p)

◆ editRendererSettings()

bool MdiChild::editRendererSettings ( iARenderSettings const &  rs,
iAVolumeSettings const &  vs 
)
overridevirtual

"set" rednder settings

Implements iAMdiChild.

◆ editSlicerSettings()

bool MdiChild::editSlicerSettings ( iASlicerSettings const &  slicerSettings)

◆ enableInteraction()

void MdiChild::enableInteraction ( bool  b)

◆ enableRenderWindows

void MdiChild::enableRenderWindows ( )
overrideslot

◆ fileInfo()

QFileInfo const & MdiChild::fileInfo ( ) const
overridevirtual

Access to file info of "current" file.

Deprecated:
. Use access via modalities instead

Implements iAMdiChild.

◆ filePath()

QString MdiChild::filePath ( ) const
overridevirtual

Implements iAMdiChild.

◆ hasProfilePlot()

bool MdiChild::hasProfilePlot ( ) const

whether this child has a profile plot (only has one if "normal" volume data loaded)

◆ histogram()

iAChartWithFunctionsWidget * MdiChild::histogram ( )
overridevirtual

Implements iAMdiChild.

◆ histogramComputed()

bool MdiChild::histogramComputed ( size_t  newBinCount,
QSharedPointer< iAModality mod 
)
overridevirtual

Implements iAMdiChild.

◆ histogramDockWidget()

QDockWidget * MdiChild::histogramDockWidget ( )
overridevirtual

Access to histogram dock widget.

Implements iAMdiChild.

◆ histogramNewBinCount()

size_t MdiChild::histogramNewBinCount ( QSharedPointer< iAModality )
overridevirtual

for recomputing histogram. should probably be made private somehow

Implements iAMdiChild.

◆ imageData()

vtkImageData * MdiChild::imageData ( )
overridevirtual

Access the opacity function of the "main image".

Deprecated:
all access to images should proceed via modalities (modality(int) / setModalities /...)

Access the color transfer function of the "main image"

Deprecated:
all access to images should proceed via modalities (modality(int) / setModalities /...)

Access to the "main image"

Deprecated:
retrieve images via the modalities (modality(int) etc.) instead!

Implements iAMdiChild.

◆ imagePointer()

vtkSmartPointer< vtkImageData > MdiChild::imagePointer ( )
overridevirtual

Access to the "main image".

Deprecated:
retrieve images via the modalities (modality(int) etc.) instead!

Implements iAMdiChild.

◆ imagePropertyDockWidget()

QDockWidget * MdiChild::imagePropertyDockWidget ( )
overridevirtual

Access to image property dock widget.

Implements iAMdiChild.

◆ initChannelRenderer()

void MdiChild::initChannelRenderer ( uint  id,
bool  use3D,
bool  enableChannel = true 
)
overridevirtual

Initialize the renderers for a channel.

Implements iAMdiChild.

◆ interactionMode()

MdiChild::iAInteractionMode MdiChild::interactionMode ( ) const
overridevirtual

Retrieve the current interaction mode (whether camera is changed, or manual registration is active, see iAInteractionMode)

Implements iAMdiChild.

◆ isFullyLoaded()

bool MdiChild::isFullyLoaded ( ) const
overridevirtual

Checks whether the main image data is fully loaded.

Implements iAMdiChild.

◆ isFuncEndPoint()

int MdiChild::isFuncEndPoint ( int  index)

◆ isMagicLens2DEnabled()

bool MdiChild::isMagicLens2DEnabled ( ) const
overridevirtual

whether the 2D magic lens in slicer is currently enabled

Implements iAMdiChild.

◆ isMagicLens3DEnabled()

bool MdiChild::isMagicLens3DEnabled ( ) const

◆ isMaximized()

bool MdiChild::isMaximized ( )

◆ isSliceProfileToggled()

bool MdiChild::isSliceProfileToggled ( void  ) const

◆ isSnakeSlicerToggled()

bool MdiChild::isSnakeSlicerToggled ( ) const

◆ isVolumeDataLoaded()

bool MdiChild::isVolumeDataLoaded ( ) const
overridevirtual

Whether volume data is loaded (only checks filename and volume dimensions).

Implements iAMdiChild.

◆ layoutName()

QString MdiChild::layoutName ( ) const
overridevirtual

Returns the name of the layout currently applied to this child window.

Implements iAMdiChild.

◆ linkedMDIs()

bool MdiChild::linkedMDIs ( ) const

Whether this child has the linked MDIs feature enabled.

◆ linkedViews()

bool MdiChild::linkedViews ( ) const
overridevirtual

Whether this child has the linked views feature enabled.

Implements iAMdiChild.

◆ linkMDIs()

void MdiChild::linkMDIs ( bool  lm)

Enable or disable linked MDI windows for this MDI child.

◆ linkViews()

void MdiChild::linkViews ( bool  l)

Enable or disable linked slicers and 3D renderer.

◆ loadFile()

bool MdiChild::loadFile ( const QString &  f,
bool  isStack 
)
overridevirtual

Load a file.

Deprecated:
. Use modality methods / new IO structure (to be defined)

Implements iAMdiChild.

◆ loadLayout()

void MdiChild::loadLayout ( QString const &  layout)
overridevirtual

Loads the layout with the given name from the settings store, and tries to restore the according dockwidgets configuration.

Implements iAMdiChild.

◆ loadRaw()

bool MdiChild::loadRaw ( const QString &  f)

◆ loadTransferFunction()

bool MdiChild::loadTransferFunction ( )

◆ magicLensFrameWidth()

int MdiChild::magicLensFrameWidth ( ) const

◆ magicLensSize()

int MdiChild::magicLensSize ( ) const

◆ mainWnd()

iAMainWindow * MdiChild::mainWnd ( )
overridevirtual

Access to main window.

Deprecated:
should not be available here

Implements iAMdiChild.

◆ maximizeRC

void MdiChild::maximizeRC ( )
slot

◆ maximizeSlicer()

void MdiChild::maximizeSlicer ( int  mode)

maximize slicer dockwidget with the given mode

◆ meshDataMovable()

bool MdiChild::meshDataMovable ( )

◆ modalities()

QSharedPointer< iAModalityList > MdiChild::modalities ( )
overridevirtual

Retrieve the list of all currently loaded modalities.

Implements iAMdiChild.

◆ modality()

QSharedPointer< iAModality > MdiChild::modality ( int  idx)
overridevirtual

Retrieve data for modality with given index.

Implements iAMdiChild.

◆ multiview()

void MdiChild::multiview ( )
overridevirtual

Apply the "multiview" layout (i.e.

where not only one dock widget but multiple are shown) Should probably not be used anymore, might be deprecated soon

Implements iAMdiChild.

◆ polyData()

vtkPolyData * MdiChild::polyData ( )
overridevirtual

Access to "main" polydata object (if any)

Deprecated:
move out of mdi child, into something like an iAModality

Implements iAMdiChild.

◆ position()

int const * MdiChild::position ( ) const
overridevirtual

Current coordinate position (defined by the respective slice number in the slice views).

Implements iAMdiChild.

◆ preferences()

iAPreferences const & MdiChild::preferences ( ) const
overridevirtual

Implements iAMdiChild.

◆ prepareForResult()

void MdiChild::prepareForResult ( )

◆ profileHandlesEnabled()

bool MdiChild::profileHandlesEnabled ( ) const

whether profile handles are currently shown (i.e. "Edit profile points" mode is enabled)

◆ projects()

QMap< QString, QSharedPointer< iAProjectBase > > const & MdiChild::projects ( )

◆ reInitMagicLens()

void MdiChild::reInitMagicLens ( uint  id,
QString const &  name,
vtkSmartPointer< vtkImageData >  imgData,
vtkScalarsToColors *  ctf 
)
overridevirtual

Reinitialize magic lens channel?

Deprecated:
, use channel mechanisms / setMagicLensInput instead!

Implements iAMdiChild.

◆ removeChannel()

void MdiChild::removeChannel ( uint  id)
overridevirtual

Remove channel in all slicers.

Implements iAMdiChild.

◆ removeFinishedAlgorithms

void MdiChild::removeFinishedAlgorithms ( )
slot

◆ renderDockWidget()

QDockWidget * MdiChild::renderDockWidget ( )
overridevirtual

Access to 3D renderer dock widget.

Implements iAMdiChild.

◆ renderer()

iARenderer * MdiChild::renderer ( )
overridevirtual

Access to the 3D renderer widget.

Implements iAMdiChild.

◆ renderSettings()

iARenderSettings const & MdiChild::renderSettings ( ) const
overridevirtual

Implements iAMdiChild.

◆ resetLayout

void MdiChild::resetLayout ( )
slot

◆ resetTrf()

void MdiChild::resetTrf ( )

◆ resetView()

void MdiChild::resetView ( )

◆ resultInNewWindow()

bool MdiChild::resultInNewWindow ( ) const

◆ save()

bool MdiChild::save ( )

◆ saveAs()

bool MdiChild::saveAs ( )

◆ saveFile()

bool MdiChild::saveFile ( const QString &  f,
int  modalityNr,
int  componentNr 
)

◆ saveProject()

void MdiChild::saveProject ( QString const &  fileName)
overridevirtual

Save all currently loaded files into a project with the given file name.

Implements iAMdiChild.

◆ saveTransferFunction()

bool MdiChild::saveTransferFunction ( )

◆ selectedFuncPoint()

int MdiChild::selectedFuncPoint ( )

◆ setCamPosition [1/2]

void MdiChild::setCamPosition ( double *  camOptions,
bool  rsParallelProjection 
)
slot

Calls the setCamPosition function of iARenderer (described there in more detail).

Parameters
camOptionsAll informations of the camera stored in a double array
rsParallelProjectionboolean variable to determine if parallel projection option on.

◆ setCamPosition [2/2]

void MdiChild::setCamPosition ( int  pos)
slot

Calls the setCamPosition function of iARenderer (described there in more detail).

Parameters
posset one of the predefined camera positions

◆ setChannelRenderingEnabled()

void MdiChild::setChannelRenderingEnabled ( uint  ,
bool  enabled 
)
overridevirtual

Enable/Disable channel rendering for a given channel ID.

Implements iAMdiChild.

◆ setCurrentFile()

void MdiChild::setCurrentFile ( const QString &  f)

◆ setHistogramFocus()

void MdiChild::setHistogramFocus ( )

◆ setImageData() [1/2]

void MdiChild::setImageData ( QString const &  filename,
vtkSmartPointer< vtkImageData >  imgData 
)
Deprecated:
all access to images should proceed via modalities (modality(int) / setModalities /...) or channels (createChannel/updateChannel)

◆ setImageData() [2/2]

void MdiChild::setImageData ( vtkImageData *  iData)
overridevirtual

Set "main image" - does not update views (see displayResult for a method that does)!

Deprecated:
all access to images should proceed via modalities (modality(int) / setModalities /...) or channels (createChannel/updateChannel)

Implements iAMdiChild.

◆ setInteractionMode()

void MdiChild::setInteractionMode ( iAInteractionMode  mode)

◆ setMagicLensEnabled()

void MdiChild::setMagicLensEnabled ( bool  isOn)
overridevirtual

Enable/Disable the 2D magic lens in slicer.

Implements iAMdiChild.

◆ setMagicLensInput()

void MdiChild::setMagicLensInput ( uint  id)
overridevirtual

Set the ID of the channel which should be the input to the 2D magic lens in slicer.

Implements iAMdiChild.

◆ setMeshDataMovable()

void MdiChild::setMeshDataMovable ( bool  movable)

◆ setModalities()

void MdiChild::setModalities ( QSharedPointer< iAModalityList modList)
overridevirtual

Set the list of modalities for this window.

Implements iAMdiChild.

◆ setReInitializeRenderWindows()

void MdiChild::setReInitializeRenderWindows ( bool  reInit)
overridevirtual
Deprecated:
. can be removed together with enableRenderWindow/disableRenderWindow

Implements iAMdiChild.

◆ setRenderSettings()

void MdiChild::setRenderSettings ( iARenderSettings const &  rs,
iAVolumeSettings const &  vs 
)

◆ setROIVisible()

void MdiChild::setROIVisible ( bool  visible)
overridevirtual

Implements iAMdiChild.

◆ setSlicerChannelEnabled()

void MdiChild::setSlicerChannelEnabled ( uint  id,
bool  enabled 
)

Enable / disable a channel in all slicers.

◆ setupProject

void MdiChild::setupProject ( bool  active = false)
slot

◆ setupSlicers()

void MdiChild::setupSlicers ( iASlicerSettings const &  ss,
bool  init 
)

◆ setupStackView

void MdiChild::setupStackView ( bool  active = false)
slot

◆ setupView

void MdiChild::setupView ( bool  active = false)
slot

◆ showPoly()

void MdiChild::showPoly ( )

◆ sliceNumber()

int MdiChild::sliceNumber ( int  mode) const

Get current slice number in the respective slicer.

◆ slicer()

iASlicer * MdiChild::slicer ( int  mode)
overridevirtual

Access slicer for given mode (use iASlicerMode enum for mode values)

Implements iAMdiChild.

◆ slicerContainerLayout()

QHBoxLayout * MdiChild::slicerContainerLayout ( int  mode)
overridevirtual

Access to the layout in the slicer dockwidget containing the actual iASlicer.

Implements iAMdiChild.

◆ slicerDockWidget()

QDockWidget * MdiChild::slicerDockWidget ( int  mode)
overridevirtual

Access to slicer dock widget for the given mode.

Parameters
modeslicer to access - use constants from iASlicerMode enum

Implements iAMdiChild.

◆ slicerScrollBar()

QSlider * MdiChild::slicerScrollBar ( int  mode)
overridevirtual

Access to the scroll bar next to a slicer.

Implements iAMdiChild.

◆ slicerSettings()

iASlicerSettings const & MdiChild::slicerSettings ( ) const
overridevirtual

Implements iAMdiChild.

◆ slicerTransform()

vtkTransform * MdiChild::slicerTransform ( )
overridevirtual
Deprecated:
. Access slicers directly?

Implements iAMdiChild.

◆ statisticsComputable()

bool MdiChild::statisticsComputable ( QSharedPointer< iAModality modality,
int  modalityIdx = -1 
)

◆ statisticsComputed()

bool MdiChild::statisticsComputed ( QSharedPointer< iAModality modality)

◆ toggleMagicLens2D()

void MdiChild::toggleMagicLens2D ( bool  isEnabled)

Magic Lens.

◆ toggleMagicLens3D()

void MdiChild::toggleMagicLens3D ( bool  isEnabled)

◆ toggleProfileHandles

void MdiChild::toggleProfileHandles ( bool  isChecked)
slot

◆ toggleSliceProfile()

void MdiChild::toggleSliceProfile ( bool  isEnabled)

◆ toggleSnakeSlicer()

void MdiChild::toggleSnakeSlicer ( bool  isEnabled)

◆ updateChannel()

void MdiChild::updateChannel ( uint  id,
vtkSmartPointer< vtkImageData >  imgData,
vtkScalarsToColors *  ctf,
vtkPiecewiseFunction *  otf,
bool  enable 
)
overridevirtual

Update the data of the given channel ID.

Implements iAMdiChild.

◆ updateChannelOpacity()

void MdiChild::updateChannelOpacity ( uint  id,
double  opacity 
)
overridevirtual

Update opacity of the given channel ID.

Implements iAMdiChild.

◆ updateLayout()

void MdiChild::updateLayout ( )
overridevirtual

Apply the layout currently selected in the layout combobox in the main window.

Implements iAMdiChild.

◆ updateProbe

void MdiChild::updateProbe ( int  ptIndex,
double *  newPos 
)
slot

◆ updateRenderer

void MdiChild::updateRenderer ( )
overrideslot

◆ updateROI()

void MdiChild::updateROI ( int const  roi[6])
overridevirtual

Implements iAMdiChild.

◆ updateSlicer

void MdiChild::updateSlicer ( int  index)
slot

◆ updateSlicers

void MdiChild::updateSlicers ( )
overrideslot

◆ updateViews

void MdiChild::updateViews ( )
overrideslot

◆ updateVolumePlayerView

bool MdiChild::updateVolumePlayerView ( int  updateIndex,
bool  isApplyForAll 
)
slot

◆ userFriendlyCurrentFile()

QString MdiChild::userFriendlyCurrentFile ( ) const

◆ volumeSettings()

iAVolumeSettings const & MdiChild::volumeSettings ( ) const
overridevirtual

Implements iAMdiChild.

◆ volumeStack()

iAVolumeStack * MdiChild::volumeStack ( )
overridevirtual

Access the "volume stack" if a stack of volumes is loaded.

Implements iAMdiChild.

◆ waitForPreviousIO()

void MdiChild::waitForPreviousIO ( )

waits for the IO thread to finish in case any I/O operation is running; otherwise it will immediately exit


The documentation for this class was generated from the following files: