#include <Torus.h>
Inheritance diagram for Torus:

Public Member Functions | |
| Torus (double inner_radius, double outer_radius, int n_sides, int n_rings) | |
| ~Torus () | |
| void | Draw () |
| double | GetBoundingRadius () |
| BoundingBox | GetBoundingBox () |
Private Member Functions | |
| Torus () | |
Private Attributes | |
| double | inner_radius |
| double | outer_radius |
| int | n_sides |
| int | n_rings |
A simple torus that uses GLUT to draw itself.
Definition at line 17 of file Torus.h.
|
||||||||||||||||||||
|
Constuctor: Brings the object into a consistent state.
|
|
|
Destructor. |
|
|
Hide the default constructor. |
|
|
Implementation of the Draw routine. Draws a torus using GLUT. Reimplemented from RawObject. |
|
|
Implementation of the GetBoundingBox routine. Reimplemented from RawObject. |
|
|
Implementation of the GetBoundingRadius routine. Reimplemented from RawObject. |
|
|
Internally stores the inner_radius. |
|
|
Internally stores the number of rings. |
|
|
Internally stores the number of sides. |
|
|
Internally stores the outer_radius. |
1.4.6-NO