open_iA 2025.6
Loading...
Searching...
No Matches
iAPolyActorRenderer Class Reference

3D renderer for any kind of polydata. More...

#include <iADataSetRendererImpl.h>

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

Public Member Functions

 iAPolyActorRenderer (vtkRenderer *renderer, QVariantMap const &overrideValues)
 
 ~iAPolyActorRenderer ()
 
vtkActor * actor ()
 
void applyAttributes (QVariantMap const &values) override
 called when the attributes have changed; derive to apply such a change to renderer
 
vtkPolyDataMapper * mapper ()
 
double const * orientation () const override
 Get Orientation of this dataset in scene TODO: make deliver std::array by value to avoid pointer to internal data!
 
double const * position () const override
 Get Position of this dataset in scene TODO: make deliver std::array by value to avoid pointer to internal data!
 
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
 Retrieve the vtk prop (=root object in the scene) used for rendering this dataset.
 
- 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.
 
virtual void addCuttingPlane (vtkPlane *p)
 optional additional control widget needed for additional settings in the renderer
 
iAAttributes attributesWithValues () const
 Retrieves the list of attributes, merged with their current values as default values:
 
virtual QVariantMap 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 void removeCuttingPlane (vtkPlane *p)
 
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:
 
void setPickable (bool pickable)
 convenience method for setting the pickable attribute
 
void setVisible (bool visible)
 Set visibility of dataset.
 
vtkRenderer * vtkRen () const
 Retrieve the vtk renderer used for rendering this dataset.
 

Static Public Member Functions

static iAAttributesdefaultAttributes ()
 
- Static Public Member Functions inherited from iADataSetRenderer
static iAAttributesdefaultAttributes ()
 default attributes of the dataset renderer
 

Protected Attributes

vtkSmartPointer< vtkActor > m_polyActor
 
- Protected Attributes inherited from iADataSetRenderer
QVariantMap m_attribValues
 
vtkRenderer * m_renderer
 The VTK renderer used for showing this dataset.
 

Additional Inherited Members

- Static Public Attributes inherited from iADataSetRenderer
static constexpr const char AmbientLighting [] = "Ambient lighting"
 
static constexpr const char DiffuseLighting [] = "Diffuse lighting"
 
static constexpr const char Orientation [] = "Orientation"
 
static constexpr const char OutlineColor [] = "Box Color"
 
static constexpr const char Pickable [] = "Pickable"
 
static constexpr const char Position [] = "Position"
 
static constexpr const char Shading [] = "Shading"
 
static constexpr const char SpecularLighting [] = "Specular lighting"
 
static constexpr const char SpecularPower [] = "Specular power"
 
- Protected Member Functions inherited from iADataSetRenderer
void setDefaultAttributes (iAAttributes const &defaultAttr, QVariantMap const &overrideValues)
 convenience methods for derived classes: to be used at end of constructor to initialize attribute values to default, with the option to override these default values (e.g.
 
void updateOutlineTransform ()
 needs to be called by derived classes whenever the bounds of the dataset change (position, orientation, ...)
 

Detailed Description

3D renderer for any kind of polydata.

Constructor & Destructor Documentation

◆ iAPolyActorRenderer()

iAPolyActorRenderer::iAPolyActorRenderer ( vtkRenderer * renderer,
QVariantMap const & overrideValues )

◆ ~iAPolyActorRenderer()

iAPolyActorRenderer::~iAPolyActorRenderer ( )

Member Function Documentation

◆ actor()

vtkActor * iAPolyActorRenderer::actor ( )

◆ applyAttributes()

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

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

Implements iADataSetRenderer.

◆ defaultAttributes()

iAAttributes & iAPolyActorRenderer::defaultAttributes ( )
static

◆ mapper()

vtkPolyDataMapper * iAPolyActorRenderer::mapper ( )

◆ orientation()

double const * iAPolyActorRenderer::orientation ( ) const
overridevirtual

Get Orientation of this dataset in scene TODO: make deliver std::array by value to avoid pointer to internal data!

Implements iADataSetRenderer.

◆ position()

double const * iAPolyActorRenderer::position ( ) const
overridevirtual

Get Position of this dataset in scene TODO: make deliver std::array by value to avoid pointer to internal data!

Implements iADataSetRenderer.

◆ setOrientation()

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

Set orientation of this dataset in scene.

Implements iADataSetRenderer.

◆ setPosition()

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

Set position of this dataset in scene.

Implements iADataSetRenderer.

◆ vtkProp()

vtkProp3D * iAPolyActorRenderer::vtkProp ( )
overridevirtual

Retrieve the vtk prop (=root object in the scene) used for rendering this dataset.

Implements iADataSetRenderer.

Member Data Documentation

◆ m_polyActor

vtkSmartPointer<vtkActor> iAPolyActorRenderer::m_polyActor
protected

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