proj home

Files   Classes   Functions   Hierarchy  

gobjgluCylinder Class Reference

Draw a cylinder. More...

#include <gobj.h>

Inheritance diagram for gobjgluCylinder:
Collaboration diagram for gobjgluCylinder:

List of all members.

Public Member Functions

 gobjgluCylinder (GLUquadricObj *&qobj_, GLdouble baseRadius_, GLdouble topRadius_, GLdouble height_, GLint slices_, GLint stacks_)
void draw ()
 Draw the object.

Public Attributes

GLUquadricObj *& qobj
GLdouble baseRadius
GLdouble topRadius
GLdouble height
GLint slices
GLint stacks


Detailed Description

Draw a cylinder.

Example
From http://in4k.untergrund.net/index.php?title=Mega_Small_(Almost_Free)_Geometry
gluCylinder (q, 0.4, 0.4, 0.8, 20, 20);  // cylinder
gluCylinder (q, 0.4, 0.4, 0.8, 4, 20);   // square tube
gluCylinder (q, 0.4, 0.4, 0.8, 3, 20);   // triangular tube
gluCylinder (q, 0.4, 0.4, 0.8, 6, 20);   // hexagonal tube
gluCylinder (q, 0.4, 0.0, 0.8, 20, 20);  // cone
gluCylinder (q, 0.4, 0.0, 0.8, 4, 20);   // square base pyramid
gluCylinder (q, 0.4, 0.0, 0.8, 3, 20);   // triangular based pyramid
gluCylinder (q, 0.4, 0.0, 0.8, 6, 20);   // hexagonal based pyramid

Definition at line 1368 of file gobj.h.


Constructor & Destructor Documentation

gobjgluCylinder::gobjgluCylinder ( GLUquadricObj *&  qobj_,
GLdouble  baseRadius_,
GLdouble  topRadius_,
GLdouble  height_,
GLint  slices_,
GLint  stacks_ 
) [inline]

Definition at line 1385 of file gobj.h.

01393     : qobj(qobj_), baseRadius(baseRadius_), 
01394     topRadius(topRadius_), height(height_),
01395     slices(slices_), stacks(stacks_) {}


Member Function Documentation

void gobjgluCylinder::draw (  )  [inline, virtual]

Draw the object.

Implements gobj.

Definition at line 1397 of file gobj.h.

References baseRadius, GOBJDEBUGCODE, height, qobj, slices, stacks, and topRadius.


Member Data Documentation

Definition at line 1374 of file gobj.h.

Referenced by draw(), and diskinttest::update03().

Definition at line 1378 of file gobj.h.

Referenced by draw(), and diskinttest::update03().

GLUquadricObj* & gobjgluCylinder::qobj

Definition at line 1372 of file gobj.h.

Referenced by draw().

Definition at line 1380 of file gobj.h.

Referenced by draw().

Definition at line 1382 of file gobj.h.

Referenced by draw().

Definition at line 1376 of file gobj.h.

Referenced by draw(), and diskinttest::update03().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:00 2011 for Chelton Evans Source by  doxygen 1.5.8