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

FX::FXGLSphere Class Reference

#include <FXGLSphere.h>

Inheritance diagram for FX::FXGLSphere:
FX::FXGLShape FX::FXGLObject FX::FXObject

Public Member Functions

 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r=1.0f)
 
 FXGLSphere (FXfloat x, FXfloat y, FXfloat z, FXfloat r, const FXMaterial &mtl)
 
 FXGLSphere (const FXGLSphere &orig)
 
virtual FXGLObject * copy ()
 
void setRadius (FXfloat r)
 
FXfloat getRadius () const
 
void setSlices (FXint s)
 
FXint getSlices () const
 
void setStacks (FXint s)
 
FXint getStacks () const
 
virtual void save (FXStream &store) const
 
virtual void load (FXStream &store)
 
virtual ~FXGLSphere ()
 
- Public Member Functions inherited from FX::FXGLShape
 FXGLShape (FXfloat x, FXfloat y, FXfloat z, FXuint opts)
 
 FXGLShape (FXfloat x, FXfloat y, FXfloat z, FXuint opts, const FXMaterial &front, const FXMaterial &back)
 
 FXGLShape (const FXGLShape &orig)
 
virtual void bounds (FXRangef &box)
 
virtual void draw (FXGLViewer *viewer)
 
virtual void hit (FXGLViewer *viewer)
 
virtual FXbool canDrag () const
 
virtual FXbool canDelete () const
 
virtual FXbool drag (FXGLViewer *viewer, FXint fx, FXint fy, FXint tx, FXint ty)
 
void setTipText (const FXString &text)
 
const FXString & getTipText () const
 
void setMaterial (FXint side, const FXMaterial &mtl)
 
void getMaterial (FXint side, FXMaterial &mtl) const
 
- Public Member Functions inherited from FX::FXGLObject
 FXGLObject ()
 
 FXGLObject (const FXGLObject &orig)
 
virtual FXGLObject * identify (FXuint *path)
 
virtual ~FXGLObject ()
 
- Public Member Functions inherited from FX::FXObject
virtual long onDefault (FXObject *, FXSelector, void *)
 
const FXchar * getClassName () const
 
bool isMemberOf (const FXMetaClass *metaclass) const
 
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 
virtual ~FXObject ()
 

Public Attributes

FXfloat radius
 
FXint slices
 
FXint stacks
 

Additional Inherited Members

- Public Types inherited from FX::FXGLObject
enum  { ID_LAST =10000 }
 

Detailed Description

OpenGL Sphere Object.

Constructor & Destructor Documentation

FX::FXGLSphere::FXGLSphere ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  r = 1.0f 
)

Construct with specified origin and radius.

FX::FXGLSphere::FXGLSphere ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  r,
const FXMaterial &  mtl 
)

Construct with specified origin, radius and material.

FX::FXGLSphere::FXGLSphere ( const FXGLSphere &  orig)

Copy constructor.

virtual FX::FXGLSphere::~FXGLSphere ( )
virtual

Destroy.

Member Function Documentation

virtual FXGLObject* FX::FXGLSphere::copy ( )
virtual

Copy this object.

Reimplemented from FX::FXGLShape.

void FX::FXGLSphere::setRadius ( FXfloat  r)
inline

Change radius.

FXfloat FX::FXGLSphere::getRadius ( ) const
inline
void FX::FXGLSphere::setSlices ( FXint  s)
inline

Change slices.

FXint FX::FXGLSphere::getSlices ( ) const
inline
void FX::FXGLSphere::setStacks ( FXint  s)
inline

Change stacks.

FXint FX::FXGLSphere::getStacks ( ) const
inline
virtual void FX::FXGLSphere::save ( FXStream &  store) const
virtual

Save to a stream.

Reimplemented from FX::FXGLShape.

virtual void FX::FXGLSphere::load ( FXStream &  store)
virtual

Load from a stream.

Reimplemented from FX::FXGLShape.

Member Data Documentation

FXfloat FX::FXGLSphere::radius
FXint FX::FXGLSphere::slices
FXint FX::FXGLSphere::stacks

Copyright © 1997-2005 Jeroen van der Zijp