open_iA 2024.7
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
iARenderer Class Referenceabstract

Class encapsulating a main and a label renderer for displaying 3D objects, and displaying several helper widgets for a 3D vtk rendering window. More...

#include <iARenderer.h>

Inheritance diagram for iARenderer:
[legend]
Collaboration diagram for iARenderer:
[legend]

Signals

void cellsSelected (vtkPoints *selCellPoints)
 
void ctrlShiftMouseWheel (int dir)
 
void noCellsSelected ()
 
void onSetCamera ()
 

Public Member Functions

 iARenderer (QObject *parent)
 
virtual ~iARenderer ()
 
virtual void addRenderer (vtkRenderer *renderer)=0
 Adds a custom renderer to the render window.
 
virtual void applySettings (QVariantMap const &paramValues)=0
 Apply the given settings to the renderer.
 
virtual iARenderObservergetRenderObserver ()=0
 Access to the renderer observer.
 
virtual vtkRenderWindowInteractor * interactor ()=0
 Access to the render window interactor.
 
virtual vtkRenderer * labelRenderer ()=0
 Access to "label" VTK renderer, used for text (which should be shown in front of volumes).
 
virtual vtkRenderer * renderer ()=0
 Access to "main" VTK renderer, used for volumes etc.
 
virtual vtkRenderWindow * renderWindow ()=0
 Access to the render window.
 
virtual iAAABB sceneBounds () const =0
 
virtual vtkActor * selectedActor ()=0
 Access to selected actor (when selection is enabled).
 
virtual void setCuttingActive (bool enabled)=0
 Set whether currently a dataset cutting is active.
 
virtual void setDefaultInteractor ()=0
 Set the default interactor style.
 
virtual void setSceneBounds (iAAABB const &boundingBox)=0
 set the bounds of the scene to the given bounding box; adapts axes markers, plane indicators etc.
 
virtual std::array< vtkPlane *, 3 > slicePlanes () const =0
 Access to the slice planes.
 
virtual void update ()=0
 Update the view (to be called if something has changed in the underlying data which requires VTK to redraw the scene).
 
virtual vtkCamera * camera ()=0
 Get/Set the VTK camera object (shared by main and label renderer)
 
virtual void setCamera (vtkCamera *c)=0
 

Detailed Description

Class encapsulating a main and a label renderer for displaying 3D objects, and displaying several helper widgets for a 3D vtk rendering window.

Constructor & Destructor Documentation

◆ iARenderer()

iARenderer::iARenderer ( QObject * parent)
inline

◆ ~iARenderer()

virtual iARenderer::~iARenderer ( )
inlinevirtual

Member Function Documentation

◆ addRenderer()

virtual void iARenderer::addRenderer ( vtkRenderer * renderer)
pure virtual

Adds a custom renderer to the render window.

Implemented in iARendererImpl.

◆ applySettings()

virtual void iARenderer::applySettings ( QVariantMap const & paramValues)
pure virtual

Apply the given settings to the renderer.

Parameters
paramValuesthe values for the settings.

Implemented in iARendererImpl.

◆ camera()

virtual vtkCamera * iARenderer::camera ( )
pure virtual

Get/Set the VTK camera object (shared by main and label renderer)

Implemented in iARendererImpl.

◆ cellsSelected

void iARenderer::cellsSelected ( vtkPoints * selCellPoints)
signal

◆ ctrlShiftMouseWheel

void iARenderer::ctrlShiftMouseWheel ( int dir)
signal

◆ getRenderObserver()

virtual iARenderObserver * iARenderer::getRenderObserver ( )
pure virtual

Access to the renderer observer.

Implemented in iARendererImpl.

◆ interactor()

virtual vtkRenderWindowInteractor * iARenderer::interactor ( )
pure virtual

Access to the render window interactor.

Implemented in iARendererImpl.

◆ labelRenderer()

virtual vtkRenderer * iARenderer::labelRenderer ( )
pure virtual

Access to "label" VTK renderer, used for text (which should be shown in front of volumes).

Implemented in iARendererImpl.

◆ noCellsSelected

void iARenderer::noCellsSelected ( )
signal

◆ onSetCamera

void iARenderer::onSetCamera ( )
signal

◆ renderer()

virtual vtkRenderer * iARenderer::renderer ( )
pure virtual

Access to "main" VTK renderer, used for volumes etc.

Implemented in iARendererImpl.

◆ renderWindow()

virtual vtkRenderWindow * iARenderer::renderWindow ( )
pure virtual

Access to the render window.

Implemented in iARendererImpl.

◆ sceneBounds()

virtual iAAABB iARenderer::sceneBounds ( ) const
pure virtual

Implemented in iARendererImpl.

◆ selectedActor()

virtual vtkActor * iARenderer::selectedActor ( )
pure virtual

Access to selected actor (when selection is enabled).

Currently only used in DynamicVolumeLines module)

Implemented in iARendererImpl.

◆ setCamera()

virtual void iARenderer::setCamera ( vtkCamera * c)
pure virtual

Implemented in iARendererImpl.

◆ setCuttingActive()

virtual void iARenderer::setCuttingActive ( bool enabled)
pure virtual

Set whether currently a dataset cutting is active.

If enabled, the renderer is updated on changes to the slicing planes (even if the planes themselves are not shown).

Implemented in iARendererImpl.

◆ setDefaultInteractor()

virtual void iARenderer::setDefaultInteractor ( )
pure virtual

Set the default interactor style.

Implemented in iARendererImpl.

◆ setSceneBounds()

virtual void iARenderer::setSceneBounds ( iAAABB const & boundingBox)
pure virtual

set the bounds of the scene to the given bounding box; adapts axes markers, plane indicators etc.

to be properly visible for a scene where all datasets fit within the given bounding box

Implemented in iARendererImpl.

◆ slicePlanes()

virtual std::array< vtkPlane *, 3 > iARenderer::slicePlanes ( ) const
pure virtual

Access to the slice planes.

Implemented in iARendererImpl.

◆ update()

virtual void iARenderer::update ( )
pure virtual

Update the view (to be called if something has changed in the underlying data which requires VTK to redraw the scene).

Implemented in iARendererImpl.


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