This class provides an implementation of the CollModelManI interface.
More...
#include "CollisionModelMan_impl.hpp"
This class provides an implementation of the CollModelManI interface.
Frees the given collision model (taking reference counting into account if necessary).
- Parameters
-
CollisionModel | The collision model to be freed. |
Implements cf::ClipSys::CollModelManI.
const CollisionModelT * CollModelManImplT::GetCM |
( |
const std::string & |
FileName | ) |
|
|
overridevirtual |
Loads a collision model from the file specified by FileName.
If the collision model has been loaded before, reference counting is employed.
- Parameters
-
FileName | The name of the file to load the collision model from. |
- Returns
- (a pointer to) the collision model instance that has been loaded from the given file, or NULL on failure.
Implements cf::ClipSys::CollModelManI.
Creates a collision model from the given explicit mesh.
- Parameters
-
Width | The width of the mesh. |
Height | The height of the mesh. |
Mesh | The vertices of the mesh. |
Material | The material reported in collision results when a trace hit. |
MIN_NODE_SIZE | The minimum size (side length) that a node should not fall below. |
- Returns
- the matching collision model instance.
Implements cf::ClipSys::CollModelManI.
Creates a collision model from the given (axis-aligned) bounding-box.
- Parameters
-
BB | The bounding box to create a collision model for. |
Material | The material to use for the collision model. |
- Returns
- the desired collision model.
Implements cf::ClipSys::CollModelManI.
Creates another collision model from a given collision model.
a) If the given collision model has been created with other methods of this CollModelManI earlier, the implementation will simply increase the related reference counter and return the same pointer. b) If the given collision model has been created "externally" with some other means (e.g. direct instantiation of a concrete collision model class), the CollModelManI will create a record about it with a reference count of 1, assume that the original instance is not freed/deleted by the caller as long as it has a non-zero reference count, and will not attempt to delete the instance when the count finally drops to 0.
- Parameters
-
CollisionModel | The collision model to create another collision model from. |
- Returns
- a matching collision model instance.
Implements cf::ClipSys::CollModelManI.
const std::string & CollModelManImplT::GetFileName |
( |
const CollisionModelT * |
CollisionModel | ) |
const |
|
overridevirtual |
Returns the file name the given collision model has been loaded from (using the GetCM(const std::string& FileName) method).
- Parameters
-
CollisionModel | The collision model for which return the associated file name. |
- Returns
- the file name of the collision model, or "" (the empty string) if the model was created by another method.
Implements cf::ClipSys::CollModelManI.
unsigned long CollModelManImplT::GetUniqueCMCount |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: