Cube Class Reference

A simple cube. More...

#include <Cube.h>

Inheritance diagram for Cube:

RawObject List of all members.

Public Member Functions

 Cube (double size)
 ~Cube ()
void Draw ()
double GetBoundingRadius ()
BoundingBox GetBoundingBox ()

Private Member Functions

 Cube ()

Private Attributes

double size

Detailed Description

A simple cube.

A simple cube that uses GLUT to draw itself.

Definition at line 17 of file Cube.h.


Constructor & Destructor Documentation

Cube::Cube double  size  ) 
 

Constuctor: Brings the object into a consistent state and initializes its size.

Parameters:
size The size of the cube.

Definition at line 3 of file Cube.cpp.

Cube::~Cube  ) 
 

Destructor.

Definition at line 8 of file Cube.cpp.

Cube::Cube  )  [private]
 

Hide the default constructor.


Member Function Documentation

void Cube::Draw  )  [virtual]
 

Implementation of the Draw routine. Draws a cube using GLUT.

Reimplemented from RawObject.

Definition at line 13 of file Cube.cpp.

BoundingBox Cube::GetBoundingBox  )  [virtual]
 

Implementation of the GetBoundingBox routine.

Reimplemented from RawObject.

Definition at line 25 of file Cube.cpp.

double Cube::GetBoundingRadius  )  [virtual]
 

Implementation of the GetBoundingRadius routine.

Reimplemented from RawObject.

Definition at line 19 of file Cube.cpp.


Member Data Documentation

double Cube::size [private]
 

Size of the cube.

Definition at line 52 of file Cube.h.


Generated on Sun Jul 2 13:20:40 2006 for Demo by  doxygen 1.4.6-NO