![]() |
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 |
virtual void | setPosition (const FXVec3f &pos) |
const FXVec3f & | getPosition () 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) |
See also:
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 void FX::FXGLShape::bounds | ( | FXRangef & | box | ) | [virtual] |
virtual void FX::FXGLShape::draw | ( | FXGLViewer * | viewer | ) | [virtual] |
virtual void FX::FXGLShape::hit | ( | FXGLViewer * | viewer | ) | [virtual] |
virtual FXGLObject* FX::FXGLShape::copy | ( | ) | [virtual] |
Copy this object.
Reimplemented from FX::FXGLObject.
Reimplemented in FX::FXGLCone, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLSphere, and FX::FXGLTriangleMesh.
virtual FXbool FX::FXGLShape::canDrag | ( | ) | const [virtual] |
virtual FXbool FX::FXGLShape::canDelete | ( | ) | const [virtual] |
void FX::FXGLShape::setTipText | ( | const FXString & | text | ) | [inline] |
Set the tool tip message for this object.
const FXString& FX::FXGLShape::getTipText | ( | ) | const [inline] |
Get the tool tip message for this object.
virtual void FX::FXGLShape::setPosition | ( | const FXVec3f & | pos | ) | [virtual] |
Set the position.
const FXVec3f& FX::FXGLShape::getPosition | ( | ) | const [inline] |
Get the position.
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 void FX::FXGLShape::save | ( | FXStream & | store | ) | const [virtual] |
Save shape to a stream.
Reimplemented from FX::FXObject.
Reimplemented in FX::FXGLCone, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLSphere, and FX::FXGLTriangleMesh.
virtual void FX::FXGLShape::load | ( | FXStream & | store | ) | [virtual] |
Load shape from a stream.
Reimplemented from FX::FXObject.
Reimplemented in FX::FXGLCone, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLSphere, and FX::FXGLTriangleMesh.
![]() |