|
open_iA 2024.9
|
Concrete implementation of iARenderer, displays several helper widgets for a 3D rendering window. More...
#include <iARendererImpl.h>
Public Slots | |
| void | mouseLeftButtonReleasedSlot () |
| void | mouseRightButtonReleasedSlot () |
| void | setProfileHandlesOn (bool isOn) |
| void | setProfilePoint (int pointIndex, double const *coords) |
Signals | |
| void | bgColorChanged (QColor bgTop, QColor bgBottom) |
| void | cellsSelected (vtkPoints *selCellPoints) |
| void | interactionModeChanged (bool camera) |
| called when user presses 'a'/'A' or 'c'/'C' key to change between modifying actors and camera | |
| void | noCellsSelected () |
| void | onSetCamera () |
| void | onSetupRenderer () |
| void | reInitialized () |
| void | settingsChanged () |
Signals inherited from iARenderer | |
| void | cellsSelected (vtkPoints *selCellPoints) |
| void | ctrlShiftMouseWheel (int dir) |
| void | noCellsSelected () |
| void | onSetCamera () |
Public Member Functions | |
| iARendererImpl (QObject *parent, vtkGenericOpenGLRenderWindow *renderWindow) | |
| virtual | ~iARendererImpl () |
| void | addRenderer (vtkRenderer *renderer) override |
| Adds a custom renderer to the render window. | |
| void | applySettings (QVariantMap const ¶mValues) override |
| Apply the given settings to the renderer. | |
| vtkCamera * | camera () override |
| Get/Set the VTK camera object (shared by main and label renderer) | |
| void | editSettings () |
| void | enableInteractor (bool enable) |
| iARenderObserver * | getRenderObserver () override |
| Access to the renderer observer. | |
| void | initProfilePoints (double const *start, double const *end) |
| initialize profile points (set positions, without triggering an update | |
| vtkRenderWindowInteractor * | interactor () override |
| Access to the render window interactor. | |
| bool | isInteractorEnabled () const |
| bool | isShowSlicePlanes () const |
| Whether showing slice planes is generally enabled or disabled. | |
| vtkRenderer * | labelRenderer () override |
| Access to "label" VTK renderer, used for text (which should be shown in front of volumes). | |
| vtkRenderer * | renderer () override |
| Access to "main" VTK renderer, used for volumes etc. | |
| vtkRenderWindow * | renderWindow () override |
| Access to the render window. | |
| void | saveMovie (const QString &fileName, int mode, int qual, int fps, int numSteps) |
| move out of here | |
| iAAABB | sceneBounds () const override |
| see iARenderer | |
| void | setCamera (vtkCamera *c) override |
| void | setCamPosition (int pos) |
| Sets one of the pre-defined camera positions. | |
| void | setCuttingActive (bool enabled) override |
| see iARenderer | |
| void | setDefaultInteractor () override |
| Set the default interactor style. | |
| void | setPlaneNormals (vtkTransform *tr) |
| void | setPositionMarkerCenter (double x, double y, double z) |
| Set the position of the position marker to the given world coordinates. | |
| void | setROIVisible (bool visible) |
| Visibility of the ROI indicator. | |
| void | setSceneBounds (iAAABB const &boundingBox) override |
| see iARenderer | |
| void | setSlicePlaneOpacity (float opc) |
| sets opacity of the slicing planes | |
| void | setSlicePlanePos (int planeID, double originX, double originY, double originZ) |
| update the position of a specific slice plane | |
| void | setSlicingBounds (const int roi[6], const double *spacing) |
| QVariantMap const & | settings () const |
| Access to current settings. | |
| void | setUnitSize (std::array< double, 3 > size) |
| Set size of a single standard "unit" across all shown datasets; used for the size of the position marker and the width of the slice planes unit: world coordinates. | |
| void | showAxesCube (bool show) |
| void | showOriginIndicator (bool show) |
| void | showRPosition (bool show) |
| void | showSlicePlane (int axis, bool show) |
| Show or hide the slice plane for the given axis. | |
| std::array< vtkPlane *, 3 > | slicePlanes () const override |
| see iARenderer | |
| void | touchScaleSlot (float relScale) |
| void | touchStart () |
| vtkTextActor * | txtActor () |
| void | update () override |
| Update the view (to be called if something has changed in the underlying data which requires VTK to redraw the scene). | |
| vtkActor * | selectedActor () override |
| check for better way to get access to these in PickCallbackFunction | |
| vtkUnstructuredGrid * | finalSelection () |
| vtkDataSetMapper * | selectedMapper () |
Public Member Functions inherited from iARenderer | |
| iARenderer (QObject *parent) | |
| virtual | ~iARenderer () |
Static Public Member Functions | |
| static iAAttributes & | defaultSettings () |
| proxy access to default settings object | |
Static Public Attributes | |
| static constexpr const char | BackgroundBottom [] = "Background Bottom" |
| static constexpr const char | BackgroundTop [] = "Background Top" |
| static constexpr const char | DepthPeelOcclusionRatio [] = "Depth Peels Occlusion Ratio" |
| static constexpr const char | DepthPeelsMax [] = "Depth Peels Maximum Number" |
| static constexpr const char | MagicLensFrameWidth [] = "Magic Lens Frame Width" |
| static constexpr const char | MagicLensSize [] = "Magic Lens size" |
| static constexpr const char | MultiSamples [] = "MultiSamples" |
| static constexpr const char | ParallelProjection [] = "Parallel Projection" |
| static constexpr const char | ShowAxesCube [] = "Show Axes Cube" |
| static constexpr const char | ShowFPS [] = "Show Frames Per Second" |
| static constexpr const char | ShowOriginIndicator [] = "Show Origin Indicator" |
| static constexpr const char | ShowPosition [] = "Show Position" |
| static constexpr const char | ShowSlicePlanes [] = "Show Slice Planes" |
| static constexpr const char | SlicePlaneOpacity [] = "Slice Plane Opacity" |
| static constexpr const char | SSAOBias [] = "Screen Space Ambient Occlusion Bias" |
| static constexpr const char | SSAOBlur [] = "Screen Space Ambient Occlusion Blur" |
| static constexpr const char | SSAOKernelSize [] = "Screen Space Ambient Occlusion Kernel Size" |
| static constexpr const char | SSAORadius [] = "Screen Space Ambient Occlusion Radius" |
| static constexpr const char | StereoRenderMode [] = "Stereo Render Mode" |
| static constexpr const char | UseDepthPeeling [] = "Use Depth Peeling" |
| static constexpr const char | UseFXAA [] = "Use Fast Approximate Anti-aliasing" |
| static constexpr const char | UseSSAO [] = "Use Screen Space Ambient Occlusion" |
| static constexpr const char | UseStyleBGColor [] = "Use Style Background Color" |
Concrete implementation of iARenderer, displays several helper widgets for a 3D rendering window.
| iARendererImpl::iARendererImpl | ( | QObject * | parent, |
| vtkGenericOpenGLRenderWindow * | renderWindow ) |
|
virtual |
|
overridevirtual |
Adds a custom renderer to the render window.
Implements iARenderer.
|
overridevirtual |
Apply the given settings to the renderer.
| paramValues | values for all settings. |
Implements iARenderer.
|
signal |
|
overridevirtual |
Get/Set the VTK camera object (shared by main and label renderer)
Implements iARenderer.
|
signal |
|
static |
proxy access to default settings object
| void iARendererImpl::editSettings | ( | ) |
| void iARendererImpl::enableInteractor | ( | bool | enable | ) |
| vtkUnstructuredGrid * iARendererImpl::finalSelection | ( | ) |
|
overridevirtual |
Access to the renderer observer.
Implements iARenderer.
| void iARendererImpl::initProfilePoints | ( | double const * | start, |
| double const * | end ) |
initialize profile points (set positions, without triggering an update
|
signal |
called when user presses 'a'/'A' or 'c'/'C' key to change between modifying actors and camera
|
overridevirtual |
Access to the render window interactor.
Implements iARenderer.
| bool iARendererImpl::isInteractorEnabled | ( | ) | const |
| bool iARendererImpl::isShowSlicePlanes | ( | ) | const |
Whether showing slice planes is generally enabled or disabled.
|
overridevirtual |
Access to "label" VTK renderer, used for text (which should be shown in front of volumes).
Implements iARenderer.
|
slot |
|
slot |
|
signal |
|
signal |
|
signal |
|
signal |
|
overridevirtual |
Access to "main" VTK renderer, used for volumes etc.
Implements iARenderer.
|
overridevirtual |
Access to the render window.
Implements iARenderer.
| void iARendererImpl::saveMovie | ( | const QString & | fileName, |
| int | mode, | ||
| int | qual, | ||
| int | fps, | ||
| int | numSteps ) |
move out of here
|
overridevirtual |
see iARenderer
Implements iARenderer.
|
overridevirtual |
check for better way to get access to these in PickCallbackFunction
Implements iARenderer.
| vtkDataSetMapper * iARendererImpl::selectedMapper | ( | ) |
|
overridevirtual |
Implements iARenderer.
| void iARendererImpl::setCamPosition | ( | int | pos | ) |
Sets one of the pre-defined camera positions.
| pos | descriptor of the position, |
|
overridevirtual |
see iARenderer
Implements iARenderer.
|
overridevirtual |
Set the default interactor style.
Implements iARenderer.
| void iARendererImpl::setPlaneNormals | ( | vtkTransform * | tr | ) |
| void iARendererImpl::setPositionMarkerCenter | ( | double | x, |
| double | y, | ||
| double | z ) |
Set the position of the position marker to the given world coordinates.
|
slot |
|
slot |
| void iARendererImpl::setROIVisible | ( | bool | visible | ) |
Visibility of the ROI indicator.
|
overridevirtual |
see iARenderer
Implements iARenderer.
| void iARendererImpl::setSlicePlaneOpacity | ( | float | opc | ) |
sets opacity of the slicing planes
| void iARendererImpl::setSlicePlanePos | ( | int | planeID, |
| double | originX, | ||
| double | originY, | ||
| double | originZ ) |
update the position of a specific slice plane
| void iARendererImpl::setSlicingBounds | ( | const int | roi[6], |
| const double * | spacing ) |
| QVariantMap const & iARendererImpl::settings | ( | ) | const |
Access to current settings.
|
signal |
| void iARendererImpl::setUnitSize | ( | std::array< double, 3 > | size | ) |
Set size of a single standard "unit" across all shown datasets; used for the size of the position marker and the width of the slice planes unit: world coordinates.
| void iARendererImpl::showAxesCube | ( | bool | show | ) |
| void iARendererImpl::showOriginIndicator | ( | bool | show | ) |
| void iARendererImpl::showRPosition | ( | bool | show | ) |
| void iARendererImpl::showSlicePlane | ( | int | axis, |
| bool | show ) |
Show or hide the slice plane for the given axis.
Method for setting visibility of a single slice plane (used to make plane visibility depending on whether the respective slicer view is currently shown); for the slice plane to be visible, also the "Show slice plane" setting has to be enabled.
| axis | index of the axis (x..0, y..1, z..2) |
| show | whether to show (true) or hide (false) the given axis slice plane |
|
overridevirtual |
see iARenderer
Implements iARenderer.
| void iARendererImpl::touchScaleSlot | ( | float | relScale | ) |
| void iARendererImpl::touchStart | ( | ) |
| vtkTextActor * iARendererImpl::txtActor | ( | ) |
|
overridevirtual |
Update the view (to be called if something has changed in the underlying data which requires VTK to redraw the scene).
Implements iARenderer.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |