AvogadroLibs 1.97.0
|
The CylinderGeometry contains one or more cylinders. More...
#include <cylindergeometry.h>
Public Member Functions | |
CylinderGeometry (const CylinderGeometry &other) | |
CylinderGeometry & | operator= (CylinderGeometry) |
void | accept (Visitor &) override |
void | update () |
Update the VBOs, IBOs etc ready for rendering. | |
void | render (const Camera &camera) override |
Render the cylinder geometry. More... | |
std::multimap< float, Identifier > | hits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const override |
void | addCylinder (const Vector3f &pos1, const Vector3f &pos2, float radius, const Vector3ub &color) |
Add a cylinder to the geometry object. More... | |
void | addCylinder (const Vector3f &pos1, const Vector3f &pos2, float radius, const Vector3ub &color1, const Vector3ub &color2) |
Add a cylinder to the geometry object. More... | |
void | addCylinder (const Vector3f &pos1, const Vector3f &pos2, float radius, const Vector3ub &color, size_t index) |
Add a cylinder to the geometry object. More... | |
void | addCylinder (const Vector3f &pos1, const Vector3f &pos2, float radius, const Vector3ub &color, const Vector3ub &color2, size_t index) |
Add a cylinder to the geometry object. More... | |
std::vector< CylinderColor > & | cylinders () |
const std::vector< CylinderColor > & | cylinders () const |
void | clear () override |
size_t | size () const |
![]() | |
Drawable (const Drawable &other) | |
Drawable & | operator= (Drawable) |
virtual void | accept (Visitor &) |
const GeometryNode * | parent () const |
Get a pointer to the drawable object's parent. More... | |
GeometryNode * | parent () |
void | setVisible (bool visibility) |
Set the visibility of the drawable object. More... | |
bool | isVisible () const |
Get the current visibility of the drawable. More... | |
virtual void | render (const Camera &camera) |
Render the contents of the drawable. More... | |
Identifier & | identifier () |
const Identifier & | identifier () const |
virtual std::multimap< float, Identifier > | hits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const |
virtual Core::Array< Identifier > | areaHits (const Frustrum &f) const |
virtual void | clear () |
void | setRenderPass (RenderPass pass) |
RenderPass | renderPass () const |
Additional Inherited Members | |
![]() | |
void | setParent (GeometryNode *parent) |
Set the parent node for the node. More... | |
![]() | |
GeometryNode * | m_parent |
bool | m_visible |
RenderPass | m_renderPass |
Identifier | m_identifier |
<avogadro/rendering/cylindergeometry.h>
|
overridevirtual |
Accept a visit from our friendly visitor.
Reimplemented from Drawable.
|
overridevirtual |
camera | The current camera to be used for rendering. |
Reimplemented from Drawable.
|
overridevirtual |
Return the primitives that are hit by the ray.
rayOrigin | Origin of the ray. |
rayEnd | End point of the ray. |
rayDirection | Normalized direction of the ray. |
Reimplemented from Drawable.
void addCylinder | ( | const Vector3f & | pos1, |
const Vector3f & | pos2, | ||
float | radius, | ||
const Vector3ub & | color | ||
) |
pos1 | Base of the cylinder axis. |
pos2 | Top of the cylinder axis. |
radius | Radius of the cylinder. |
color | Color the cylinder will be rendered. |
void addCylinder | ( | const Vector3f & | pos1, |
const Vector3f & | pos2, | ||
float | radius, | ||
const Vector3ub & | color1, | ||
const Vector3ub & | color2 | ||
) |
pos1 | Base of the cylinder axis. |
pos2 | Top of the cylinder axis. |
radius | Radius of the cylinder. |
color1 | Color the start of the base of the cylinder. |
color2 | Color of the end of the cylinder. |
void addCylinder | ( | const Vector3f & | pos1, |
const Vector3f & | pos2, | ||
float | radius, | ||
const Vector3ub & | color, | ||
size_t | index | ||
) |
pos1 | Base of the cylinder axis. |
pos2 | Top of the cylinder axis. |
radius | Radius of the cylinder. |
color | Color the cylinder will be rendered. |
index | The index of the cylinder being added. |
void addCylinder | ( | const Vector3f & | pos1, |
const Vector3f & | pos2, | ||
float | radius, | ||
const Vector3ub & | color, | ||
const Vector3ub & | color2, | ||
size_t | index | ||
) |
pos1 | Base of the cylinder axis. |
pos2 | Top of the cylinder axis. |
radius | Radius of the cylinder. |
color | Color the start of the base of the cylinder. |
color2 | Color of the end of the cylinder. |
index | The index of the cylinder being added. |
std::vector< CylinderColor > & cylinders | ( | ) |
Get a reference to the cylinders.
|
overridevirtual |
Clear the contents of the node.
Reimplemented from Drawable.
size_t size | ( | ) | const |
Get the number of cylinders in the node object.