FX::FXGLShape Class Reference

#include <FXGLShape.h>

Inheritance diagram for FX::FXGLShape:

Inheritance graph
[legend]

List of all members.


Detailed Description

OpenGL Shape Object.

Public Types

enum  {
  ID_SHADEOFF, ID_SHADEON, ID_SHADESMOOTH, ID_TOGGLE_SIDED,
  ID_TOGGLE_CULLING, ID_STYLE_POINTS, ID_STYLE_WIREFRAME, ID_STYLE_SURFACE,
  ID_STYLE_BOUNDINGBOX, ID_FRONT_MATERIAL, ID_BACK_MATERIAL, ID_LAST
}
enum  { ID_LAST }

Public Member Functions

long onDNDDrop (FXObject *, FXSelector, void *)
long onDNDMotion (FXObject *, FXSelector, void *)
long onQueryTip (FXObject *, FXSelector, void *)
long onCmdShadeOff (FXObject *, FXSelector, void *)
long onUpdShadeOff (FXObject *, FXSelector, void *)
long onCmdShadeOn (FXObject *, FXSelector, void *)
long onUpdShadeOn (FXObject *, FXSelector, void *)
long onCmdShadeSmooth (FXObject *, FXSelector, void *)
long onUpdShadeSmooth (FXObject *, FXSelector, void *)
long onCmdFrontMaterial (FXObject *, FXSelector, void *)
long onUpdFrontMaterial (FXObject *, FXSelector, void *)
long onCmdBackMaterial (FXObject *, FXSelector, void *)
long onUpdBackMaterial (FXObject *, FXSelector, void *)
long onCmdDrawingStyle (FXObject *, FXSelector, void *)
long onUpdDrawingStyle (FXObject *, FXSelector, void *)
 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)
FXuint getOptions () const
void setOptions (FXuint opts)
void setTipText (const FXString &text)
const FXStringgetTipText () const
void setMaterial (FXint side, const FXMaterial &mtl)
void getMaterial (FXint side, FXMaterial &mtl) const
const FXVec3fgetPosition () const
void setPosition (const FXVec3f &pos)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual FXGLObjectidentify (FXuint *path)
virtual long onDefault (FXObject *, FXSelector, void *)
const FXchar * getClassName () const
bool isMemberOf (const FXMetaClass *metaclass) const
virtual long tryHandle (FXObject *sender, FXSelector sel, void *ptr)
QTransString tr (const char *text, const char *hint=0)
virtual void * getPythonObject () const
virtual void decouplePythonObject () const

Protected Member Functions

virtual void drawshape (FXGLViewer *)
void drawbox ()
void drawhandles ()

Protected Attributes

FXVec3f position
FXMaterial material [2]
FXRangef range
FXuint options
FXString tip

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.

Reimplemented in FX::FXGLVertices.

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

Draw this object in a viewer.

Reimplemented from FX::FXGLObject.

Reimplemented in FX::FXGLVertices.

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

Draw this object for hit-testing purposes.

Reimplemented from FX::FXGLObject.

Reimplemented in FX::FXGLVertices.

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

Copy this object.

Reimplemented from FX::FXGLObject.

Reimplemented in FX::FXGLCone, FX::FXGLCube, FX::FXGLCylinder, FX::FXGLSphere, FX::FXGLTriangleMesh, and FX::FXGLVertices.

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.

FXuint FX::FXGLShape::getOptions (  )  const [inline]

Gets the options.

void FX::FXGLShape::setOptions ( FXuint  opts  )  [inline]

Sets the options.

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

Set the tool tip message for this object.

const 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).

const FXVec3f& FX::FXGLShape::getPosition (  )  const [inline]

Get the origin of the object.

void FX::FXGLShape::setPosition ( const FXVec3f pos  ) 

Set the origin of the object.

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, FX::FXGLTriangleMesh, and FX::FXGLVertices.

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, FX::FXGLTriangleMesh, and FX::FXGLVertices.

virtual FXGLObject* FX::FXGLObject::identify ( FXuint *  path  )  [virtual, inherited]

Identify sub-object given path.

Reimplemented in FX::FXGLGroup.

virtual long FX::FXObject::onDefault ( FXObject ,
FXSelector  ,
void *   
) [virtual, inherited]

Called for unhandled messages.

Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.

const FXchar* FX::FXObject::getClassName (  )  const [inherited]

Get class name of some object.

bool FX::FXObject::isMemberOf ( const FXMetaClass metaclass  )  const [inherited]

Check if object is member of metaclass.

virtual long FX::FXObject::tryHandle ( FXObject sender,
FXSelector  sel,
void *  ptr 
) [virtual, inherited]

Try handle message safely.

QTransString FX::FXObject::tr ( const char *  text,
const char *  hint = 0 
) [inherited]

Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)

virtual void* FX::FXObject::getPythonObject (  )  const [inline, virtual, inherited]

Returns the python object representing this instance (if created in python).

virtual void FX::FXObject::decouplePythonObject (  )  const [inline, virtual, inherited]

Causes decoupling of python object from this object (deletes self).


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:59:59 2008 for TnFOX by doxygen v1.5.6