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

FX::FXGLObject Class Reference

Basic OpenGL object. More...

#include <FXGLObject.h>

Inheritance diagram for FX::FXGLObject:

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

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 FXGLObjectcopy ()
virtual FXGLObjectidentify (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 ()

Detailed Description

Basic OpenGL object.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_LAST  Leaving ample room for FXGLViewer subclasses.


Constructor & Destructor Documentation

FX::FXGLObject::FXGLObject  )  [inline]
 

Constructors.

FX::FXGLObject::FXGLObject const FXGLObject orig  )  [inline]
 

Copy constructor.

virtual FX::FXGLObject::~FXGLObject  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXGLObject::bounds FXRangef box  )  [virtual]
 

Called by the viewer to get bounds for this object.

Reimplemented in FX::FXGLGroup, FX::FXGLPoint, FX::FXGLLine, and FX::FXGLShape.

virtual void FX::FXGLObject::draw FXGLViewer viewer  )  [virtual]
 

Draw this object in a viewer.

Reimplemented in FX::FXGLGroup, FX::FXGLPoint, FX::FXGLLine, and FX::FXGLShape.

virtual void FX::FXGLObject::hit FXGLViewer viewer  )  [virtual]
 

Draw this object for hit-testing purposes.

Reimplemented in FX::FXGLGroup, FX::FXGLPoint, FX::FXGLLine, and FX::FXGLShape.

virtual FXGLObject* FX::FXGLObject::copy  )  [virtual]
 

Copy this object.

Reimplemented in FX::FXGLCone, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLGroup, FX::FXGLPoint, FX::FXGLLine, FX::FXGLShape, FX::FXGLSphere, and FX::FXGLTriangleMesh.

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.

Copyright © 1997-2005 Jeroen van der Zijp