FX::FXGLCube Class Reference

#include <FXGLCube.h>

Inheritance diagram for FX::FXGLCube:

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

Detailed Description

OpenGL Cube Object.

Definition at line 39 of file FXGLCube.h.

Public Types

 ID_SHADEOFF
 ID_SHADEON
 ID_SHADESMOOTH
 ID_TOGGLE_SIDED
 ID_TOGGLE_CULLING
 ID_STYLE_POINTS
 ID_STYLE_WIREFRAME
 ID_STYLE_SURFACE
 ID_STYLE_BOUNDINGBOX
 ID_FRONT_MATERIAL
 ID_BACK_MATERIAL
 ID_LAST
enum  {
  ID_SHADEOFF, ID_SHADEON, ID_SHADESMOOTH, ID_TOGGLE_SIDED,
  ID_TOGGLE_CULLING, ID_STYLE_POINTS, ID_STYLE_WIREFRAME, ID_STYLE_SURFACE,
  ID_STYLE_BOUNDINGBOX, ID_FRONT_MATERIAL, ID_BACK_MATERIAL, ID_LAST
}
enum  { ID_LAST }

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 FXGLObjectcopy ()
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 ()
long onDNDDrop (FXObject *, FXSelector, void *)
long onDNDMotion (FXObject *, FXSelector, void *)
long onQueryTip (FXObject *, FXSelector, void *)
long onCmdShadeOff (FXObject *, FXSelector, void *)
long onUpdShadeOff (FXObject *, FXSelector, void *)
long onCmdShadeOn (FXObject *, FXSelector, void *)
long onUpdShadeOn (FXObject *, FXSelector, void *)
long onCmdShadeSmooth (FXObject *, FXSelector, void *)
long onUpdShadeSmooth (FXObject *, FXSelector, void *)
long onCmdFrontMaterial (FXObject *, FXSelector, void *)
long onUpdFrontMaterial (FXObject *, FXSelector, void *)
long onCmdBackMaterial (FXObject *, FXSelector, void *)
long onUpdBackMaterial (FXObject *, FXSelector, void *)
long onCmdDrawingStyle (FXObject *, FXSelector, void *)
long onUpdDrawingStyle (FXObject *, FXSelector, void *)
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)
FXuint getOptions () const
void setOptions (FXuint opts)
void setTipText (const FXString &text)
const FXStringgetTipText () const
void setMaterial (FXint side, const FXMaterial &mtl)
void getMaterial (FXint side, FXMaterial &mtl) const
const FXVec3fgetPosition () const
void setPosition (const FXVec3f &pos)
virtual FXGLObjectidentify (FXuint *path)
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchargetClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Public Attributes

FXfloat width
FXfloat height
FXfloat depth

Protected Member Functions

 FXGLCube ()
virtual void drawshape (FXGLViewer *viewer)
void drawbox ()
void drawhandles ()

Protected Attributes

FXVec3f position
FXMaterial material [2]
FXRangef range
FXuint options
FXString tip


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:34:03 2009 for TnFOX by doxygen v1.4.7