![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXGLShape.h>
Public Member Functions | |
| 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 FXGLObject * | copy () |
| 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 |
| virtual void | save (FXStream &store) const |
| virtual void | load (FXStream &store) |
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 () |
Additional Inherited Members | |
Public Types inherited from FX::FXGLObject | |
| enum | { ID_LAST =10000 } |
Construct with specified origin and options.
| FX::FXGLShape::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.
| FX::FXGLShape::FXGLShape | ( | const FXGLShape & | orig | ) |
Copy constructor.
|
virtual |
Called by the viewer to get bounds for this object.
Reimplemented from FX::FXGLObject.
|
virtual |
Draw this object in a viewer.
Reimplemented from FX::FXGLObject.
|
virtual |
Draw this object for hit-testing purposes.
Reimplemented from FX::FXGLObject.
|
virtual |
Copy this object.
Reimplemented from FX::FXGLObject.
Reimplemented in FX::FXGLTriangleMesh, FX::FXGLSphere, FX::FXGLCube, FX::FXGLCone, and FX::FXGLCylinder.
|
virtual |
Return true if this object can be dragged around.
Reimplemented from FX::FXGLObject.
|
virtual |
Return true if this object can be deleted from the scene.
Reimplemented from FX::FXGLObject.
|
virtual |
Drag this object from one position to another.
Reimplemented from FX::FXGLObject.
|
inline |
Set the tool tip message for this object.
|
inline |
Get the tool tip message for this object.
| void FX::FXGLShape::setMaterial | ( | FXint | side, |
| const FXMaterial & | mtl | ||
| ) |
Set the material for specified side (where side = 0 or 1)
| void FX::FXGLShape::getMaterial | ( | FXint | side, |
| FXMaterial & | mtl | ||
| ) | const |
Get the material for specified side (where side = 0 or 1)
|
virtual |
Save shape to a stream.
Reimplemented from FX::FXObject.
Reimplemented in FX::FXGLTriangleMesh, FX::FXGLSphere, FX::FXGLCube, FX::FXGLCone, and FX::FXGLCylinder.
|
virtual |
Load shape from a stream.
Reimplemented from FX::FXObject.
Reimplemented in FX::FXGLTriangleMesh, FX::FXGLSphere, FX::FXGLCube, FX::FXGLCone, and FX::FXGLCylinder.
|
|