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

FX::FXGLCone Class Reference

OpenGL Cone Object. More...

#include <FXGLCone.h>

Inheritance diagram for FX::FXGLCone:

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

Public Member Functions

 FXGLCone (FXfloat x, FXfloat y, FXfloat z, FXfloat h=1.0f, FXfloat r=1.0f)
 FXGLCone (FXfloat x, FXfloat y, FXfloat z, FXfloat h, FXfloat r, const FXMaterial &mtl)
 FXGLCone (const FXGLCone &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 ~FXGLCone ()

Public Attributes

FXfloat height
FXfloat radius

Detailed Description

OpenGL Cone Object.


Constructor & Destructor Documentation

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

Construct with specified origin, height and radius.

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

Construct with specified origin, height, radius and material.

FX::FXGLCone::FXGLCone const FXGLCone orig  ) 
 

Copy constructor.

virtual FX::FXGLCone::~FXGLCone  )  [virtual]
 

Destroy.


Member Function Documentation

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

Copy this object.

Reimplemented from FX::FXGLShape.

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

Change radius.

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

Change height.

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

Save to a stream.

Reimplemented from FX::FXGLShape.

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

Load from a stream.

Reimplemented from FX::FXGLShape.

Copyright © 1997-2004 Jeroen van der Zijp