#include <CollisionElement.h>
Base class for reference to an collision element defined by its index More...

Base class for reference to an collision element defined by its index
| Protected Attributes | |
| 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 Protected Attributes | |
| static std::vector< int > SOFA_CORE_API | emptyVector | 
| empty vector to be able to initialize the iterator to an empty pair  More... | |
| Public Member Functions | |
| BaseCollisionElementIterator (Index index=0) | |
| BaseCollisionElementIterator (Index index, VIterator it, VIterator itend) | |
| BaseCollisionElementIterator (VIterator it, VIterator itend) | |
| Iterator Interface | |
| 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... | |
| 
 | staticprotected | 
empty vector to be able to initialize the iterator to an empty pair
| 
 | protected | 
index of the referenced element inside the CollisionModel.
| 
 | protected | 
current position in a vector of indices, in case this iterator traverse a non-contiguous set of indices
| 
 | protected | 
end position in a vector of indices, in case this iterator traverse a non-contiguous set of indices
| 
 | 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 | 
Return the index of the referenced element inside the CollisionModel.
This methods should rarely be used. Users should call it.draw() instead of model->draw(it.getIndex()).
| 
 | inline | 
Return the current iterator in the vector of indices, in case such a vector is currently used.
| 
 | inline | 
Return the end iterator in the vector of indices, in case such a vector is currently used.
| 
 | inline | 
Increment this iterator to reference the next element.
| 
 | inline | 
| 
 | inline | 
Prefix increment this iterator to reference the next element.
| 
 | inline | 
Postfix increment this iterator to reference the next element.
| 
 | inline |