csMeshObject Class Reference
This is an abstract implementation of iMeshObject. More...
#include <meshobjtmpl.h>
Inheritance diagram for csMeshObject:

Public Methods | |
csMeshObject (iEngine *engine) | |
Constructor. | |
virtual | ~csMeshObject () |
Destructor. | |
virtual iMeshObjectFactory * | GetFactory () const=0 |
See imesh/object.h for specification. | |
virtual bool | DrawTest (iRenderView *rview, iMovable *movable) |
See imesh/object.h for specification. | |
virtual csRenderMesh ** | GetRenderMeshes (int &num) |
See imesh/object.h for specification. | |
virtual bool | Draw (iRenderView *rview, iMovable *movable, csZBufMode zbufMode)=0 |
See imesh/object.h for specification. | |
virtual void | SetVisibleCallback (iMeshObjectDrawCallback *cb) |
See imesh/object.h for specification. | |
virtual iMeshObjectDrawCallback * | GetVisibleCallback () const |
See imesh/object.h for specification. | |
virtual void | NextFrame (csTicks current_time, const csVector3 &pos) |
See imesh/object.h for specification. | |
virtual void | HardTransform (const csReversibleTransform &t) |
See imesh/object.h for specification. | |
virtual bool | SupportsHardTransform () const |
See imesh/object.h for specification. | |
virtual bool | HitBeamOutline (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr) |
See imesh/object.h for specification. | |
virtual bool | HitBeamObject (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr, int *polygon_idx=0) |
See imesh/object.h for specification. | |
virtual void | SetLogicalParent (iBase *logparent) |
See imesh/object.h for specification. | |
virtual iBase * | GetLogicalParent () const |
See imesh/object.h for specification. | |
virtual iObjectModel * | GetObjectModel () |
See imesh/object.h for specification. | |
virtual bool | SetColor (const csColor &color) |
See imesh/object.h for specification. | |
virtual bool | GetColor (csColor &color) const |
See imesh/object.h for specification. | |
virtual bool | SetMaterialWrapper (iMaterialWrapper *material) |
See imesh/object.h for specification. | |
virtual iMaterialWrapper * | GetMaterialWrapper () const |
See imesh/object.h for specification. | |
virtual void | InvalidateMaterialHandles () |
see imesh/object.h for specification. | |
virtual void | PositionChild (iMeshObject *child, csTicks current_time) |
see imesh/object.h for specification. | |
virtual void | GetObjectBoundingBox (csBox3 &bbox, int type) |
See igeom/objmodel.h for specification. | |
virtual void | GetRadius (csVector3 &radius, csVector3 ¢er) |
See igeom/objmodel.h for specification. | |
Protected Methods | |
void | WantToDie () |
Tell the engine that this object wants to be deleted. | |
Protected Attributes | |
csRef< iMeshObjectDrawCallback > | VisCallback |
the drawing callback | |
iBase * | LogParent |
logical parent (usually the wrapper object from the engine) | |
iEngine * | Engine |
pointer to the engine if available (@ temporary) |
Detailed Description
This is an abstract implementation of iMeshObject.It can be used to write custom mesh object implementations more easily. Currently it supports the following common functions of mesh objects:
- Implementation of iMeshObject
- Implementation of iObjectModel
- Storing a "visible callback"
- Storing a logical parent
- Storing object model properties
- Default implementation of most methods
Definition at line 60 of file meshobjtmpl.h.
Constructor & Destructor Documentation
|
Constructor.
|
|
Destructor.
|
Member Function Documentation
|
See imesh/object.h for specification. There is no default implementation for this method. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation does nothing and always returns true. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation does not support a base color. Implements iMeshObject. |
|
See imesh/object.h for specification. There is no default implementation for this method. Implements iMeshObject. |
|
See imesh/object.h for specification. This function is handled completely in csMeshObject. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation does not support a material. Implements iMeshObject. |
|
See igeom/objmodel.h for specification. The default implementation returns an infinite bounding box. |
|
See imesh/object.h for specification.
Implements iMeshObject. Definition at line 175 of file meshobjtmpl.h. |
|
See igeom/objmodel.h for specification. The default implementation returns an infinite radius. |
|
See imesh/object.h for specification. The default implementation does nothing and always returns 0. @@ Note: in future it would be better that the default implementation does nothing as this function has to be implemented by mesh objects. Implements iMeshObject. Definition at line 102 of file meshobjtmpl.h. |
|
See imesh/object.h for specification. This function is handled completely in csMeshObject. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation does nothing. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation will always return a miss. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation will always return a miss. Implements iMeshObject. |
|
see imesh/object.h for specification. The default implementation does nothing. Implements iMeshObject. Definition at line 205 of file meshobjtmpl.h. |
|
See imesh/object.h for specification. The default implementation does nothing. Implements iMeshObject. |
|
see imesh/object.h for specification. The default implementation does nothing. Implements iMeshObject. Definition at line 211 of file meshobjtmpl.h. References csTicks. |
|
See imesh/object.h for specification. The default implementation does not support a base color. Implements iMeshObject. |
|
See imesh/object.h for specification. This function is handled completely in csMeshObject. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation does not support a material. Implements iMeshObject. |
|
See imesh/object.h for specification. This function is handled completely in csMeshObject. The actual implementation just has to use the VisCallback variable to perform the callback. Implements iMeshObject. |
|
See imesh/object.h for specification. The default implementation returns false. Implements iMeshObject. |
|
Tell the engine that this object wants to be deleted.
|
Member Data Documentation
|
pointer to the engine if available (@ temporary) @ Definition at line 70 of file meshobjtmpl.h. |
|
logical parent (usually the wrapper object from the engine)
Definition at line 67 of file meshobjtmpl.h. |
|
the drawing callback
Definition at line 64 of file meshobjtmpl.h. |
The documentation for this class was generated from the following file:
- cstool/meshobjtmpl.h
Generated for Crystal Space by doxygen 1.2.18