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

FX::FXGLShape Class Reference

OpenGL Shape Object. More...

#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 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 FXGLObjectcopy ()
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)
FXString getTipText () 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)

Detailed Description

OpenGL Shape Object.

See also:


Constructor & Destructor Documentation

FX::FXGLShape::FXGLShape FXfloat  x,
FXfloat  y,
FXfloat  z,
FXuint  opts
 

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.


Member Function Documentation

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

Called by the viewer to get bounds for this object.

Reimplemented from FX::FXGLObject.

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

Draw this object in a viewer.

Reimplemented from FX::FXGLObject.

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

Draw this object for hit-testing purposes.

Reimplemented from FX::FXGLObject.

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]
 

Return true if this object can be dragged around.

Reimplemented from FX::FXGLObject.

virtual FXbool FX::FXGLShape::canDelete  )  const [virtual]
 

Return true if this object can be deleted from the scene.

Reimplemented from FX::FXGLObject.

virtual FXbool FX::FXGLShape::drag FXGLViewer viewer,
FXint  fx,
FXint  fy,
FXint  tx,
FXint  ty
[virtual]
 

Drag this object from one position to another.

Reimplemented from FX::FXGLObject.

void FX::FXGLShape::setTipText const FXString text  )  [inline]
 

Set the tool tip message for this object.

FXString FX::FXGLShape::getTipText  )  const [inline]
 

Get the tool tip message for this object.

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.

Copyright © 1997-2004 Jeroen van der Zijp