| Kinetic Visualization (Visualisierung 2 - S2012)
    | 
The datastructure for saving the particles. More...
#include <ParticleMap.h>
| Public Member Functions | |
| ParticleMap (int width, int height, int depth) | |
| ~ParticleMap () | |
| ParticleMapIterator | iterator (int x, int y, int z, float sigma) throw (ParticleMapException) | 
| void | add (int x, int y, int z, Particle *p) throw (ParticleMapException) | 
| void | remove (int x, int y, int z, Particle *p) throw (ParticleMapException) | 
| bool | isFree (int x, int y, int z, int n) throw (ParticleMapException) | 
| Private Member Functions | |
| void | checkBounds (int x, int y, int z, const std::string &method="") throw (ParticleMapException) | 
| Private Attributes | |
| int | _width | 
| int | _height | 
| int | _depth | 
| Map3D | _map | 
The datastructure for saving the particles.
| ParticleMap::ParticleMap | ( | int | width, | 
| int | height, | ||
| int | depth | ||
| ) | 
| ParticleMap::~ParticleMap | ( | ) | 
| void ParticleMap::add | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| Particle * | p | ||
| ) | throw (ParticleMapException) | 
Adds a new Particle on position x, y, z
| 
 | private | 
| bool ParticleMap::isFree | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| int | n | ||
| ) | throw (ParticleMapException) | 
Checks if the posiiton is free in the given neighborhood
| ParticleMapIterator ParticleMap::iterator | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| float | sigma | ||
| ) | throw (ParticleMapException) | 
Returns an Iterator which iterates a neighborhood of 6*sigma/2-1 over (x,y)
| void ParticleMap::remove | ( | int | x, | 
| int | y, | ||
| int | z, | ||
| Particle * | p | ||
| ) | throw (ParticleMapException) | 
Removes a particle on position x, y, and z
| 
 | private | 
| 
 | private | 
| 
 | private | 
| 
 | private | 
 1.8.1
 1.8.1