![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGLCylinder.h>
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 FXGLObject * | copy () |
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 |
OpenGL Cylinder Object.
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] |
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.
![]() |