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

FX::FXGLCube Class Reference

#include <FXGLCube.h>

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

Public Member Functions

 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w=1.0f, FXfloat h=1.0f, FXfloat d=1.0f)
 
 FXGLCube (FXfloat x, FXfloat y, FXfloat z, FXfloat w, FXfloat h, FXfloat d, const FXMaterial &mtl)
 
 FXGLCube (const FXGLCube &orig)
 
virtual FXGLObject * copy ()
 
void setWidth (FXfloat w)
 
FXfloat getWidth () const
 
void setHeight (FXfloat h)
 
FXfloat getHeight () const
 
void setDepth (FXfloat d)
 
FXfloat getDepth () const
 
virtual void save (FXStream &store) const
 
virtual void load (FXStream &store)
 
virtual ~FXGLCube ()
 
- 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 width
 
FXfloat height
 
FXfloat depth
 

Additional Inherited Members

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

Detailed Description

OpenGL Cube Object.

Constructor & Destructor Documentation

FX::FXGLCube::FXGLCube ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  w = 1.0f,
FXfloat  h = 1.0f,
FXfloat  d = 1.0f 
)

Construct with specified origin, width, height and depth.

FX::FXGLCube::FXGLCube ( FXfloat  x,
FXfloat  y,
FXfloat  z,
FXfloat  w,
FXfloat  h,
FXfloat  d,
const FXMaterial &  mtl 
)

Construct with specified origin, width, height, depth and material.

FX::FXGLCube::FXGLCube ( const FXGLCube &  orig)

Copy constructor.

virtual FX::FXGLCube::~FXGLCube ( )
virtual

Destroy.

Member Function Documentation

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

Copy this object.

Reimplemented from FX::FXGLShape.

void FX::FXGLCube::setWidth ( FXfloat  w)
inline

Change width.

FXfloat FX::FXGLCube::getWidth ( ) const
inline
void FX::FXGLCube::setHeight ( FXfloat  h)
inline

Change height.

FXfloat FX::FXGLCube::getHeight ( ) const
inline
void FX::FXGLCube::setDepth ( FXfloat  d)
inline

Change depth.

FXfloat FX::FXGLCube::getDepth ( ) const
inline
virtual void FX::FXGLCube::save ( FXStream &  store) const
virtual

Save to a stream.

Reimplemented from FX::FXGLShape.

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

Load from a stream.

Reimplemented from FX::FXGLShape.

Member Data Documentation

FXfloat FX::FXGLCube::width
FXfloat FX::FXGLCube::height
FXfloat FX::FXGLCube::depth

Copyright © 1997-2005 Jeroen van der Zijp