Kinetic Visualization (Visualisierung 2 - S2012)
|
The iterator for the particle datastructure with some extra members, like sigma. More...
#include <ParticleMap.h>
Public Member Functions | |
ParticleMapIterator (int x, int y, int z, float sigma, int w, int h, int d, Map3D &m) | |
~ParticleMapIterator () | |
bool | next () |
Particle * | get () |
float | getGaussian () |
Private Attributes | |
int | _x |
int | _y |
int | _z |
float | _sigma |
int | _w |
int | _h |
int | _d |
Map3D & | _map |
int | _posX |
int | _posY |
int | _posZ |
int | _fromX |
int | _fromY |
int | _fromZ |
int | _toX |
int | _toY |
int | _toZ |
std::list< Particle * >::iterator | _current |
bool | _firstRun |
The iterator for the particle datastructure with some extra members, like sigma.
Note: This iterator deliberatly differs from STL iterators! The reason: there is no real good way to
represent .end()! On construction it starts with the first neighbor. With the getters the elements can be obtained. If next() returns false the iterator is on it's end.
Example: ParticleMapIterator it = map.iterator(1,1,1,0.5); while (it.next()) { Particle *p = it.get(); // ... }
ParticleMapIterator::ParticleMapIterator | ( | int | x, |
int | y, | ||
int | z, | ||
float | sigma, | ||
int | w, | ||
int | h, | ||
int | d, | ||
Map3D & | m | ||
) |
ParticleMapIterator::~ParticleMapIterator | ( | ) |
Particle * ParticleMapIterator::get | ( | ) |
float ParticleMapIterator::getGaussian | ( | ) |
bool ParticleMapIterator::next | ( | ) |
Advances the pointer and returns true if there is a valid element after advancing the pointer.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |