Main Page   Namespace List   Class Hierarchy   Compound List   File List   Header Files   Namespace Members   Compound Members   File Members   Related Pages  

MSG::Shape Class Reference

A shape is a geometric object. More...

#include </msg/src/nodes/shape.h>

Class diagram for MSG::Shape:

MSG::Node

List of all members.

Public Members

 Shape (char* inputFile)
virtual ~Shape ()
void performTransformations (std::vector<TransformGroup*> transforms)
void draw ()
virtual void render (std::vector<ActiveLight*>* &activelights, std::vector<TransformGroup*> transforms)
virtual bool handleEvent (Event* event)

Protected Members

bool solids
int numV
GLfloat* coords
int numP
int* vertsPerPoly
GLfloat* normals
int indexxSize
GLuint* indexx

Friends

ostream& operator<< ( ostream& out, const Shape& shape )

Detailed Description

A shape is a geometric object.

Shape nodes have one constructor only that loads a vpl file The geometry is loaded such that it is easy to parse it and to issue gl commands


Member Function Documentation

MSG::Shape::Shape (char * inputFilename)

MSG::Shape::~Shape () [virtual]

void MSG::Shape::performTransformations (std::vector<TransformGroup *> transforms)

void MSG::Shape::draw ()

void MSG::Shape::render (std::vector<ActiveLight *>*& activelights, std::vector<TransformGroup *> transforms) [virtual]

Reimplemented from MSG::Node.

bool MSG::Shape::handleEvent (Event * event) [virtual]

Reimplemented from MSG::Node.


Friends And Related Function Documentation

ostream& operator<< (ostream & out, const Shape & shape) [friend]


Member Data Documentation

bool MSG::Shape::solids [protected]

int MSG::Shape::numV [protected]

GLfloat* MSG::Shape::coords [protected]

int MSG::Shape::numP [protected]

int* MSG::Shape::vertsPerPoly [protected]

GLfloat* MSG::Shape::normals [protected]

int MSG::Shape::indexxSize [protected]

GLuint* MSG::Shape::indexx [protected]


The documentation for this class was generated from the following files:
Generated at Sat Jul 22 00:32:16 2000 for MSG by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999