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

GlutCone Class Reference
[GLUT Master]

GLUT cone scene-graph node. More...

#include <shape.h>

Inheritance diagram for GlutCone:

Inheritance graph
[legend]
Collaboration diagram for GlutCone:

Collaboration graph
[legend]
List of all members.

Public Methods

 GlutCone (const bool solid=true, const GLdouble base=1.0, const GLdouble height=1.0, const GLint slices=15, const GLint stacks=10)
 Constructor.

 ~GlutCone ()
 Destructor.

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

virtual GLdouble volume () const
 Get the volume of the shape.

virtual void boundingBox (BoundingBox &box) const
 Get an axis aligned bounding box, unavailable by default.

GLdouble & base ()
 Cone base radius.

GLdouble & height ()
 Cone height/length.

GLint & slices ()
 Cone slices.

GLint & stacks ()
 Cone stacks.

const GLdouble & base () const
 Cone base radius.

const GLdouble & height () const
 Cone height/length.

const GLint & slices () const
 Cone slices.

const GLint & stacks () const
 Cone stacks.


Detailed Description

GLUT cone scene-graph node.

Note:
See GltShape for further information

Definition at line 252 of file shape.h.


Constructor & Destructor Documentation

GlutCone::GlutCone const bool    solid = true,
const GLdouble    base = 1.0,
const GLdouble    height = 1.0,
const GLint    slices = 15,
const GLint    stacks = 10
 

Constructor.

Parameters:
solid  Display as solid or wireframe
base  Radius of cone base
height  Height of cone
slices  Slices
stacks  Stacks

Definition at line 419 of file shape.cpp.


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