open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
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 camPosition (double *camOptions)
 Calls the camPosition function of iARenderer (described there in more detail).
 
void enableRendererInteraction (bool enable)
 set renderer interaction on / off
 
void enableSlicerInteraction (bool enable)
 set slicer interaction on / off
 
void maximizeRenderer ()
 maximize the renderer (so that it takes all of the child's space, all other dock widgets are hidden)
 
void setCamPosition (double *camOptions, bool rsParallelProjection)
 Calls the setCamPosition function of iARenderer (described there in more detail).
 
void setPredefCamPos (int pos)
 Calls the setCamPosition function of iARenderer (described there in more detail).
 
void toggleProfileHandles (bool isChecked)
 called when the user wants to display the profile handles inside the views showing the dataset (3D renderer and slicers)
 
void updateRenderer () override
 update 3D renderer
 
void updateSlicer (int index)
 update a specific slicer (specified through slicer mode,
 
void updateSlicers () override
 update all 3 axis-aligned slicer
 
void updateViews () override
 update all dataset views (3D renderer + all 3 axis-aligned slicers)
 
- Public Slots inherited from iAMdiChild
virtual void updateRenderer ()=0
 Update 3D renderer.
 
virtual void updateSlicers ()=0
 Update all slice views.
 
virtual void updateViews ()=0
 Updates all views (slicers, renderers)
 

Public Member Functions

 MdiChild (MainWindow *mainWnd, iAPreferences const &preferences, bool unsavedChanges)
 
 ~MdiChild ()
 
size_t addDataSet (std::shared_ptr< iADataSet > dataSet) override
 add a dataset
 
void addTool (QString const &key, std::shared_ptr< iATool > tool) override
 Add a new tool to this child window.
 
void applyPreferences (iAPreferences const &p)
 
void applyRendererSettings (iARenderSettings const &rs, iAVolumeSettings const &vs) override
 apply the given (3D) renderer settings
 
void applySlicerSettings (iASlicerSettings const &ss)
 
void applyViewerPreferences ()
 
void applyVolumeSettings ()
 
std::shared_ptr< iADataSetchooseDataSet (QString const &title="Choose dataset") override
 If more than one dataset loaded, ask user to choose one of them (used for saving)
 
void clearDataSets () override
 clear (remove) all datasets
 
QString currentFile () const override
 Name of the currently open file (project file / first modality file / ...) If possible, use something more specific (e.g.
 
QDockWidget * dataInfoDockWidget () override
 Access to dataset information dock widget.
 
std::shared_ptr< iADataSetdataSet (size_t dataSetIdx) const override
 Retrieve a dataset by its index.
 
size_t dataSetIndex (iADataSet const *dataSet) const override
 Retrieve the index of a dataset.
 
iADataSetListWidgetdataSetListWidget () override
 Retrieve dataset list.
 
std::map< size_t, std::shared_ptr< iADataSet > > const & dataSetMap () const override
 Retrieve a list of the indices of all datasets loaded in this window.
 
iADataSetViewerdataSetViewer (size_t idx) const override
 Retrieve the viewer for the dataset with given index.
 
bool doSaveProject (QString const &projectFileName) override
 Store current situation in the given project file:
 
QFileInfo const & fileInfo () const override
 Access to file info of "current" file.
 
QString filePath () const override
 
vtkSmartPointer< vtkImageData > firstImageData () const override
 Retrieve the first image dataset (if any loaded).
 
size_t firstImageDataSetIdx () const override
 Retrieve the index of the first image data set (if any loaded), or NoDataSet if none loaded.
 
bool hasUnsavedData () const
 
void initializeViews ()
 performs initialization that needs to be done after the widget is being displayed
 
iAInteractionMode interactionMode () const override
 Retrieve the current interaction mode (whether camera is changed, or manual registration is active, see iAInteractionMode)
 
bool isRendererInteractionEnabled () const
 return true if interaction is enabled in renderer, false otherwise
 
bool isSliceProfileEnabled () const
 
bool isSlicerInteractionEnabled () const
 return true if interaction is enabled in all slicers, false otherwise (i.e. if disabled in at least one)
 
bool isSnakeSlicerToggled () const
 
bool isVolumeDataLoaded () const override
 Whether volume data is loaded (only checks filename and volume dimensions).
 
QString layoutName () const override
 Returns the name of the layout currently applied to this child window.
 
bool linkedMDIs () const
 Whether this child has the linked MDIs feature enabled.
 
bool linkedViews () const override
 Whether this child has the linked views feature enabled.
 
void linkMDIs (bool lm)
 Enable or disable linked MDI windows for this MDI child.
 
void linkViews (bool l)
 Enable or disable linked slicers and 3D renderer.
 
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.
 
void loadSettings (QSettings const &settings) override
 load state (saved via saveState)
 
void maximizeSlicer (int mode)
 maximize slicer dockwidget with the given mode
 
void multiview () override
 Apply the "multiview" layout (i.e. where not only one dock widget but multiple are shown)
 
iAPreferences const & preferences () const override
 
bool profileHandlesEnabled () const
 whether profile handles are currently shown (i.e. "Edit profile points" mode is enabled)
 
void removeDataSet (size_t dataSetIdx) override
 remove dataset with given ID
 
void removeTool (QString const &key) override
 Remove tool with the given key from this window.
 
QDockWidget * renderDockWidget () override
 Access to 3D renderer dock widget.
 
iARendererrenderer () override
 Access to the 3D renderer widget.
 
QWidget * rendererWidget () override
 Access to 3D renderer widget.
 
iARenderSettings const & renderSettings () const override
 
void resetLayout ()
 reset the layout to the way it was directly after setting up this child
 
bool resultInNewWindow () const
 Whether results should be opened in a new window; if false, they replace the content of the current window instead.
 
bool save ()
 
void saveSettings (QSettings &settings) override
 save state, for example camera position
 
void saveVolumeStack ()
 
void set3DControlVisibility (bool visible) override
 
void setDataSetMovable (size_t dataSetIdx) override
 a crutch for letting interactor know which dataset is to be moved and synced across slicers
 
void setInteractionMode (iAInteractionMode mode)
 
void setProfilePoints (double const *start, double const *end) override
 called to set profile point positions in renderer and slicer
 
void setRenderSettings (iARenderSettings const &rs, iAVolumeSettings const &vs)
 
void setROIVisible (bool visible) override
 
void setWindowTitleAndFile (const QString &f) override
 set window title, and if a file name is given, set it as window file and add it to recent files
 
int sliceNumber (int mode) const
 Get current slice number in the respective slicer.
 
iASlicerslicer (int mode) override
 Access slicer for given mode (use iASlicerMode enum for mode values)
 
QHBoxLayout * slicerContainerLayout (int mode) override
 Access to the layout in the slicer dockwidget containing the actual iASlicer.
 
QDockWidget * slicerDockWidget (int mode) override
 Access to slicer dock widget for the given mode.
 
QSlider * slicerScrollBar (int mode) override
 Access to the scroll bar next to a slicer.
 
iASlicerSettings const & slicerSettings () const override
 
vtkTransform * slicerTransform () override
 
void toggleSliceProfile (bool isEnabled)
 
void toggleSnakeSlicer (bool isEnabled)
 
QMap< QString, std::shared_ptr< iATool > > const & tools () override
 Retrieve all currently attached tools and their keys.
 
void updateLayout () override
 Apply the layout currently selected in the layout combobox in the main window.
 
void updateROI (int const roi[6]) override
 
iAVolumeSettings const & volumeSettings () const override
 
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.
 
void updateChannelOpacity (uint id, double opacity) override
 Update opacity of the given channel ID.
 
void setChannelRenderingEnabled (uint, bool enabled) override
 Enable/Disable channel rendering for a given channel ID.
 
void setSlicerChannelEnabled (uint id, bool enabled)
 Enable / disable a channel in all slicers.
 
void removeChannel (uint id) override
 Remove channel in all slicers.
 
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.
 
void toggleMagicLens3D (bool isEnabled)
 3D Magic Lens
 
bool isMagicLens3DEnabled () const
 
vtkRenderer * magicLens3DRenderer () const override
 Reinitialize magic lens channel?
 
void toggleMagicLens2D (bool isEnabled)
 2D Magic Lens
 
bool isMagicLens2DEnabled () const override
 whether the 2D magic lens in slicer is currently enabled
 
void setMagicLensInput (uint id) override
 Set the ID of the channel which should be the input to the 2D magic lens in slicer.
 
void setMagicLensEnabled (bool isOn) override
 Enable/Disable the 2D magic lens in slicer.
 
int magicLensSize () const
 
int magicLensFrameWidth () const
 
virtual size_t addDataSet (std::shared_ptr< iADataSet > dataSet)=0
 add a dataset
 
virtual void addTool (QString const &key, std::shared_ptr< iATool > tool)=0
 add a tool to this child (a collection of UI elements with their own behavior and state)
 
virtual void applyRendererSettings (iARenderSettings const &rs, iAVolumeSettings const &vs)=0
 apply the given (3D) renderer settings
 
virtual std::shared_ptr< iADataSetchooseDataSet (QString const &title="Choose dataset")=0
 If more than one dataset loaded, ask user to choose one of them (used for saving)
 
virtual void clearDataSets ()=0
 clear (remove) all datasets
 
virtual uint createChannel ()=0
 Create a new channel, return its ID.
 
virtual QString currentFile () const =0
 Name of the currently open file (project file / first modality file / ...) If possible, use something more specific (e.g.
 
virtual QDockWidget * dataInfoDockWidget ()=0
 Access to dataset information dock widget.
 
virtual std::shared_ptr< iADataSetdataSet (size_t dataSetIdx) const =0
 Retrieve a dataset by its index.
 
virtual size_t dataSetIndex (iADataSet const *dataSet) const =0
 Retrieve the index of a dataset.
 
virtual iADataSetListWidgetdataSetListWidget ()=0
 Retrieve dataset list.
 
virtual std::map< size_t, std::shared_ptr< iADataSet > > const & dataSetMap () const =0
 Retrieve a list of the indices of all datasets loaded in this window.
 
virtual iADataSetViewerdataSetViewer (size_t idx) const =0
 Retrieve the viewer for the dataset with given index.
 
virtual QFileInfo const & fileInfo () const =0
 Access to file info of "current" file.
 
virtual QString filePath () const =0
 
virtual vtkSmartPointer< vtkImageData > firstImageData () const =0
 Retrieve the first image dataset (if any loaded).
 
virtual size_t firstImageDataSetIdx () const =0
 Retrieve the index of the first image data set (if any loaded), or NoDataSet if none loaded.
 
virtual void initChannelRenderer (uint id, bool use3D, bool enableChannel=true)=0
 Initialize the renderers for a channel.
 
virtual iAInteractionMode interactionMode () const =0
 Retrieve the current interaction mode (whether camera is changed, or manual registration is active, see iAInteractionMode)
 
virtual bool isMagicLens2DEnabled () const =0
 whether the 2D magic lens in slicer is currently enabled
 
virtual bool isVolumeDataLoaded () const =0
 whether the child currently has volume data loaded
 
virtual QString layoutName () const =0
 Returns the name of the layout currently applied to this child window.
 
virtual bool linkedViews () const =0
 Whether this child has the linked views feature enabled.
 
virtual void loadLayout (QString const &layout)=0
 Loads the layout with the given name from the settings store, and tries to restore the according dockwidgets configuration.
 
virtual void loadSettings (QSettings const &settings)=0
 load state (saved via saveState)
 
virtual vtkRenderer * magicLens3DRenderer () const =0
 Reinitialize magic lens channel?
 
virtual void multiview ()=0
 Apply the "multiview" layout (i.e. where not only one dock widget but multiple are shown)
 
virtual iAPreferences const & preferences () const =0
 
virtual void removeChannel (uint id)=0
 Remove channel in all slicers.
 
virtual void removeDataSet (size_t dataSetIdx)=0
 remove dataset with given ID
 
virtual void removeTool (QString const &key)=0
 removes the given tool from this child
 
virtual QDockWidget * renderDockWidget ()=0
 Access to 3D renderer dock widget.
 
virtual iARendererrenderer ()=0
 Access to the 3D renderer widget.
 
virtual QWidget * rendererWidget ()=0
 Access to widget containing the 3D renderer.
 
virtual iARenderSettings const & renderSettings () const =0
 
virtual void saveSettings (QSettings &settings)=0
 save state, for example camera position
 
virtual void set3DControlVisibility (bool visible)=0
 
virtual void setChannelRenderingEnabled (uint, bool enabled)=0
 Enable/Disable channel rendering for a given channel ID.
 
virtual void setDataSetMovable (size_t dataSetIdx)=0
 a crutch for letting interactor know which dataset is to be moved and synced across slicers
 
virtual void setMagicLensEnabled (bool isOn)=0
 Enable/Disable the 2D magic lens in slicer.
 
virtual void setMagicLensInput (uint id)=0
 Set the ID of the channel which should be the input to the 2D magic lens in slicer.
 
virtual void setProfilePoints (double const *start, double const *end)=0
 called to set profile point positions in renderer and slicer
 
virtual void setROIVisible (bool isVisible)=0
 
virtual void setWindowTitleAndFile (QString const &f)=0
 set window title, and if a file name is given, set it as window file and add it to recent files
 
virtual iASlicerslicer (int mode)=0
 Access slicer for given mode (use iASlicerMode enum for mode values)
 
virtual QHBoxLayout * slicerContainerLayout (int mode)=0
 Access to the layout in the slicer dockwidget containing the actual iASlicer.
 
virtual QDockWidget * slicerDockWidget (int mode)=0
 Access to slicer dock widget for the given mode.
 
virtual QSlider * slicerScrollBar (int mode)=0
 Access to the scroll bar next to a slicer.
 
virtual iASlicerSettings const & slicerSettings () const =0
 
virtual vtkTransform * slicerTransform ()=0
 
virtual QMap< QString, std::shared_ptr< iATool > > const & tools ()=0
 retrieve all tools attached to this child
 
virtual void updateChannel (uint id, vtkSmartPointer< vtkImageData > imgData, vtkScalarsToColors *ctf, vtkPiecewiseFunction *otf, bool enable)=0
 Update the data of the given channel ID.
 
virtual void updateChannelOpacity (uint id, double opacity)=0
 Update opacity of the given channel ID.
 
virtual void updateLayout ()=0
 Apply the layout currently selected in the layout combobox in the main window.
 
virtual void updateROI (int const roi[6])=0
 
virtual iAVolumeSettings const & volumeSettings () const =0
 
- Public Member Functions inherited from iASavableProject
QString const & fileName () const
 return the name of the last file that was stored
 
bool saveProject (QString const &basePath)
 Called from main window to save the project of the current window.
 

Additional Inherited Members

- Public Types inherited from iAMdiChild
enum  iAInteractionMode { imCamera , imRegistration }
 
- Signals inherited from iAMdiChild
void closed ()
 
void dataSetChanged (size_t dataSetIdx)
 emitted when properties of a dataset have been changed
 
void dataSetPrepared (size_t dataSetIdx)
 emitted when all data for displaying a dataset has been prepared
 
void dataSetRemoved (size_t dataSetIdx)
 emitted when a dataset has been removed
 
void dataSetRendered (size_t dataSetIdx)
 emitted when the dataset has been added to all relevant views
 
void dataSetSelected (size_t dataSetIdx)
 emitted when a dataset has been selected in the data list
 
void fileLoaded ()
 emitted when the file data is loaded; the initialization operations are not fully done yet then - use dataSetRendered instead if you require the file to be fully loaded!
 
void magicLensToggled (bool isToggled)
 emitted whenever the magic lens has been toggled on or off
 
void preferencesChanged ()
 emitted when the preferences have changed
 
void profilePointChanged (int pointIdx, double *globalPos)
 emitted whenever one of the profile points changes
 
void rendererDeactivated (int c)
 
void renderSettingsChanged ()
 emitted when the renderer settings have changed
 
void slicerSettingsChanged ()
 emitted when the slicer settings have changed
 
void viewsUpdated ()
 emitted when the slicer/renderer views have been updated, and when their camera has been reset
 
- Static Public Attributes inherited from iAMdiChild
static const size_t NoDataSet = std::numeric_limits<size_t>::max()
 Constant indicating an invalid dataset index.
 
- Protected Member Functions inherited from iASavableProject
virtual ~iASavableProject ()
 Prevent destruction of the object through this interface.
 

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

◆ addDataSet()

size_t MdiChild::addDataSet ( std::shared_ptr< iADataSet dataSet)
overridevirtual

add a dataset

Implements iAMdiChild.

◆ addTool()

void MdiChild::addTool ( QString const &  key,
std::shared_ptr< iATool tool 
)
overridevirtual

Add a new tool to this child window.

Parameters
keya unique key for identifying this tool; will also be used for storing the tool state in a project file
toolan instance of an iATool-derived class providing some graphical or computational tool

Implements iAMdiChild.

◆ applyPreferences()

void MdiChild::applyPreferences ( iAPreferences const &  p)

◆ applyRendererSettings()

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

apply the given (3D) renderer settings

Implements iAMdiChild.

◆ applySlicerSettings()

void MdiChild::applySlicerSettings ( iASlicerSettings const &  ss)

◆ applyViewerPreferences()

void MdiChild::applyViewerPreferences ( )

◆ applyVolumeSettings()

void MdiChild::applyVolumeSettings ( )

◆ 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

◆ 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.

◆ chooseDataSet()

std::shared_ptr< iADataSet > MdiChild::chooseDataSet ( QString const &  title = "Choose dataset")
overridevirtual

If more than one dataset loaded, ask user to choose one of them (used for saving)

Implements iAMdiChild.

◆ clearDataSets()

void MdiChild::clearDataSets ( )
overridevirtual

clear (remove) all datasets

Implements iAMdiChild.

◆ createChannel()

uint MdiChild::createChannel ( )
overridevirtual

Multi-Channel rendering TODO NEWIO: check if we still need multi-channel feature or if it can be replaced with dataSets! 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.

◆ dataInfoDockWidget()

QDockWidget * MdiChild::dataInfoDockWidget ( )
overridevirtual

Access to dataset information dock widget.

Implements iAMdiChild.

◆ dataSet()

std::shared_ptr< iADataSet > MdiChild::dataSet ( size_t  dataSetIdx) const
overridevirtual

Retrieve a dataset by its index.

Implements iAMdiChild.

◆ dataSetIndex()

size_t MdiChild::dataSetIndex ( iADataSet const *  dataSet) const
overridevirtual

Retrieve the index of a dataset.

Implements iAMdiChild.

◆ dataSetListWidget()

iADataSetListWidget * MdiChild::dataSetListWidget ( )
overridevirtual

Retrieve dataset list.

Implements iAMdiChild.

◆ dataSetMap()

std::map< size_t, std::shared_ptr< iADataSet > > const & MdiChild::dataSetMap ( ) const
overridevirtual

Retrieve a list of the indices of all datasets loaded in this window.

Implements iAMdiChild.

◆ dataSetViewer()

iADataSetViewer * MdiChild::dataSetViewer ( size_t  idx) const
overridevirtual

Retrieve the viewer for the dataset with given index.

Returns
viewer for the given dataset index, nullptr if there is no dataset with given index or if there is no viewer available

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.

◆ enableRendererInteraction

void MdiChild::enableRendererInteraction ( bool  enable)
slot

set renderer interaction on / off

◆ enableSlicerInteraction

void MdiChild::enableSlicerInteraction ( bool  enable)
slot

set slicer interaction on / off

◆ fileInfo()

QFileInfo const & MdiChild::fileInfo ( ) const
overridevirtual

Access to file info of "current" file.

Deprecated:
. Use access via datasets instead

Implements iAMdiChild.

◆ filePath()

QString MdiChild::filePath ( ) const
overridevirtual

Implements iAMdiChild.

◆ firstImageData()

vtkSmartPointer< vtkImageData > MdiChild::firstImageData ( ) const
overridevirtual

Retrieve the first image dataset (if any loaded).

Will produce an error log entry if no image data is found so use with care

Implements iAMdiChild.

◆ firstImageDataSetIdx()

size_t MdiChild::firstImageDataSetIdx ( ) const
overridevirtual

Retrieve the index of the first image data set (if any loaded), or NoDataSet if none loaded.

Implements iAMdiChild.

◆ hasUnsavedData()

bool MdiChild::hasUnsavedData ( ) const

◆ initChannelRenderer()

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

Initialize the renderers for a channel.

Implements iAMdiChild.

◆ initializeViews()

void MdiChild::initializeViews ( )

performs initialization that needs to be done after the widget is being displayed

◆ 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.

◆ isMagicLens2DEnabled()

bool MdiChild::isMagicLens2DEnabled ( ) const
overridevirtual

whether the 2D magic lens in slicer is currently enabled

Implements iAMdiChild.

◆ isMagicLens3DEnabled()

bool MdiChild::isMagicLens3DEnabled ( ) const

◆ isRendererInteractionEnabled()

bool MdiChild::isRendererInteractionEnabled ( ) const

return true if interaction is enabled in renderer, false otherwise

◆ isSliceProfileEnabled()

bool MdiChild::isSliceProfileEnabled ( ) const

◆ isSlicerInteractionEnabled()

bool MdiChild::isSlicerInteractionEnabled ( ) const

return true if interaction is enabled in all slicers, false otherwise (i.e. if disabled in at least one)

◆ 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.

◆ 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.

◆ loadSettings()

void MdiChild::loadSettings ( QSettings const &  settings)
overridevirtual

load state (saved via saveState)

Implements iAMdiChild.

◆ magicLens3DRenderer()

vtkRenderer * MdiChild::magicLens3DRenderer ( ) const
overridevirtual

Reinitialize magic lens channel?

Deprecated:
, use channel mechanisms / setMagicLensInput instead!

Implements iAMdiChild.

◆ magicLensFrameWidth()

int MdiChild::magicLensFrameWidth ( ) const

◆ magicLensSize()

int MdiChild::magicLensSize ( ) const

◆ maximizeRenderer

void MdiChild::maximizeRenderer ( )
slot

maximize the renderer (so that it takes all of the child's space, all other dock widgets are hidden)

◆ maximizeSlicer()

void MdiChild::maximizeSlicer ( int  mode)

maximize slicer dockwidget with the given mode

◆ multiview()

void MdiChild::multiview ( )
overridevirtual

Apply the "multiview" layout (i.e. where not only one dock widget but multiple are shown)

Implements iAMdiChild.

◆ preferences()

iAPreferences const & MdiChild::preferences ( ) const
overridevirtual

Implements iAMdiChild.

◆ profileHandlesEnabled()

bool MdiChild::profileHandlesEnabled ( ) const

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

◆ removeChannel()

void MdiChild::removeChannel ( uint  id)
overridevirtual

Remove channel in all slicers.

Implements iAMdiChild.

◆ removeDataSet()

void MdiChild::removeDataSet ( size_t  dataSetIdx)
overridevirtual

remove dataset with given ID

Implements iAMdiChild.

◆ removeTool()

void MdiChild::removeTool ( QString const &  key)
overridevirtual

Remove tool with the given key from this window.

Parameters
keythe tool's unique identifying key (the one that was used in addTool for adding the same tool)

Implements iAMdiChild.

◆ 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.

◆ rendererWidget()

QWidget * MdiChild::rendererWidget ( )
overridevirtual

Access to 3D renderer widget.

Implements iAMdiChild.

◆ renderSettings()

iARenderSettings const & MdiChild::renderSettings ( ) const
overridevirtual

Implements iAMdiChild.

◆ resetLayout()

void MdiChild::resetLayout ( )

reset the layout to the way it was directly after setting up this child

◆ resultInNewWindow()

bool MdiChild::resultInNewWindow ( ) const

Whether results should be opened in a new window; if false, they replace the content of the current window instead.

◆ save()

bool MdiChild::save ( )

◆ saveSettings()

void MdiChild::saveSettings ( QSettings &  settings)
overridevirtual

save state, for example camera position

Implements iAMdiChild.

◆ saveVolumeStack()

void MdiChild::saveVolumeStack ( )

◆ set3DControlVisibility()

void MdiChild::set3DControlVisibility ( bool  visible)
overridevirtual

Implements iAMdiChild.

◆ setCamPosition

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.

◆ setChannelRenderingEnabled()

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

Enable/Disable channel rendering for a given channel ID.

Implements iAMdiChild.

◆ setDataSetMovable()

void MdiChild::setDataSetMovable ( size_t  dataSetIdx)
overridevirtual

a crutch for letting interactor know which dataset is to be moved and synced across slicers

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.

◆ setPredefCamPos

void MdiChild::setPredefCamPos ( int  pos)
slot

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

Parameters
posset one of the predefined camera positions

◆ setProfilePoints()

void MdiChild::setProfilePoints ( double const *  start,
double const *  end 
)
overridevirtual

called to set profile point positions in renderer and slicer

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.

◆ setWindowTitleAndFile()

void MdiChild::setWindowTitleAndFile ( const QString &  f)
overridevirtual

set window title, and if a file name is given, set it as window file and add it to recent files

Implements iAMdiChild.

◆ 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 transform used in slicer. should be removed from here; no replacement in place yet

Implements iAMdiChild.

◆ toggleMagicLens2D()

void MdiChild::toggleMagicLens2D ( bool  isEnabled)

2D Magic Lens

◆ toggleMagicLens3D()

void MdiChild::toggleMagicLens3D ( bool  isEnabled)

3D Magic Lens

◆ toggleProfileHandles

void MdiChild::toggleProfileHandles ( bool  isChecked)
slot

called when the user wants to display the profile handles inside the views showing the dataset (3D renderer and slicers)

◆ toggleSliceProfile()

void MdiChild::toggleSliceProfile ( bool  isEnabled)

◆ toggleSnakeSlicer()

void MdiChild::toggleSnakeSlicer ( bool  isEnabled)

◆ tools()

QMap< QString, std::shared_ptr< iATool > > const & MdiChild::tools ( )
overridevirtual

Retrieve all currently attached tools and their keys.

Implements iAMdiChild.

◆ 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.

◆ updateRenderer

void MdiChild::updateRenderer ( )
overrideslot

update 3D renderer

◆ updateROI()

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

Implements iAMdiChild.

◆ updateSlicer

void MdiChild::updateSlicer ( int  index)
slot

update a specific slicer (specified through slicer mode,

See also
iASlicerMode)

◆ updateSlicers

void MdiChild::updateSlicers ( )
overrideslot

update all 3 axis-aligned slicer

◆ updateViews

void MdiChild::updateViews ( )
overrideslot

update all dataset views (3D renderer + all 3 axis-aligned slicers)

◆ volumeSettings()

iAVolumeSettings const & MdiChild::volumeSettings ( ) const
overridevirtual

Implements iAMdiChild.


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