The CylinderGeometry contains one or more cylinders.
More...
#include <avogadro/rendering/cylindergeometry.h>
|
| CylinderGeometry (const CylinderGeometry &other) |
|
CylinderGeometry & | operator= (CylinderGeometry) |
|
void | accept (Visitor &) AVO_OVERRIDE |
|
void | update () |
| Update the VBOs, IBOs etc ready for rendering.
|
|
void | render (const Camera &camera) |
| Render the cylinder geometry. More...
|
|
std::multimap< float, Identifier > | hits (const Vector3f &rayOrigin, const Vector3f &rayEnd, const Vector3f &rayDirection) const |
|
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 () |
|
size_t | size () const |
|
| Drawable (const Drawable &other) |
|
Drawable & | operator= (Drawable) |
|
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...
|
|
Identifier & | identifier () |
|
const Identifier & | identifier () const |
|
void | setRenderPass (RenderPass pass) |
|
RenderPass | renderPass () const |
|
Accept a visit from our friendly visitor.
Reimplemented from Drawable.
void render |
( |
const Camera & |
camera | ) |
|
|
virtual |
- Parameters
-
camera | The current camera to be used for rendering. |
Reimplemented from Drawable.
std::multimap<float, Identifier> hits |
( |
const Vector3f & |
rayOrigin, |
|
|
const Vector3f & |
rayEnd, |
|
|
const Vector3f & |
rayDirection |
|
) |
| const |
|
virtual |
Return the primitives that are hit by the ray.
- Parameters
-
rayOrigin | Origin of the ray. |
rayEnd | End point of the ray. |
rayDirection | Normalized direction of the ray. |
- Returns
- Sorted collection of primitives that were hit.
Reimplemented from Drawable.
void addCylinder |
( |
const Vector3f & |
pos1, |
|
|
const Vector3f & |
pos2, |
|
|
float |
radius, |
|
|
const Vector3ub & |
color |
|
) |
| |
- Parameters
-
position | Base of the cylinder. |
direction | Direction vector for the cylinder. |
length | Length of the cylinder. |
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 |
|
) |
| |
- Parameters
-
position | Base of the cylinder. |
direction | Direction vector for the cylinder. |
length | Length of the cylinder. |
radius | Radius of the cylinder. |
colorStart | Color the start of the base of the cylinder. |
colorEnd | Color of the end of the cylinder. |
void addCylinder |
( |
const Vector3f & |
pos1, |
|
|
const Vector3f & |
pos2, |
|
|
float |
radius, |
|
|
const Vector3ub & |
color, |
|
|
size_t |
index |
|
) |
| |
- Parameters
-
position | Base of the cylinder. |
direction | Direction vector for the cylinder. |
length | Length of the cylinder. |
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 |
|
) |
| |
- Parameters
-
position | Base of the cylinder. |
direction | Direction vector for the cylinder. |
length | Length of the cylinder. |
radius | Radius of the cylinder. |
colorStart | Color the start of the base of the cylinder. |
colorEnd | Color of the end of the cylinder. |
index | The index of the cylinder being added. |
Get a reference to the cylinders.
Clear the contents of the node.
Reimplemented from Drawable.
Get the number of cylinders in the node object.
The documentation for this class was generated from the following file: