![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
OpenGL Cylinder Object. More...
#include <FXGLCylinder.h>
Public Member Functions | |
| FXGLCylinder (FXfloat x, FXfloat y, FXfloat z, FXfloat h=1.0f, FXfloat r=1.0f) | |
| Construct with specified origin, height and radius. | |
| FXGLCylinder (FXfloat x, FXfloat y, FXfloat z, FXfloat h, FXfloat r, const FXMaterial &mtl) | |
| Construct with specified origin, height, radius and material. | |
| FXGLCylinder (const FXGLCylinder &orig) | |
| Copy constructor. | |
| virtual FXGLObject * | copy () |
| Copy this object. | |
| virtual void | setRadius (FXfloat r) |
| Change radius. | |
| FXfloat | getRadius () const |
| virtual void | setHeight (FXfloat h) |
| Change height. | |
| FXfloat | getHeight () const |
| virtual void | save (FXStream &store) const |
| Save to a stream. | |
| virtual void | load (FXStream &store) |
| Load from a stream. | |
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 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) | |
Public Member Functions inherited from FX::FXGLObject | |
| FXGLObject () | |
| Constructors. | |
| FXGLObject (const FXGLObject &orig) | |
| Copy constructor. | |
| virtual FXGLObject * | identify (FXuint *path) |
| Identify sub-object given path. | |
| virtual | ~FXGLObject () |
| Destructor. | |
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 | height |
| FXfloat | radius |
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 | { 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 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 |
OpenGL Cylinder Object.
|
|