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

FX::FXGLShape Class Reference

#include <FXGLShape.h>

Inheritance diagram for FX::FXGLShape:

FX::FXGLObject FX::FXObject FX::FXGLCone FX::FXGLCube FX::FXGLCylinder FX::FXGLSphere FX::FXGLTriangleMesh List of all members.

Public Methods

 FXGLShape (FXfloat x, FXfloat y, FXfloat z, FXuint opts)
 Construct with specified origin and options.

 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.

 FXGLShape (const FXGLShape &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 FXGLObjectcopy ()
 Copy this object.

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.

void setTipText (const FXString &text)
 Set the tool tip message for this object.

const FXStringgetTipText () const
 Get the tool tip message for this object.

void setMaterial (FXint side, const FXMaterial &mtl)
 Set the material for specified side (where side = 0 or 1).

void getMaterial (FXint side, FXMaterial &mtl) const
 Get the material for specified side (where side = 0 or 1).

virtual void save (FXStream &store) const
 Save shape to a stream.

virtual void load (FXStream &store)
 Load shape from a stream.


Detailed Description

OpenGL Shape Object

See also: