Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ThingCube Class Reference

primitive cube Thing for the scenegraph More...

#include <ThingCube.h>

Inherits Thing.

Inheritance diagram for ThingCube:

Inheritance graph
[legend]
Collaboration diagram for ThingCube:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ThingCube (float size)
 constructor
virtual ~ThingCube (void)
 destructor
void switchWireSolid ()
 switches between solid and wire rendering of the cube
bool isSolid ()
 returns true if the cube is rendered solid
float getSize ()
 get the size of the cube
void setSize (float new_size)
 set the size of the cube
void render ()
 write the corresponding openGL code to render the cube

Private Attributes

float size
bool solid

Detailed Description

primitive cube Thing for the scenegraph

Cube Thing for the scenegraph. inherits from Thing.h and offers all methods to set the parameters for a cube


Constructor & Destructor Documentation

ThingCube::ThingCube float  new_size  ) 
 

constructor

Parameters:
size of the cube

ThingCube::~ThingCube void   )  [virtual]
 

destructor


Member Function Documentation

float ThingCube::getSize  ) 
 

get the size of the cube

Returns:
size of the cube

bool ThingCube::isSolid  ) 
 

returns true if the cube is rendered solid

Returns:
true if the cube is rendered solid

void ThingCube::render  )  [virtual]
 

write the corresponding openGL code to render the cube

Reimplemented from Thing.

void ThingCube::setSize float  new_size  ) 
 

set the size of the cube

Parameters:
new size of the cube

void ThingCube::switchWireSolid  ) 
 

switches between solid and wire rendering of the cube


Member Data Documentation

float ThingCube::size [private]
 

bool ThingCube::solid [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:33 2005 for Loud and Proud by doxygen 1.3.8