Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
ParticleMap Class Reference

The datastructure for saving the particles. More...

#include <ParticleMap.h>

List of all members.

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

Detailed Description

The datastructure for saving the particles.


Constructor & Destructor Documentation

ParticleMap::ParticleMap ( int  width,
int  height,
int  depth 
)
ParticleMap::~ParticleMap ( )

Member Function Documentation

void ParticleMap::add ( int  x,
int  y,
int  z,
Particle p 
) throw (ParticleMapException)

Adds a new Particle on position x, y, z

void ParticleMap::checkBounds ( int  x,
int  y,
int  z,
const std::string &  method = "" 
) throw (ParticleMapException)
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


Member Data Documentation

int ParticleMap::_depth
private
int ParticleMap::_height
private
Map3D ParticleMap::_map
private
int ParticleMap::_width
private

The documentation for this class was generated from the following files: