#include <CollisionElement.h>
Reference to an abstract collision element. More...
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 additional 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.
Additional Inherited Members | |
![]() | |
Model * | model |
CollisionModel containing the referenced element. More... | |
![]() | |
Index | index |
index of the referenced element inside the CollisionModel. More... | |
VIterator | it |
current position in a vector of indices, in case this iterator traverse a non-contiguous set of indices More... | |
VIterator | itend |
end position in a vector of indices, in case this iterator traverse a non-contiguous set of indices More... | |
![]() | |
static std::vector< int > SOFA_CORE_API | emptyVector |
empty vector to be able to initialize the iterator to an empty pair More... | |
|
inline |
Constructor. In most cases it will be used by the CollisionModel to create interators to its elements (such as in the begin() and end() methods).
|
inline |
Constructor. This constructor should be used in case a vector of indices is used.
|
inline |
Constructor. This constructor should be used in case a vector of indices is used.
|
inline |
Automatic conversion from a reference to an element in a derived model.
|
inline |
Automatic conversion from a reference to an element in a derived model.