Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

GlutTorus Class Reference
[GLUT Master]

GLUT torus scene-graph node. More...

#include <shape.h>

Inheritance diagram for GlutTorus:

Inheritance graph
Collaboration diagram for GlutTorus:

Collaboration graph
List of all members.

Public Methods

 GlutTorus (const bool solid=true, const GLdouble innerRadius=0.5, const GLdouble outerRadius=1.0, const GLint nsides=10, const GLint rings=16)

 ~GlutTorus ()

virtual void draw () const
 Derived classes should supply this.

GLdouble & innerRadius ()
 Torus inner radius.

GLdouble & outerRadius ()
 Torus outer radius.

GLint & nsides ()
 Number of edges on each torus ring.

GLint & rings ()
 Number of rings around torus.

const GLdouble & innerRadius () const
 Torus inner radius.

const GLdouble & outerRadius () const
 Torus outer radius.

const GLint & nsides () const
 Number of edges on each torus ring.

const GLint & rings () const
 Number of rings around torus.

Detailed Description

GLUT torus scene-graph node.

See GltShape for further information

Definition at line 305 of file shape.h.

Constructor & Destructor Documentation

GlutTorus::GlutTorus const bool    solid = true,
const GLdouble    innerRadius = 0.5,
const GLdouble    outerRadius = 1.0,
const GLint    nsides = 10,
const GLint    rings = 16


solid  Display as solid or wireframe
innerRadius  Inner radius of torus
outerRadius  Outer radius of torus
nsides  Number of edges on each ring
rings  Number of rings around the torus

Definition at line 479 of file shape.cpp.

The documentation for this class was generated from the following files:
Generated on Tue Nov 5 11:11:48 2002 for GLT by doxygen1.2.18