OpenGL Shape Object
Inheritance:
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 FXGLObject* copy()
- 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
-
FXString getTipText() 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
Public Methods
-
virtual FXGLObject* identify(FXuint* path)
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
Documentation
OpenGL Shape Object
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 FXGLObject* copy()
- 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
FXString getTipText() 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
- Direct child classes:
- FXGLTriangleMesh
FXGLSphere
FXGLCylinder
FXGLCube
FXGLCone
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.