![]() |
OpenSceneGraph
|
Convenience class for populating an Geometry with vertex, normals, texture coords and primitives that can render a Shape. More...

Public Member Functions | |
| BuildShapeGeometryVisitor (Geometry *geometry, const TessellationHints *hints) | |
| virtual void | apply (const Sphere &) |
| virtual void | apply (const Box &) |
| virtual void | apply (const Cone &) |
| virtual void | apply (const Cylinder &) |
| virtual void | apply (const Capsule &) |
| virtual void | apply (const InfinitePlane &) |
| virtual void | apply (const TriangleMesh &) |
| virtual void | apply (const ConvexHull &) |
| virtual void | apply (const HeightField &) |
| virtual void | apply (const CompositeShape &) |
| void | Normal (const Vec3f &v) |
| void | Normal3f (float x, float y, float z) |
| void | TexCoord (const Vec2f &tc) |
| void | TexCoord2f (float x, float y) |
| void | Vertex (const Vec3f &v) |
| void | Vertex3f (float x, float y, float z) |
| void | setMatrix (const Matrixd &m) |
| void | Begin (GLenum mode) |
| void | End () |
Public Member Functions inherited from osg::ConstShapeVisitor | |
| ConstShapeVisitor () | |
| virtual | ~ConstShapeVisitor () |
| virtual void | apply (const Shape &) |
Protected Types | |
| enum | SphereHalf { SphereTopHalf, SphereBottomHalf } |
Protected Member Functions | |
| BuildShapeGeometryVisitor & | operator= (const BuildShapeGeometryVisitor &) |
| void | drawCylinderBody (unsigned int numSegments, float radius, float height) |
| void | drawHalfSphere (unsigned int numSegments, unsigned int numRows, float radius, SphereHalf which, float zOffset=0.0f) |
Protected Attributes | |
| Geometry * | _geometry |
| const TessellationHints * | _hints |
| ref_ptr< Vec3Array > | _vertices |
| ref_ptr< Vec3Array > | _normals |
| ref_ptr< Vec2Array > | _texcoords |
| GLenum | _mode |
| unsigned int | _start_index |
| Matrixd | _matrix |
| Matrixd | _inverse |
Convenience class for populating an Geometry with vertex, normals, texture coords and primitives that can render a Shape.
|
protected |
| osg::BuildShapeGeometryVisitor::BuildShapeGeometryVisitor | ( | Geometry * | geometry, |
| const TessellationHints * | hints | ||
| ) |
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
|
virtual |
Reimplemented from osg::ConstShapeVisitor.
| void osg::BuildShapeGeometryVisitor::Begin | ( | GLenum | mode | ) |
|
protected |
|
protected |
| void osg::BuildShapeGeometryVisitor::End | ( | ) |
|
inline |
|
inline |
|
inlineprotected |
| void osg::BuildShapeGeometryVisitor::setMatrix | ( | const Matrixd & | m | ) |
|
inline |
|
inline |
| void osg::BuildShapeGeometryVisitor::Vertex | ( | const Vec3f & | v | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.13