![]() |
open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Displays several helper widgets for a 3D vtk rendering window. More...
#include <iARendererImpl.h>
Public Slots | |
| void | mouseLeftButtonReleasedSlot () |
| void | mouseRightButtonReleasedSlot () |
| void | setProfileHandlesOn (bool isOn) |
| void | setProfilePoint (int pointIndex, double *coords) |
Signals | |
| void | cellsSelected (vtkPoints *selCellPoints) |
| void | noCellsSelected () |
| void | onSetCamera () |
| void | onSetupRenderer () |
| void | reInitialized () |
Signals inherited from iARenderer | |
| void | cellsSelected (vtkPoints *selCellPoints) |
| void | noCellsSelected () |
| void | onSetCamera () |
| void | onSetupRenderer () |
| void | reInitialized () |
Public Member Functions | |
| iARendererImpl (QObject *parent=nullptr) | |
| Creates a renderer widget. In order to show something, you need to call initialize too! More... | |
| virtual | ~iARendererImpl () |
| void | addRenderer (vtkRenderer *renderer) override |
| Adds a custom renderer to the render window. More... | |
| void | applySettings (iARenderSettings const &settings, bool slicePlaneVisibility[3]) override |
| apply the given settings to the renderer More... | |
| vtkCamera * | camera () override |
| Get/Set the VTK camera object (shared by main and label renderer) More... | |
| void | camPosition (double *camOptions) |
| Returns viewup, position and focal point information of a renderer in a double array. More... | |
| vtkTransform * | coordinateSystemTransform () override |
| void | disableInteractor () |
| void | emitNoSelectedCells () |
| void | emitSelectedCells (vtkUnstructuredGrid *selectedCells) |
| void | enableInteractor () |
| iARenderObserver * | getRenderObserver () override |
| Access to the renderer observer. More... | |
| void | initialize (vtkImageData *ds, vtkPolyData *pd) |
| vtkRenderWindowInteractor * | interactor () override |
| Access to the render window interactor. More... | |
| vtkOpenGLRenderer * | labelRenderer () override |
| Access to "label" VTK renderer, used for text (which should be shown in front of volumes). More... | |
| vtkPlane * | plane1 () override |
| Access to the slice planes. More... | |
| vtkPlane * | plane2 () override |
| vtkPlane * | plane3 () override |
| void | reInitialize (vtkImageData *ds, vtkPolyData *pd) |
| vtkOpenGLRenderer * | renderer () override |
| Access to "main" VTK renderer, used for volumes etc. More... | |
| vtkRenderWindow * | renderWindow () override |
| Access to the render window. More... | |
| void | saveMovie (const QString &fileName, int mode, int qual=2) |
| move out of here More... | |
| void | setAreaPicker () override |
| void | setAxesTransform (vtkTransform *transform) override |
| Access to the transform of the coordinate system axis actor. More... | |
| void | setBackgroundColors (iARenderSettings const &settings) |
| void | setCamera (vtkCamera *c) override |
| void | setCamPosition (double *camOptions, bool rsParallelProjection) |
| Sets viewup, position and focal point of a renderer from the information in a double array. More... | |
| void | setCamPosition (int pos) |
| Sets one of the pre-defined camera positions. More... | |
| void | setCubeCenter (int x, int y, int z) |
| void | setCubeVisible (bool visible) |
| void | setDefaultInteractor () override |
| void | setPlaneNormals (vtkTransform *tr) |
| void | setPointPicker () |
| void | setPolyData (vtkPolyData *pd) override |
| void | setSlicePlaneOpacity (float opc) |
| sets opacity of the slicing planes More... | |
| void | setSlicePlanePos (int planeID, double originX, double originY, double originZ) |
| void | setSlicingBounds (const int roi[6], const double *spacing) |
| void | setStatExt (int s) |
| set size of statistical extent More... | |
| void | showHelpers (bool show) |
| void | showRPosition (bool show) |
| void | showSlicePlane (int axis, bool show) |
| show or hide the slice plane for the given axis More... | |
| 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). More... | |
| void | updateSlicePlanes (double const *newSpacing) |
| Updates the position and size of the three slice planes according to the given spacing (and the dimensions of the internally stored image data) More... | |
| vtkPolyData * | polyData () override |
| vtkActor * | polyActor () override |
| vtkPolyDataMapper * | polyMapper () const override |
| vtkActor * | selectedActor () override |
| check for better way to get access to these in PickCallbackFunction More... | |
| vtkUnstructuredGrid * | finalSelection () |
| vtkDataSetMapper * | selectedMapper () |
Public Member Functions inherited from iARenderer | |
| iARenderer (QObject *parent) | |
| virtual | ~iARenderer () |
Displays several helper widgets for a 3D vtk rendering window.
| iARendererImpl::iARendererImpl | ( | QObject * | parent = nullptr | ) |
Creates a renderer widget. In order to show something, you need to call initialize too!
|
virtual |
|
overridevirtual |
Adds a custom renderer to the render window.
Implements iARenderer.
|
overridevirtual |
apply the given settings to the renderer
| settings | data holder for all settings. |
| slicePlaneVisibility | initial visibility of the single slice planes (can be modified independently via showSlicePlanes as well). |
Implements iARenderer.
|
overridevirtual |
Get/Set the VTK camera object (shared by main and label renderer)
Implements iARenderer.
| void iARendererImpl::camPosition | ( | double * | camOptions | ) |
Returns viewup, position and focal point information of a renderer in a double array.
| camOptions | double array where all informations about the camera will be stored |
|
signal |
|
overridevirtual |
Implements iARenderer.
| void iARendererImpl::disableInteractor | ( | ) |
| void iARendererImpl::emitNoSelectedCells | ( | ) |
| void iARendererImpl::emitSelectedCells | ( | vtkUnstructuredGrid * | selectedCells | ) |
| void iARendererImpl::enableInteractor | ( | ) |
| vtkUnstructuredGrid * iARendererImpl::finalSelection | ( | ) |
|
overridevirtual |
Access to the renderer observer.
Implements iARenderer.
| void iARendererImpl::initialize | ( | vtkImageData * | ds, |
| vtkPolyData * | pd | ||
| ) |
|
overridevirtual |
Access to the render window interactor.
Implements iARenderer.
|
overridevirtual |
Access to "label" VTK renderer, used for text (which should be shown in front of volumes).
Implements iARenderer.
|
slot |
|
slot |
|
signal |
|
signal |
|
signal |
|
overridevirtual |
Access to the slice planes.
Implements iARenderer.
|
overridevirtual |
Implements iARenderer.
|
overridevirtual |
Implements iARenderer.
|
overridevirtual |
Implements iARenderer.
|
overridevirtual |
access to polydata rendering TODO: remove from here! -> separate class similar to iAVolumeRenderer?
Implements iARenderer.
|
overridevirtual |
Implements iARenderer.
| void iARendererImpl::reInitialize | ( | vtkImageData * | ds, |
| vtkPolyData * | pd | ||
| ) |
|
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 = 2 |
||
| ) |
move out of here
|
overridevirtual |
check for better way to get access to these in PickCallbackFunction
Implements iARenderer.
| vtkDataSetMapper * iARendererImpl::selectedMapper | ( | ) |
|
overridevirtual |
Implements iARenderer.
|
overridevirtual |
Access to the transform of the coordinate system axis actor.
Implements iARenderer.
| void iARendererImpl::setBackgroundColors | ( | iARenderSettings const & | settings | ) |
|
overridevirtual |
Implements iARenderer.
| void iARendererImpl::setCamPosition | ( | double * | camOptions, |
| bool | rsParallelProjection | ||
| ) |
Sets viewup, position and focal point of a renderer from the information in a double array.
| camOptions | All informations of the camera stored in a double array |
| rsParallelProjection | boolean variable to determine if parallel projection option is on. |
| void iARendererImpl::setCamPosition | ( | int | pos | ) |
Sets one of the pre-defined camera positions.
| pos | descriptor of the position, |
| void iARendererImpl::setCubeCenter | ( | int | x, |
| int | y, | ||
| int | z | ||
| ) |
| void iARendererImpl::setCubeVisible | ( | bool | visible | ) |
|
overridevirtual |
Implements iARenderer.
| void iARendererImpl::setPlaneNormals | ( | vtkTransform * | tr | ) |
| void iARendererImpl::setPointPicker | ( | ) |
|
overridevirtual |
access to polydata rendering TODO: remove from here! -> separate class similar to iAVolumeRenderer?
Implements iARenderer.
|
slot |
|
slot |
| void iARendererImpl::setSlicePlaneOpacity | ( | float | opc | ) |
sets opacity of the slicing planes
| void iARendererImpl::setSlicePlanePos | ( | int | planeID, |
| double | originX, | ||
| double | originY, | ||
| double | originZ | ||
| ) |
| void iARendererImpl::setSlicingBounds | ( | const int | roi[6], |
| const double * | spacing | ||
| ) |
| void iARendererImpl::setStatExt | ( | int | s | ) |
set size of statistical extent
| void iARendererImpl::showHelpers | ( | bool | show | ) |
| void iARendererImpl::showRPosition | ( | bool | show | ) |
| void iARendererImpl::showSlicePlane | ( | int | axis, |
| bool | show | ||
| ) |
show or hide the slice plane for the given axis
| axis | index of the axis (x..0, y..1, z..2) |
| show | whether to show (true) or hide (false) the given axis slice plane |
| 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.
| void iARendererImpl::updateSlicePlanes | ( | double const * | newSpacing | ) |
Updates the position and size of the three slice planes according to the given spacing (and the dimensions of the internally stored image data)
| newSpacing | the spacing of the dataset. |