|
open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
#include <iAMdiChild.h>
Public Types | |
| enum | iAInteractionMode { imCamera , imRegistration } |
Public Slots | |
| virtual void | updateRenderer ()=0 |
| Update 3D renderer. | |
| virtual void | updateSlicers ()=0 |
| Update all slice views. | |
| virtual void | updateViews ()=0 |
| Updates all views (slicers, renderers) | |
Signals | |
| 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 | |
Public Member Functions | |
| 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< iADataSet > | chooseDataSet (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< iADataSet > | dataSet (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 iADataSetListWidget * | dataSetListWidget ()=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 iADataSetViewer * | dataSetViewer (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 iARenderer * | renderer ()=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 iASlicer * | slicer (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 |
| virtual iAChannelData * | channelData (uint id)=0 |
| virtual iAChannelData const * | channelData (uint id) const =0 |
Static Public Attributes | |
| static const size_t | NoDataSet = std::numeric_limits<size_t>::max() |
| Constant indicating an invalid dataset index. | |
|
pure virtual |
add a dataset
Implemented in MdiChild.
|
pure virtual |
add a tool to this child (a collection of UI elements with their own behavior and state)
Implemented in MdiChild.
|
pure virtual |
apply the given (3D) renderer settings
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
pure virtual |
Retrieve data for a given channel ID
Implemented in MdiChild.
|
pure virtual |
If more than one dataset loaded, ask user to choose one of them (used for saving)
Implemented in MdiChild.
|
pure virtual |
clear (remove) all datasets
Implemented in MdiChild.
|
signal |
|
pure virtual |
Create a new channel, return its ID.
Implemented in MdiChild.
|
pure virtual |
Name of the currently open file (project file / first modality file / ...) If possible, use something more specific (e.g.
file name from specific modality)
Implemented in MdiChild.
|
pure virtual |
Access to dataset information dock widget.
Implemented in MdiChild.
|
pure virtual |
Retrieve a dataset by its index.
Implemented in MdiChild.
|
signal |
emitted when properties of a dataset have been changed
|
pure virtual |
Retrieve the index of a dataset.
Implemented in MdiChild.
|
pure virtual |
Retrieve dataset list.
Implemented in MdiChild.
|
pure virtual |
Retrieve a list of the indices of all datasets loaded in this window.
Implemented in MdiChild.
|
signal |
emitted when all data for displaying a dataset has been prepared
|
signal |
emitted when a dataset has been removed
|
signal |
emitted when the dataset has been added to all relevant views
|
signal |
emitted when a dataset has been selected in the data list
|
pure virtual |
Retrieve the viewer for the dataset with given index.
Implemented in MdiChild.
|
pure virtual |
Access to file info of "current" file.
Implemented in MdiChild.
|
signal |
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!
|
pure virtual |
Implemented in MdiChild.
|
pure virtual |
Retrieve the first image dataset (if any loaded).
Will produce an error log entry if no image data is found so use with care
Implemented in MdiChild.
|
pure virtual |
Retrieve the index of the first image data set (if any loaded), or NoDataSet if none loaded.
Implemented in MdiChild.
|
pure virtual |
Initialize the renderers for a channel.
Implemented in MdiChild.
|
pure virtual |
Retrieve the current interaction mode (whether camera is changed, or manual registration is active, see iAInteractionMode)
Implemented in MdiChild.
|
pure virtual |
whether the 2D magic lens in slicer is currently enabled
Implemented in MdiChild.
|
pure virtual |
whether the child currently has volume data loaded
Implemented in MdiChild.
|
pure virtual |
Returns the name of the layout currently applied to this child window.
Implemented in MdiChild.
|
pure virtual |
Whether this child has the linked views feature enabled.
Implemented in MdiChild.
|
pure virtual |
Loads the layout with the given name from the settings store, and tries to restore the according dockwidgets configuration.
Implemented in MdiChild.
|
pure virtual |
load state (saved via saveState)
Implemented in MdiChild.
|
pure virtual |
Reinitialize magic lens channel?
Implemented in MdiChild.
|
signal |
emitted whenever the magic lens has been toggled on or off
|
pure virtual |
Apply the "multiview" layout (i.e. where not only one dock widget but multiple are shown)
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
signal |
emitted when the preferences have changed
|
signal |
emitted whenever one of the profile points changes
|
pure virtual |
Remove channel in all slicers.
Implemented in MdiChild.
|
pure virtual |
remove dataset with given ID
Implemented in MdiChild.
|
pure virtual |
removes the given tool from this child
Implemented in MdiChild.
|
pure virtual |
Access to 3D renderer dock widget.
Implemented in MdiChild.
|
pure virtual |
Access to the 3D renderer widget.
Implemented in MdiChild.
|
signal |
|
pure virtual |
Access to widget containing the 3D renderer.
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
signal |
emitted when the renderer settings have changed
|
pure virtual |
save state, for example camera position
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
pure virtual |
Enable/Disable channel rendering for a given channel ID.
Implemented in MdiChild.
|
pure virtual |
a crutch for letting interactor know which dataset is to be moved and synced across slicers
Implemented in MdiChild.
|
pure virtual |
Enable/Disable the 2D magic lens in slicer.
Implemented in MdiChild.
|
pure virtual |
Set the ID of the channel which should be the input to the 2D magic lens in slicer.
Implemented in MdiChild.
|
pure virtual |
called to set profile point positions in renderer and slicer
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
pure virtual |
set window title, and if a file name is given, set it as window file and add it to recent files
Implemented in MdiChild.
|
pure virtual |
Access slicer for given mode (use iASlicerMode enum for mode values)
Implemented in MdiChild.
|
pure virtual |
|
pure virtual |
Access to slicer dock widget for the given mode.
| mode | slicer to access - use constants from iASlicerMode enum |
Implemented in MdiChild.
|
pure virtual |
Access to the scroll bar next to a slicer.
Implemented in MdiChild.
|
pure virtual |
Implemented in MdiChild.
|
signal |
emitted when the slicer settings have changed
|
pure virtual |
Implemented in MdiChild.
|
pure virtual |
retrieve all tools attached to this child
Implemented in MdiChild.
|
pure virtual |
Update the data of the given channel ID.
Implemented in MdiChild.
|
pure virtual |
Update opacity of the given channel ID.
Implemented in MdiChild.
|
pure virtual |
Apply the layout currently selected in the layout combobox in the main window.
Implemented in MdiChild.
|
pure virtualslot |
Update 3D renderer.
|
pure virtual |
Implemented in MdiChild.
|
pure virtualslot |
Update all slice views.
|
pure virtualslot |
Updates all views (slicers, renderers)
|
signal |
emitted when the slicer/renderer views have been updated, and when their camera has been reset
|
pure virtual |
Implemented in MdiChild.
|
static |
Constant indicating an invalid dataset index.