Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

GltShape Class Reference
[GLT Node]

Scenegraph Node Base-Class. More...

#include <shape.h>

Inheritance diagram for GltShape:

Inheritance graph
Collaboration diagram for GltShape:

Collaboration graph
List of all members.

Public Methods

virtual ~GltShape ()

virtual void draw () const=0
 Derived classes should supply this.

virtual GLdouble volume () const
 Get the volume of the shape.

virtual bool inside (const Vector &pos) const
 Inside/Outside test.

virtual void boundingBox (BoundingBox &box) const
 Get an axis aligned bounding box, unavailable by default.

virtual bool intersects (const GltShape &shape) const
 Check for intersection with another object.

virtual std::string description () const
 Brief description of the shape.

virtual GltFieldPtr settings ()

virtual bool povrayExport (std::ostream &os) const
 Export to POV format.

virtual void flushExpired ()
 Remove expired shapes.

Matrixtransformation ()
 Transformation matrix.

GltColorcolor ()

bool & solid ()
 Draw as solid or wireframe.

bool & visible ()
 Enable visibility.

std::string & name ()

int & convexity ()
 Depth complexity.

bool & inheritColor ()
 Use current OpenGL color.

bool & inheritSolid ()
 Use current polygon mode.

bool & expired ()
 Ready to be removed from scene.

const Matrixtransformation () const
 Transformation matrix.

const GltColorcolor () const

const bool & solid () const
 Draw as solid or wireframe.

const bool & visible () const
 Enable visibility.

const std::string & name () const

const int & convexity () const
 Depth complexity.

const bool & inheritColor () const
 Use current OpenGL color.

const bool & inheritSolid () const
 Use current polygon mode.

const bool & expired () const
 Ready to be removed from scene.

Protected Methods

 GltShape (const bool solid=true)
 Constructor is protected since GltShape is abstract base class.

void transformPoints (std::vector< Vector > &v) const
 Apply current transformation to co-ordinates.

void glColor () const
 Apply current color, unless inherited.

Detailed Description

Scenegraph Node Base-Class.

Nigel Stewart (

Definition at line 58 of file shape.h.

The documentation for this class was generated from the following files:
Generated on Tue Nov 5 11:11:46 2002 for GLT by doxygen1.2.18