Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXGLCylinder Class Reference

OpenGL Cylinder Object. More...

#include <FXGLCylinder.h>

Inheritance diagram for FX::FXGLCylinder:

FX::FXGLShape FX::FXGLObject FX::FXObject List of all members.

Public Member Functions

 FXGLCylinder (FXfloat x, FXfloat y, FXfloat z, FXfloat h=1.0f, FXfloat r=1.0f)
 FXGLCylinder (FXfloat x, FXfloat y, FXfloat z, FXfloat h, FXfloat r, const FXMaterial &mtl)
 FXGLCylinder (const FXGLCylinder &orig)
virtual FXGLObjectcopy ()
void setRadius (FXfloat r)
FXfloat getRadius () const
void setHeight (FXfloat h)
FXfloat getHeight () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

Public Attributes

FXfloat height
FXfloat radius

Detailed Description

OpenGL Cylinder Object.


Constructor & Destructor Documentation

FX::FXGLCylinder::FXGLCylinder FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  h = 1.0f,
FXfloat  r = 1.0f
 

Construct with specified origin, height and radius.

FX::FXGLCylinder::FXGLCylinder FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  h,
FXfloat  r,
const FXMaterial &  mtl
 

Construct with specified origin, height, radius and material.

FX::FXGLCylinder::FXGLCylinder const FXGLCylinder orig  ) 
 

Copy constructor.


Member Function Documentation

virtual FXGLObject* FX::FXGLCylinder::copy  )  [virtual]
 

Copy this object.

Reimplemented from FX::FXGLShape.

void FX::FXGLCylinder::setRadius FXfloat  r  )  [inline]
 

Change radius.

void FX::FXGLCylinder::setHeight FXfloat  h  )  [inline]
 

Change height.

virtual void FX::FXGLCylinder::save FXStream store  )  const [virtual]
 

Save to a stream.

Reimplemented from FX::FXGLShape.

virtual void FX::FXGLCylinder::load FXStream store  )  [virtual]
 

Load from a stream.

Reimplemented from FX::FXGLShape.

Copyright © 1997-2004 Jeroen van der Zijp