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

3D renderer for graph data, with options to adapt node and vertex size and color. More...

#include <iADataSetRendererImpl.h>

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

Public Member Functions

 iAGraphRenderer (vtkRenderer *renderer, iAGraphData const *data, QVariantMap const &overrideValues)
 
 ~iAGraphRenderer ()
 
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 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.
 
void updatePointRendererPosOri ()
 
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.
 
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
 

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

Detailed Description

3D renderer for graph data, with options to adapt node and vertex size and color.

Constructor & Destructor Documentation

◆ iAGraphRenderer()

iAGraphRenderer::iAGraphRenderer ( vtkRenderer * renderer,
iAGraphData const * data,
QVariantMap const & overrideValues )

◆ ~iAGraphRenderer()

iAGraphRenderer::~iAGraphRenderer ( )

Member Function Documentation

◆ applyAttributes()

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

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

Implements iADataSetRenderer.

◆ bounds()

iAAABB iAGraphRenderer::bounds ( )
overridevirtual

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

Implements iADataSetRenderer.

◆ defaultAttributes()

iAAttributes & iAGraphRenderer::defaultAttributes ( )
static

◆ orientation()

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

Set orientation of this dataset in scene.

Implements iADataSetRenderer.

◆ setPosition()

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

Set position of this dataset in scene.

Implements iADataSetRenderer.

◆ updatePointRendererPosOri()

void iAGraphRenderer::updatePointRendererPosOri ( )

◆ vtkProp()

vtkProp3D * iAGraphRenderer::vtkProp ( )
overridevirtual

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

Implements iADataSetRenderer.


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