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
[legend]
Collaboration diagram for GltShape:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual ~GltShape ()
 Destructor.

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 ()
 Settings.

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

virtual void flushExpired ()
 Remove expired shapes.

Matrixtransformation ()
 Transformation matrix.

GltColorcolor ()
 Color.

bool & solid ()
 Draw as solid or wireframe.

bool & visible ()
 Enable visibility.

std::string & name ()
 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
 Color.

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

const bool & visible () const
 Enable visibility.

const std::string & name () const
 Name.

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.

Author:
Nigel Stewart (nigels.com@gmail.com)

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