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 | Protected Member Functions | Protected Attributes | List of all members
iADataSetRenderer Class Referenceabstract

abstract interface for a class for 3D rendering of a dataset (in an iARenderer) More...

#include <iADataSetRenderer.h>

Inheritance diagram for iADataSetRenderer:
[legend]

Public Member Functions

 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 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
 

Protected Member Functions

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

QVariantMap m_attribValues
 
vtkRenderer * m_renderer
 

Detailed Description

abstract interface for a class for 3D rendering of a dataset (in an iARenderer)

Constructor & Destructor Documentation

◆ iADataSetRenderer()

iADataSetRenderer::iADataSetRenderer ( vtkRenderer *  renderer)

Create a dataset renderer.

◆ ~iADataSetRenderer()

iADataSetRenderer::~iADataSetRenderer ( )
virtual

called when dataset renderer is removed from display and destroyed.

Only takes care of removing outline from display; derived classes need to remove their props from renderers themselves!

Member Function Documentation

◆ addAttribute()

void iADataSetRenderer::addAttribute ( QString const &  name,
iAValueType  valueType,
QVariant  defaultValue = 0.0,
double  min = std::numeric_limits<double>::lowest(),
double  max = std::numeric_limits<double>::max() 
)
protected

◆ attributesWithValues()

iAAttributes iADataSetRenderer::attributesWithValues ( ) const

Retrieves the list of attributes, merged with their current values as default values:

◆ attributeValues()

QVariantMap const & iADataSetRenderer::attributeValues ( ) const

Retrieve only the current attribute values.

◆ bounds()

virtual iAAABB iADataSetRenderer::bounds ( )
pure virtual

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

Implemented in iAGraphRenderer, iAPolyDataRenderer, iAGeometricObjectRenderer, and iAVolumeRenderer.

◆ isPickable()

bool iADataSetRenderer::isPickable ( ) const

whether dataset is currently set to be pickable

◆ isVisible()

bool iADataSetRenderer::isVisible ( ) const

Whether dataset is currently visible.

◆ orientation()

virtual double const * iADataSetRenderer::orientation ( ) const
pure virtual

Get Orientation of this dataset in scene.

Implemented in iAGraphRenderer, iAPolyActorRenderer, and iAVolumeRenderer.

◆ position()

virtual double const * iADataSetRenderer::position ( ) const
pure virtual

Get Position of this dataset in scene.

Implemented in iAGraphRenderer, iAPolyActorRenderer, and iAVolumeRenderer.

◆ removeCuttingPlanes()

void iADataSetRenderer::removeCuttingPlanes ( )
virtual

Reimplemented in iAVolumeRenderer.

◆ setAttributes()

void iADataSetRenderer::setAttributes ( QVariantMap const &  values)

Call to change the attributes of this renderer.

◆ setBoundsVisible()

void iADataSetRenderer::setBoundsVisible ( bool  visible)

Set the visibility of the axis-aligned bounding box:

◆ setCuttingPlanes()

void iADataSetRenderer::setCuttingPlanes ( vtkPlane *  p1,
vtkPlane *  p2,
vtkPlane *  p3 
)
virtual

optional additional control widget needed for additional settings in the renderer

Reimplemented in iAVolumeRenderer.

◆ setOrientation()

virtual void iADataSetRenderer::setOrientation ( double  ori[3])
pure virtual

Set orientation of this dataset in scene.

Implemented in iAGraphRenderer, iAPolyActorRenderer, and iAVolumeRenderer.

◆ setPickable()

void iADataSetRenderer::setPickable ( bool  pickable)

convenience method for setting the pickable attribute

◆ setPosition()

virtual void iADataSetRenderer::setPosition ( double  pos[3])
pure virtual

Set position of this dataset in scene.

Implemented in iAGraphRenderer, iAPolyActorRenderer, and iAVolumeRenderer.

◆ setVisible()

void iADataSetRenderer::setVisible ( bool  visible)

Set visibility of dataset.

◆ updateOutlineTransform()

void iADataSetRenderer::updateOutlineTransform ( )
protected

needs to be called by derived classes whenever the bounds of the dataset change (position, orientation, ...)

◆ vtkProp()

virtual vtkProp3D * iADataSetRenderer::vtkProp ( )
pure virtual

Member Data Documentation

◆ AmbientLighting

const QString iADataSetRenderer::AmbientLighting
static

◆ DiffuseLighting

const QString iADataSetRenderer::DiffuseLighting
static

◆ m_attribValues

QVariantMap iADataSetRenderer::m_attribValues
protected

◆ m_renderer

vtkRenderer* iADataSetRenderer::m_renderer
protected

◆ Orientation

const QString iADataSetRenderer::Orientation
static

◆ OutlineColor

const QString iADataSetRenderer::OutlineColor
static

◆ Pickable

const QString iADataSetRenderer::Pickable
static

◆ Position

const QString iADataSetRenderer::Position
static

◆ Shading

const QString iADataSetRenderer::Shading
static

◆ SpecularLighting

const QString iADataSetRenderer::SpecularLighting
static

◆ SpecularPower

const QString iADataSetRenderer::SpecularPower
static

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