open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
iAVolumeRenderer Class Reference

Class for rendering a volume dataset. More...

#include <iAVolumeRenderer.h>

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

Public Member Functions

 iAVolumeRenderer (vtkRenderer *renderer, vtkImageData *vtkImg, iATransferFunction *tf)
 
 ~iAVolumeRenderer ()
 ensure that we get removed from the renderer
 
void applyAttributes (QVariantMap const &values) override
 called when the attributes have changed; derive to apply such a change to renderer
 
iAAABB bounds () override
 The coordinates of the axis-aligned bounding box (of the dataset, untransformed to any current position/orientation changes)
 
double const * orientation () const override
 Get Orientation of this dataset in scene.
 
double const * position () const override
 Get Position of this dataset in scene.
 
void removeCuttingPlanes () override
 
void setCuttingPlanes (vtkPlane *p1, vtkPlane *p2, vtkPlane *p3) override
 optional additional control widget needed for additional settings in the renderer
 
void setOrientation (double ori[3]) override
 Set orientation of this dataset in scene.
 
void setPosition (double pos[3]) override
 Set position of this dataset in scene.
 
vtkProp3D * vtkProp () override
 
- Public Member Functions inherited from iADataSetRenderer
 iADataSetRenderer (vtkRenderer *renderer)
 Create a dataset renderer.
 
virtual ~iADataSetRenderer ()
 called when dataset renderer is removed from display and destroyed.
 
iAAttributes attributesWithValues () const
 Retrieves the list of attributes, merged with their current values as default values:
 
QVariantMap const & attributeValues () const
 Retrieve only the current attribute values.
 
virtual iAAABB bounds ()=0
 The coordinates of the axis-aligned bounding box (of the dataset, untransformed to any current position/orientation changes)
 
bool isPickable () const
 whether dataset is currently set to be pickable
 
bool isVisible () const
 Whether dataset is currently visible.
 
virtual double const * orientation () const =0
 Get Orientation of this dataset in scene.
 
virtual double const * position () const =0
 Get Position of this dataset in scene.
 
virtual void removeCuttingPlanes ()
 
void setAttributes (QVariantMap const &values)
 Call to change the attributes of this renderer.
 
void setBoundsVisible (bool visible)
 Set the visibility of the axis-aligned bounding box:
 
virtual void setCuttingPlanes (vtkPlane *p1, vtkPlane *p2, vtkPlane *p3)
 optional additional control widget needed for additional settings in the renderer
 
virtual void setOrientation (double ori[3])=0
 Set orientation of this dataset in scene.
 
void setPickable (bool pickable)
 convenience method for setting the pickable attribute
 
virtual void setPosition (double pos[3])=0
 Set position of this dataset in scene.
 
void setVisible (bool visible)
 Set visibility of dataset.
 
virtual vtkProp3D * vtkProp ()=0
 

Static Public Attributes

static const QString LinearInterpolation
 
static const QString RendererType
 
static const QString SampleDistance
 
static const QString ScalarOpacityUnitDistance
 
- Static Public Attributes inherited from iADataSetRenderer
static const QString AmbientLighting
 
static const QString DiffuseLighting
 
static const QString Orientation
 
static const QString OutlineColor
 
static const QString Pickable
 
static const QString Position
 
static const QString Shading
 
static const QString SpecularLighting
 
static const QString SpecularPower
 

Additional Inherited Members

- Protected Member Functions inherited from iADataSetRenderer
void addAttribute (QString const &name, iAValueType valueType, QVariant defaultValue=0.0, double min=std::numeric_limits< double >::lowest(), double max=std::numeric_limits< double >::max())
 
void updateOutlineTransform ()
 needs to be called by derived classes whenever the bounds of the dataset change (position, orientation, ...)
 
- Protected Attributes inherited from iADataSetRenderer
QVariantMap m_attribValues
 
vtkRenderer * m_renderer
 

Detailed Description

Class for rendering a volume dataset.

Provides convenience functionality for adding it to a render window, as well as for showing its bounding box

Constructor & Destructor Documentation

◆ iAVolumeRenderer()

iAVolumeRenderer::iAVolumeRenderer ( vtkRenderer *  renderer,
vtkImageData *  vtkImg,
iATransferFunction tf 
)

◆ ~iAVolumeRenderer()

iAVolumeRenderer::~iAVolumeRenderer ( )

ensure that we get removed from the renderer

Member Function Documentation

◆ applyAttributes()

void iAVolumeRenderer::applyAttributes ( QVariantMap const &  values)
overridevirtual

called when the attributes have changed; derive to apply such a change to renderer

Implements iADataSetRenderer.

◆ bounds()

iAAABB iAVolumeRenderer::bounds ( )
overridevirtual

The coordinates of the axis-aligned bounding box (of the dataset, untransformed to any current position/orientation changes)

Implements iADataSetRenderer.

◆ orientation()

double const * iAVolumeRenderer::orientation ( ) const
overridevirtual

Get Orientation of this dataset in scene.

Implements iADataSetRenderer.

◆ position()

double const * iAVolumeRenderer::position ( ) const
overridevirtual

Get Position of this dataset in scene.

Implements iADataSetRenderer.

◆ removeCuttingPlanes()

void iAVolumeRenderer::removeCuttingPlanes ( )
overridevirtual

Reimplemented from iADataSetRenderer.

◆ setCuttingPlanes()

void iAVolumeRenderer::setCuttingPlanes ( vtkPlane *  p1,
vtkPlane *  p2,
vtkPlane *  p3 
)
overridevirtual

optional additional control widget needed for additional settings in the renderer

Reimplemented from iADataSetRenderer.

◆ setOrientation()

void iAVolumeRenderer::setOrientation ( double  ori[3])
overridevirtual

Set orientation of this dataset in scene.

Implements iADataSetRenderer.

◆ setPosition()

void iAVolumeRenderer::setPosition ( double  pos[3])
overridevirtual

Set position of this dataset in scene.

Implements iADataSetRenderer.

◆ vtkProp()

vtkProp3D * iAVolumeRenderer::vtkProp ( )
overridevirtual

Implements iADataSetRenderer.

Member Data Documentation

◆ LinearInterpolation

const QString iAVolumeRenderer::LinearInterpolation
static

◆ RendererType

const QString iAVolumeRenderer::RendererType
static

◆ SampleDistance

const QString iAVolumeRenderer::SampleDistance
static

◆ ScalarOpacityUnitDistance

const QString iAVolumeRenderer::ScalarOpacityUnitDistance
static

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