![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
OpenGL Shape Object. More...
#include <FXGLShape.h>
Public Types | |
| enum | { ID_SHADEOFF = FXGLObject::ID_LAST, 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 } |
Public Member Functions | |
| 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 FXGLObject * | copy () |
| Copy this object. | |
| 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 FXString & | getTipText () const |
| Get the tool tip message for this object. | |
| virtual void | setPosition (const FXVec3f &pos) |
| Set the position. | |
| const FXVec3f & | getPosition () 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) | |
| virtual void | save (FXStream &store) const |
| Save shape to a stream. | |
| virtual void | load (FXStream &store) |
| Load shape from a stream. | |
Protected Member Functions | |
| virtual void | drawshape (FXGLViewer *) |
| void | drawbox () |
| void | drawhandles () |
Protected Attributes | |
| FXVec3f | position |
| FXMaterial | material [2] |
| FXRangef | range |
| FXuint | options |
| FXString | tip |
OpenGL Shape Object.
|
|