![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXGLObject.h>
Public Types | |
enum | { ID_LAST = 10000 } |
Public Member Functions | |
FXGLObject () | |
FXGLObject (const FXGLObject &orig) | |
virtual void | bounds (FXRangef &box) |
virtual void | draw (FXGLViewer *viewer) |
virtual void | hit (FXGLViewer *viewer) |
virtual FXGLObject * | copy () |
virtual FXGLObject * | identify (FXuint *path) |
virtual FXbool | canDrag () const |
virtual FXbool | canDelete () const |
virtual FXbool | drag (FXGLViewer *viewer, FXint fx, FXint fy, FXint tx, FXint ty) |
virtual | ~FXGLObject () |
Basic OpenGL object.
anonymous enum |
ID_LAST |
Leaving ample room for FXGLViewer subclasses. |
FX::FXGLObject::FXGLObject | ( | ) | [inline] |
Constructors.
FX::FXGLObject::FXGLObject | ( | const FXGLObject & | orig | ) | [inline] |
Copy constructor.
virtual FX::FXGLObject::~FXGLObject | ( | ) | [inline, virtual] |
Destructor.
virtual void FX::FXGLObject::bounds | ( | FXRangef & | box | ) | [virtual] |
Called by the viewer to get bounds for this object.
Reimplemented in FX::FXGLLine, FX::FXGLPoint, FX::FXGLGroup, and FX::FXGLShape.
virtual void FX::FXGLObject::draw | ( | FXGLViewer * | viewer | ) | [virtual] |
Draw this object in a viewer.
Reimplemented in FX::FXGLLine, FX::FXGLPoint, FX::FXGLGroup, and FX::FXGLShape.
virtual void FX::FXGLObject::hit | ( | FXGLViewer * | viewer | ) | [virtual] |
Draw this object for hit-testing purposes.
Reimplemented in FX::FXGLLine, FX::FXGLPoint, FX::FXGLGroup, and FX::FXGLShape.
virtual FXGLObject* FX::FXGLObject::copy | ( | ) | [virtual] |
Copy this object.
Reimplemented in FX::FXGLLine, FX::FXGLPoint, FX::FXGLGroup, FX::FXGLShape, FX::FXGLTriangleMesh, FX::FXGLSphere, FX::FXGLCube, FX::FXGLCone, and FX::FXGLCylinder.
virtual FXGLObject* FX::FXGLObject::identify | ( | FXuint * | path | ) | [virtual] |
Identify sub-object given path.
Reimplemented in FX::FXGLGroup.
virtual FXbool FX::FXGLObject::canDrag | ( | ) | const [virtual] |
Return true if this object can be dragged around.
Reimplemented in FX::FXGLGroup, and FX::FXGLShape.
virtual FXbool FX::FXGLObject::canDelete | ( | ) | const [virtual] |
Return true if this object can be deleted from the scene.
Reimplemented in FX::FXGLShape.
virtual FXbool FX::FXGLObject::drag | ( | FXGLViewer * | viewer, |
FXint | fx, | ||
FXint | fy, | ||
FXint | tx, | ||
FXint | ty | ||
) | [virtual] |
Drag this object from one position to another.
Reimplemented in FX::FXGLGroup, and FX::FXGLShape.
![]() |