The base class for all drawable geometry and types.
More...
#include <avogadro/rendering/drawable.h>
|
|
GeometryNode * | m_parent |
|
bool | m_visible |
|
RenderPass | m_renderPass |
|
Identifier | m_identifier |
- Author
- Marcus D. Hanwell
This class provides the common API for drawable objects on the scene. It is not a Node object, and can only be attached to GeometryNode objects in the Scene.
◆ accept()
◆ parent()
| const GeometryNode * parent |
( |
| ) |
const |
- Returns
- Pointer to the parent node, nullptr if no parent.
◆ setVisible()
| void setVisible |
( |
bool | visibility | ) |
|
- Parameters
-
| visibility | True if the drawable is visible, false if invisible. |
◆ isVisible()
◆ setRenderPass()
| void setRenderPass |
( |
RenderPass | pass | ) |
|
The render pass in which this drawable should be rendered.
- See also
- Rendering::RenderPass
◆ renderPass()
| RenderPass renderPass |
( |
| ) |
const |
The render pass in which this drawable should be rendered.
- See also
- Rendering::RenderPass
◆ render()
| virtual void render |
( |
const Camera & | camera | ) |
|
|
virtual |
◆ identifier()
Get the identifier for the object, this stores the parent Molecule and the type represented by the geometry.
◆ hits()
| virtual std::multimap< float, Identifier > hits |
( |
const Vector3f & | rayOrigin, |
|
|
const Vector3f & | rayEnd, |
|
|
const Vector3f & | rayDirection ) const |
|
virtual |
◆ areaHits()
Return the primitives within the supplied area.
- Parameters
-
| f | The frustrum defining the area highlighted. |
- Returns
- Collection of primitives in the area.
Reimplemented in CurveGeometry, and SphereGeometry.
◆ clear()
◆ setParent()
| void setParent |
( |
GeometryNode * | parent | ) |
|
|
protected |
- Parameters
-
| parent | The parent, a value of nullptr denotes no parent node. |
The documentation for this class was generated from the following file: