proj home

Files   Classes   Functions   Hierarchy  

gobjMyDiskDraw Class Reference

#include <graphmisc.h>

Inheritance diagram for gobjMyDiskDraw:
Collaboration diagram for gobjMyDiskDraw:

List of all members.

Public Member Functions

 gobjMyDiskDraw ()
 gobjMyDiskDraw (floatc x_, floatc y_, floatc z_, gobjQuadric *d_)
 gobjMyDiskDraw (point3< double > x, gobjQuadric *d_)
 gobjMyDiskDraw (point3< float > x, gobjQuadric *d_)
void draw ()
 Draw the object.

Public Attributes

gobjQuadricd
float x
float y
float z


Detailed Description

Definition at line 855 of file graphmisc.h.


Constructor & Destructor Documentation

gobjMyDiskDraw::gobjMyDiskDraw (  )  [inline]

Definition at line 865 of file graphmisc.h.

00866     : d(0), x(0.0), y(0.0), z(0.0) {}

gobjMyDiskDraw::gobjMyDiskDraw ( floatc  x_,
floatc  y_,
floatc  z_,
gobjQuadric d_ 
) [inline]

Definition at line 869 of file graphmisc.h.

00875     : d(d_), x(x_), y(y_), z(z_) {}

gobjMyDiskDraw::gobjMyDiskDraw ( point3< double >  x,
gobjQuadric d_ 
) [inline]

Definition at line 878 of file graphmisc.h.

00882     : d(d_), x(x.x), y(x.y), z(x.z) {}

gobjMyDiskDraw::gobjMyDiskDraw ( point3< float >  x,
gobjQuadric d_ 
) [inline]

Definition at line 885 of file graphmisc.h.

00889     : d(d_), x(x.x), y(x.y), z(x.z) {}


Member Function Documentation

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

Draw the object.

Implements gobj.

Definition at line 891 of file graphmisc.h.

References d, GOBJDEBUGCODE, gobjQuadric::loops, gobjQuadric::quadric, gobjQuadric::radius, gobjQuadric::slices, and z.

00892   {
00893     GOBJDEBUGCODE
00894     assert(d!=0);
00895 
00896     glPushMatrix();
00897     glTranslatef(x,y,z);
00898     gluDisk(d->quadric,0.0,d->radius,d->slices,d->loops);
00899     glPopMatrix();
00900   }


Member Data Documentation

Definition at line 859 of file graphmisc.h.

Referenced by draw().

Definition at line 861 of file graphmisc.h.

Definition at line 862 of file graphmisc.h.

Definition at line 863 of file graphmisc.h.

Referenced by draw().


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

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