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

FX::FXGLCube Class Reference

OpenGL Cube Object. More...

#include <FXGLCube.h>

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

List of all members.

Public Member Functions

 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.
 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.
 FXGLCube (const FXGLCube &orig)
 Copy constructor.
virtual FXGLObjectcopy ()
 Copy this object.
virtual void setWidth (FXfloat w)
 Change width.
FXfloat getWidth () const
virtual void setHeight (FXfloat h)
 Change height.
FXfloat getHeight () const
virtual void setDepth (FXfloat d)
 Change depth.
FXfloat getDepth () const
virtual void save (FXStream &store) const
 Save to a stream.
virtual void load (FXStream &store)
 Load from a stream.
virtual ~FXGLCube ()
- Public Member Functions inherited from FX::FXGLShape
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 *)
 FXGLShape (FXfloat x, FXfloat y, FXfloat z, FXuint opts)
 Construct with specified origin and options.
 FXGLShape (FXfloat x, FXfloat y, FXfloat z, FXuint opts, const FXMaterial &front, const FXMaterial &back)
 Construct with specified origin, options and front and back materials.
 FXGLShape (const FXGLShape &orig)
 Copy constructor.
virtual void bounds (FXRangef &box)
 Called by the viewer to get bounds for this object.
virtual void draw (FXGLViewer *viewer)
 Draw this object in a viewer.
virtual void hit (FXGLViewer *viewer)
 Draw this object for hit-testing purposes.
virtual FXbool canDrag () const
 Return true if this object can be dragged around.
virtual FXbool canDelete () const
 Return true if this object can be deleted from the scene.
virtual FXbool drag (FXGLViewer *viewer, FXint fx, FXint fy, FXint tx, FXint ty)
 Drag this object from one position to another.
void setTipText (const FXString &text)
 Set the tool tip message for this object.
const FXStringgetTipText () const
 Get the tool tip message for this object.
virtual void setPosition (const FXVec3f &pos)
 Set the position.
const FXVec3fgetPosition () const
 Get the position.
void setMaterial (FXint side, const FXMaterial &mtl)
 Set the material for specified side (where side = 0 or 1)
void getMaterial (FXint side, FXMaterial &mtl) const
 Get the material for specified side (where side = 0 or 1)
- Public Member Functions inherited from FX::FXGLObject
 FXGLObject ()
 FXGLObject (const FXGLObject &orig)
 Copy constructor.
virtual FXGLObjectidentify (FXuint *path)
 Identify sub-object given path.
virtual ~FXGLObject ()
- Public Member Functions inherited from FX::FXObject
const FXchar * getClassName () const
 Get class name of some object.
FXbool isMemberOf (const FXMetaClass *metaclass) const
 Check if object is member of metaclass.
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
 Try handle message safely, catching certain exceptions.
virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
virtual ~FXObject ()
 Virtual destructor.

Public Attributes

FXfloat width
FXfloat height
FXfloat depth

Protected Member Functions

virtual void drawshape (FXGLViewer *viewer)
- Protected Member Functions inherited from FX::FXGLShape
void drawbox ()
void drawhandles ()

Additional Inherited Members

- Public Types inherited from FX::FXGLShape
enum  {
- Public Types inherited from FX::FXGLObject
enum  { ID_LAST = 10000 }
- Protected Attributes inherited from FX::FXGLShape
FXVec3f position
FXMaterial material [2]
FXRangef range
FXuint options
FXString tip

Detailed Description

OpenGL Cube Object.

The documentation for this class was generated from the following file:

Copyright © 1997-2016 Jeroen van der Zijp