HAPI::HAPIGLShape Class Reference
[Abstract Classes]

The base class for all classes which can be used with functions in the class FeedbackBufferCollector. More...

#include <HAPI/HAPIGLShape.h>

Inheritance diagram for HAPI::HAPIGLShape:

Inheritance graph

List of all members.

Public Member Functions

virtual ~HAPIGLShape ()
 Virtual destructor.
virtual void glRender ()
 Render the shape using OpenGL.
virtual int nrTriangles ()
 A upper bound on how many triangles are renderered.
virtual int nrLines ()
 An upper bound on how many lines are renderered.
virtual int nrPoints ()
 An upper bound on how many points are renderered.
virtual void getBound (Vec3 &center, Vec3 &size)
 An axis aligned bounding box containing all the primitives rendered by the glRender function.
int nrVertices ()
 An upper bound on the number of vertices renderered.
virtual int nrFeedbackBufferValues ()
 An upper bound on the number of values required in the feedbackbuffer in order to render it there.


Detailed Description

The base class for all classes which can be used with functions in the class FeedbackBufferCollector.

The functions that HAPIGLShape can be used with are collectTriangles and collectPrimitives functions in the class FeedbackBufferCollector.


Member Function Documentation

virtual void HAPI::HAPIGLShape::getBound ( Vec3 center,
Vec3 size 
) [inline, virtual]

An axis aligned bounding box containing all the primitives rendered by the glRender function.

If no such bounding box is available, size should be set to Vec3( -1, -1, -1 )

Reimplemented in H3D::X3DGeometryNode.

Referenced by HAPI::FeedbackBufferCollector::collectPrimitives(), and HAPI::FeedbackBufferCollector::collectTriangles().

virtual int HAPI::HAPIGLShape::nrFeedbackBufferValues (  )  [inline, virtual]

An upper bound on the number of values required in the feedbackbuffer in order to render it there.

Referenced by HAPI::FeedbackBufferCollector::collectPrimitives(), and HAPI::FeedbackBufferCollector::collectTriangles().


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

Generated on Fri Nov 7 10:24:17 2008 for HAPI by  doxygen 1.5.7