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

GlutCylinder Class Reference
[GLUT Master]

GLUT cylinder scene-graph node. More...

#include <shape.h>

Inheritance diagram for GlutCylinder:

Inheritance graph
Collaboration diagram for GlutCylinder:

Collaboration graph
List of all members.

Public Methods

 GlutCylinder (const bool solid=true, const GLdouble radius=1.0, const GLdouble height=1.0, const GLint slices=15, const GLint stacks=10, const GLint loops=5)

 ~GlutCylinder ()

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.

virtual bool povrayExport (std::ostream &os) const
 Export to POV format.

void position (const Vector &begin, const Vector &end, const double radius)
 Position the cylinder.

GLdouble & radius ()
 Cylinder radius.

GLdouble & height ()
 Cylinder length/height.

GLint & slices ()
 Cylinder slices.

GLint & stacks ()
 Cylinder stacks.

GLint & loops ()
 Cylinder loops.

const GLdouble & radius () const
 Cylinder radius.

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

const GLint & slices () const
 Cylinder slices.

const GLint & stacks () const
 Cylinder stacks.

const GLint & loops () const
 Cylinder loops.

Detailed Description

GLUT cylinder scene-graph node.

See GltShape for further information

Definition at line 176 of file shape.h.

Constructor & Destructor Documentation

GlutCylinder::GlutCylinder const bool    solid = true,
const GLdouble    radius = 1.0,
const GLdouble    height = 1.0,
const GLint    slices = 15,
const GLint    stacks = 10,
const GLint    loops = 5


solid  Display as solid or wireframe
radius  Radius of cylinder
height  Height of cylinder
slices  Slices
stacks  Stacks
loops  Loops

Definition at line 295 of file shape.cpp.

Member Function Documentation

void GlutCylinder::position const Vector   begin,
const Vector   end,
const double    radius

Position the cylinder.

begin  First end-point of cylinder
end  Second end-point of cylinder
radius  Radius of cylinder

Definition at line 377 of file shape.cpp.

References Vector::length(), matrixOrient(), matrixTranslate(), Vector::normalize(), radius(), GltShape::transformation(), xProduct(), and Vector::z().

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