Icosahedron Class Reference

A simple icosahedron. More...

#include <Icosahedron.h>

Inheritance diagram for Icosahedron:

RawObject List of all members.

Public Member Functions

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

Private Member Functions

 Icosahedron ()

Private Attributes

double size
double reciprocal_size

Detailed Description

A simple icosahedron.

A simple Icosahedron that uses GLUT to draw itself.

Definition at line 17 of file Icosahedron.h.


Constructor & Destructor Documentation

Icosahedron::Icosahedron double  size  ) 
 

Constuctor: Brings the object into a consistent state.

Parameters:
size Size of the Icosahedron.

Definition at line 3 of file Icosahedron.cpp.

Icosahedron::~Icosahedron  ) 
 

Destuctor.

Definition at line 9 of file Icosahedron.cpp.

Icosahedron::Icosahedron  )  [private]
 

Hide the default constructor.


Member Function Documentation

void Icosahedron::Draw  )  [virtual]
 

Implementation of the Draw routine. Draws an icosahedron using GLUT.

Reimplemented from RawObject.

Definition at line 14 of file Icosahedron.cpp.

BoundingBox Icosahedron::GetBoundingBox  )  [virtual]
 

Implementation of the GetBoundingBox routine.

Reimplemented from RawObject.

Definition at line 31 of file Icosahedron.cpp.

double Icosahedron::GetBoundingRadius  )  [virtual]
 

Implementation of the GetBoundingRadius routine.

Reimplemented from RawObject.

Definition at line 26 of file Icosahedron.cpp.


Member Data Documentation

double Icosahedron::reciprocal_size [private]
 

1/size.

Definition at line 55 of file Icosahedron.h.

double Icosahedron::size [private]
 

Size of the icosahedron.

Definition at line 52 of file Icosahedron.h.


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