Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXGLObject Class Reference

Basic OpenGL object.

#include <FXGLObject.h>

Inheritance diagram for FXGLObject:

FXObject FXGLGroup FXGLLine FXGLPoint FXGLShape FXGLCone FXGLCube FXGLCylinder FXGLSphere FXGLTriangleMesh List of all members.

Public Types

enum  { ID_LAST = 10000 }

Public Methods

 FXGLObject ()
 Constructors.

 FXGLObject (const FXGLObject &orig)
 Copy constructor.

virtual void bounds (FXRange &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 FXGLObject * identify (FXuint *path)
 Identify sub-object given path.

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.

virtual ~FXGLObject ()
 Destructor.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_LAST  Leaving ample room for FXGLViewer subclasses.