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)
virtual ~FXGLCylinder ()

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.

virtual FX::FXGLCylinder::~FXGLCylinder  )  [virtual]
 


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.

FXfloat FX::FXGLCylinder::getRadius  )  const [inline]
 

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

Change height.

FXfloat FX::FXGLCylinder::getHeight  )  const [inline]
 

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.


Member Data Documentation

FXfloat FX::FXGLCylinder::height
 

FXfloat FX::FXGLCylinder::radius
 

Copyright © 1997-2005 Jeroen van der Zijp