open_iA 2024.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
iAObjectsRenderer Class Reference

3D Renderer for objects data in the iADataSetViewer framework More...

#include <iAObjectsViewer.h>

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

Public Member Functions

 iAObjectsRenderer (vtkRenderer *renderer, iAObjectVis *objVis, QVariantMap const &overrideValues)
 
 ~iAObjectsRenderer ()
 
void applyAttributes (QVariantMap const &values) override
 called when the attributes have changed; derive to apply such a change to renderer
 
virtual 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 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.
 
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.
 
bool isPickable () const
 whether dataset is currently set to be pickable
 
bool isVisible () const
 Whether dataset is currently visible.
 
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 (std::array< vtkPlane *, 3 > p)
 optional additional control widget needed for additional settings in the renderer
 
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
 

Static Public Attributes

static constexpr char Color [] = "Color"
 
static constexpr char Name [] = "Default Settings/Dataset Renderer: Objects"
 
static constexpr char NumOfCylinderSides [] = "Number of cylinder sides"
 
static constexpr char SegmentSkip [] = "Segment Skip"
 
- 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"
 

Additional Inherited Members

- 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, ...)
 
- Protected Attributes inherited from iADataSetRenderer
QVariantMap m_attribValues
 
vtkRenderer * m_renderer
 The VTK renderer used for showing this dataset.
 

Detailed Description

3D Renderer for objects data in the iADataSetViewer framework

Constructor & Destructor Documentation

◆ iAObjectsRenderer()

iAObjectsRenderer::iAObjectsRenderer ( vtkRenderer * renderer,
iAObjectVis * objVis,
QVariantMap const & overrideValues )

◆ ~iAObjectsRenderer()

iAObjectsRenderer::~iAObjectsRenderer ( )

Member Function Documentation

◆ applyAttributes()

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

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

Implements iADataSetRenderer.

◆ bounds()

iAAABB iAObjectsRenderer::bounds ( )
overridevirtual

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

Implements iADataSetRenderer.

◆ defaultAttributes()

iAAttributes & iAObjectsRenderer::defaultAttributes ( )
static

◆ orientation()

double const * iAObjectsRenderer::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 * iAObjectsRenderer::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 iAObjectsRenderer::setOrientation ( double ori[3])
overridevirtual

Set orientation of this dataset in scene.

Implements iADataSetRenderer.

◆ setPosition()

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

Set position of this dataset in scene.

Implements iADataSetRenderer.

◆ vtkProp()

vtkProp3D * iAObjectsRenderer::vtkProp ( )
overridevirtual

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

Implements iADataSetRenderer.

Member Data Documentation

◆ Color

constexpr char iAObjectsRenderer::Color[] = "Color"
staticconstexpr

◆ Name

constexpr char iAObjectsRenderer::Name[] = "Default Settings/Dataset Renderer: Objects"
staticconstexpr

◆ NumOfCylinderSides

constexpr char iAObjectsRenderer::NumOfCylinderSides[] = "Number of cylinder sides"
staticconstexpr

◆ SegmentSkip

constexpr char iAObjectsRenderer::SegmentSkip[] = "Segment Skip"
staticconstexpr

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