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

3D renderer for simple geometric objects (sphere, cube, ...). More...

#include <iADataSetRendererImpl.h>

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

Public Member Functions

 iAGeometricObjectRenderer (vtkRenderer *renderer, iAGeometricObject const *data, QVariantMap const &overrideValues)
 
iAAABB bounds () override
 The coordinates of the axis-aligned bounding box (of the dataset, untransformed to any current position/orientation changes)
 
- Public Member Functions inherited from iAPolyActorRenderer
 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.
 
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.
 

Additional Inherited Members

- Static Public Member Functions inherited from iAPolyActorRenderer
static iAAttributesdefaultAttributes ()
 
- Static Public Member Functions inherited from iADataSetRenderer
static iAAttributesdefaultAttributes ()
 default attributes of the dataset renderer
 
- 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 iAPolyActorRenderer
vtkSmartPointer< vtkActor > m_polyActor
 
- Protected Attributes inherited from iADataSetRenderer
QVariantMap m_attribValues
 
vtkRenderer * m_renderer
 The VTK renderer used for showing this dataset.
 

Detailed Description

3D renderer for simple geometric objects (sphere, cube, ...).

Constructor & Destructor Documentation

◆ iAGeometricObjectRenderer()

iAGeometricObjectRenderer::iAGeometricObjectRenderer ( vtkRenderer * renderer,
iAGeometricObject const * data,
QVariantMap const & overrideValues )

Member Function Documentation

◆ bounds()

iAAABB iAGeometricObjectRenderer::bounds ( )
overridevirtual

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

Implements iADataSetRenderer.


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