Reference to an abstract collision element.
You can think of a CollisionElementIterator as a glorified pointer to a collision element. It is only there to create a reference to it, not to actual contain its data. Classes derived from TCollisionElementIterator does not store any data, but just provide methods allowing to access the additionnal data stored inside the derived CollisionModel. For instance, the Cube class adds the minVect() / maxVect() methods to retrieve the corners of the cube, however this data is not stored inside Cube, instead it is stored inside the CubeData class within CubeModel.
|
| CollisionElementIterator (CollisionModel *model=nullptr, Index index=0) |
|
| CollisionElementIterator (CollisionModel *model, VIterator it, VIterator itend) |
|
| CollisionElementIterator (CollisionModel *model, Index index, VIterator it, VIterator itend) |
|
template<class DerivedModel > |
| CollisionElementIterator (const TCollisionElementIterator< DerivedModel > &i) |
| Automatic conversion from a reference to an element in a derived model. More...
|
|
template<class DerivedModel > |
void | operator= (const TCollisionElementIterator< DerivedModel > &i) |
| Automatic conversion from a reference to an element in a derived model. More...
|
|
| TCollisionElementIterator (Model *model=nullptr, Index index=0) |
|
| TCollisionElementIterator (Model *model, Index index, VIterator it, VIterator itend) |
|
| TCollisionElementIterator (Model *model, VIterator it, VIterator itend) |
|
bool | isActive (core::CollisionModel *cm=nullptr) const |
|
bool | operator== (const TCollisionElementIterator< Model2 > &i) const |
|
bool | operator!= (const TCollisionElementIterator< Model2 > &i) const |
|
TCollisionElementIterator & | operator+= (int n) |
|
TCollisionElementIterator | operator+ (int n) const |
|
bool | valid () const |
|
Model * | getCollisionModel () const |
| Return the CollisionModel containing the referenced element. More...
|
|
std::pair< CollisionElementIterator, CollisionElementIterator > | getInternalChildren () const |
|
std::pair< CollisionElementIterator, CollisionElementIterator > | getExternalChildren () const |
|
bool | isLeaf () const |
|
bool | canCollideWith (const TCollisionElementIterator< Model > &elem) const |
|
SReal | getProximity () const |
| Distance to the actual (visual) surface. More...
|
|
SReal | getContactStiffness () const |
| Contact stiffness. More...
|
|
SReal | getContactFriction () const |
| Contact friction (damping) coefficient. More...
|
|
void | draw (const core::visual::VisualParams *vparams) |
|
| BaseCollisionElementIterator (Index index=0) |
|
| BaseCollisionElementIterator (Index index, VIterator it, VIterator itend) |
|
| BaseCollisionElementIterator (VIterator it, VIterator itend) |
|
void | next () |
| Increment this iterator to reference the next element. More...
|
|
BaseCollisionElementIterator & | operator++ () |
| Prefix increment this iterator to reference the next element. More...
|
|
BaseCollisionElementIterator | operator++ (int) |
| Postfix increment this iterator to reference the next element. More...
|
|
BaseCollisionElementIterator & | operator+= (int n) |
|
BaseCollisionElementIterator | operator+ (int n) const |
|
Index | getIndex () const |
|
const VIterator & | getVIterator () const |
| Return the current iterator in the vector of indices, in case such a vector is currently used. More...
|
|
const VIterator & | getVIteratorEnd () const |
| Return the end iterator in the vector of indices, in case such a vector is currently used. More...
|
|