|
open_iA 2025.6
|
vtk-based slicer widget. "Channels" (i.e. image layers) are inserted via the addChannel method More...
#include <iASlicer.h>
Public Slots | |
| virtual void | rotateSlice (double angle)=0 |
| virtual void | saveAsImage ()=0 |
| Save an image of the image viewer native resolution or the current view. | |
| virtual void | saveMovie ()=0 |
| Save a movie of a full slice-through of the specimen from top to bottom. | |
| virtual void | setSliceNumber (int sliceNumber)=0 |
| Set the current slice of the dataset currently sliced. | |
| virtual void | setSlicePosition (double slicePos)=0 |
| Set the position to slice. | |
| virtual void | update ()=0 |
Signals | |
| void | altMouseWheel (int angle) |
| void | clicked () |
| void | ctrlMouseWheel (int angle) |
| void | dblClicked () |
| void | leftClicked (double x, double y, double z) |
| Triggered on mouse left button clicked. | |
| void | leftDragged (double x, double y, double z) |
| Triggered on mouse move with left button clicked. | |
| void | leftReleased (double x, double y, double z) |
| Triggered on mouse button released. | |
| void | magicLensToggled (bool enabled) |
| void | mouseMoved (double x, double y, double z, int mode) |
| Triggered on mouse move, sends x,y,z (world) coordinates and mode of slicer. | |
| void | rightClicked (double x, double y, double z) |
| Triggered on mouse right button clicked. | |
| void | shiftMouseWheel (int angle) |
| void | sliceNumberChanged (int mode, int sliceNumber) |
| triggered when slice number changed. | |
| void | updateSignal () |
| void | userInteraction () |
Public Member Functions | |
| iASlicer (QWidget *parent) | |
| virtual | ~iASlicer () |
| virtual void | addImageActor (vtkSmartPointer< vtkImageActor > imgActor)=0 |
| virtual void | applySettings (QVariantMap const &settings)=0 |
| Apply the given settings to the slicer. | |
| virtual vtkCamera * | camera ()=0 |
| Access to the slicer's main renderer's camera. | |
| virtual void | enableInteractor (bool enabled)=0 |
| virtual void | execute (vtkObject *caller, unsigned long eventId, void *callData)=0 |
| virtual int | globalAxis (int slicerAxis)=0 |
| retrieve the global axis that is represented by the given local axis (e.g. for XY:, 0 -> X, 1 -> Y, 2 -> Z; for XZ: 0 -> X, 1 -> Z, ...) | |
| virtual vtkRenderWindowInteractor * | interactor ()=0 |
| Access to the interactor of this slicer's render window. | |
| virtual bool | isInteractorEnabled () const =0 |
| virtual iASlicerMode | mode () const =0 |
| Get the slice mode (which axis-aligned slice-plane is used for slicing). | |
| virtual void | removeImageActor (vtkSmartPointer< vtkImageActor > imgActor)=0 |
| virtual vtkRenderer * | renderer ()=0 |
| Access to the slicer's main renderer. | |
| virtual void | resetCamera ()=0 |
| Resets the slicer's main renderer's camera such that all channels in it are visible. | |
| virtual void | setBackground (QColor color)=0 |
| Sets the background color of the slicer. | |
| virtual void | setCamera (vtkCamera *camera, bool camOwner=true)=0 |
| Set the camera for the slicer's main renderer. | |
| virtual void | setDefaultInteractor ()=0 |
| virtual void | setLinkedMdiChild (iAMdiChild *mdiChild)=0 |
| in case the "linked mdi" feature is used, use this to set the mdi child this slicer is linked to. | |
| virtual void | setMode (const iASlicerMode mode)=0 |
| Sets the slice mode (which axis-aligned slice-plane to use for slicing). | |
| virtual void | setResliceAxesOrigin (double x, double y, double z)=0 |
| virtual void | setScalarBarTF (vtkScalarsToColors *ctf)=0 |
| virtual void | setShowTooltip (bool isVisible)=0 |
| Enable/disable the tooltip text. | |
| virtual QVariantMap const & | settings ()=0 |
| retrieve current settings of this slicer | |
| virtual int | sliceNumber () const =0 |
| Get current slice number. | |
| virtual double | slicePosition () const =0 |
| Get current slice position. | |
| virtual std::pair< double, double > | sliceRange () const =0 |
| Retrieve minimum and maximum position of slice range. | |
| virtual double | sliceThickness () const =0 |
| Get thickness of a single slice (typically, the voxel spacing of the dataset being sliced in slice axis direction) | |
| virtual void | updateChannelMappers ()=0 |
| virtual void | setMagicLensEnabled (bool isEnabled)=0 |
| Magic Lens methods. | |
| virtual void | setMagicLensCount (int count)=0 |
| virtual void | setMagicLensInput (uint id)=0 |
| virtual uint | magicLensInput () const =0 |
| virtual void | setMagicLensOpacity (double opacity)=0 |
| virtual double | magicLensOpacity () const =0 |
| virtual void | updateMagicLensColors ()=0 |
| virtual void | updateMagicLens ()=0 |
| virtual void | addChannel (uint id, iAChannelData const &chData, bool enable)=0 |
| management of channels - each channel represents one "layer" | |
| virtual void | removeChannel (uint id)=0 |
| virtual void | updateChannel (uint id, iAChannelData const &chData)=0 |
| virtual iAChannelSlicerData * | channel (uint id)=0 |
| virtual void | setChannelOpacity (uint id, double opacity)=0 |
| virtual void | enableChannel (uint id, bool enabled)=0 |
| virtual bool | hasChannel (uint id) const =0 |
| virtual void | setROIVisible (bool isVisible)=0 |
| ROI rectangle. | |
| virtual void | updateROI (int const roi[6])=0 |
| virtual void | setContours (int numberOfContours, double contourMin, double contourMax)=0 |
| set contour line parameters. | |
| virtual void | setContours (int numberOfContours, double const *contourValues)=0 |
Public Member Functions inherited from iAQVTKWidget | |
| iAQVTKWidget (QWidget *parent=nullptr) | |
| Creates the widget; makes sure its inner vtk render window is set, and sets an appropriate surface format. | |
| bool | event (QEvent *evt) override |
| void | updateAll () |
vtk-based slicer widget. "Channels" (i.e. image layers) are inserted via the addChannel method
|
inline |
|
inlinevirtual |
|
pure virtual |
management of channels - each channel represents one "layer"
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
signal |
|
pure virtual |
Apply the given settings to the slicer.
Implemented in iASlicerImpl.
|
pure virtual |
Access to the slicer's main renderer's camera.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
signal |
|
signal |
|
signal |
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
retrieve the global axis that is represented by the given local axis (e.g. for XY:, 0 -> X, 1 -> Y, 2 -> Z; for XZ: 0 -> X, 1 -> Z, ...)
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Access to the interactor of this slicer's render window.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
signal |
Triggered on mouse left button clicked.
|
signal |
Triggered on mouse move with left button clicked.
|
signal |
Triggered on mouse button released.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
signal |
|
pure virtual |
Get the slice mode (which axis-aligned slice-plane is used for slicing).
Implemented in iASlicerImpl.
|
signal |
Triggered on mouse move, sends x,y,z (world) coordinates and mode of slicer.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Access to the slicer's main renderer.
Implemented in iASlicerImpl.
|
pure virtual |
Resets the slicer's main renderer's camera such that all channels in it are visible.
Implemented in iASlicerImpl.
|
signal |
Triggered on mouse right button clicked.
|
pure virtualslot |
|
pure virtualslot |
Save an image of the image viewer native resolution or the current view.
|
pure virtualslot |
Save a movie of a full slice-through of the specimen from top to bottom.
|
pure virtual |
Sets the background color of the slicer.
By default, background color is auto-determined via the slicer mode. If set manually via this method, it will keep the given color indefinitely; can be reset by setting "invalid" color (i.e., QColor())
| color | the color to use as background |
Implemented in iASlicerImpl.
|
pure virtual |
Set the camera for the slicer's main renderer.
Use this if you want share the camera between multiple views (i.e. synchronize their viewing parameters)
| camera | the new camera to assing |
| camOwner | whether the slicer should assume ownership of the camera. If true, Delete() will be called on it in the destructor |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
set contour line parameters.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
in case the "linked mdi" feature is used, use this to set the mdi child this slicer is linked to.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Magic Lens methods.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Sets the slice mode (which axis-aligned slice-plane to use for slicing).
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
ROI rectangle.
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Enable/disable the tooltip text.
Implemented in iASlicerImpl.
|
pure virtualslot |
Set the current slice of the dataset currently sliced.
| sliceNumber | voxel coordinates along the slices axes determined by the mode which should be set |
|
pure virtualslot |
Set the position to slice.
| slicePos | the position along the axis determined by the mode where the slicing should happen |
|
pure virtual |
retrieve current settings of this slicer
Implemented in iASlicerImpl.
|
signal |
|
pure virtual |
Get current slice number.
Implemented in iASlicerImpl.
|
signal |
triggered when slice number changed.
| mode | slicer mode (=plane) |
| sliceNumber | number of the slice that was switched to |
|
pure virtual |
Get current slice position.
Implemented in iASlicerImpl.
|
pure virtual |
Retrieve minimum and maximum position of slice range.
Implemented in iASlicerImpl.
|
pure virtual |
Get thickness of a single slice (typically, the voxel spacing of the dataset being sliced in slice axis direction)
Implemented in iASlicerImpl.
|
pure virtualslot |
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
pure virtual |
Implemented in iASlicerImpl.
|
signal |
|
signal |