ESyS-Particle
4.0.1
|
Basic Particle class. Contains only the "geometric part" of the particle, i.e. position and radius, no forces or such. More...
#include <BasicParticle.h>
Public Member Functions | |
CBasicParticle (const Vec3 &pos, double radius, int id=-1, int tag=-1) | |
CBasicParticle (const esys::lsm::SimpleParticleData &data) | |
Vec3 & | getPPos () |
Vec3 | getPos () const |
void | setPos (const Vec3 &pos) |
double | getRad () const |
int | getID () const |
void | setID (int id) |
void | moveBy (Vec3 v) |
move relative to current position | |
void | moveTo (Vec3 v) |
move absolute | |
void | setRad (double r) |
void | setTag (int t) |
particle tag handling | |
int | getTag () const |
bool | isValid () const |
Static Public Attributes | |
static const CBasicParticle | INVALID = CBasicParticle(Vec3::ZERO, 0.0, -1, -1) |
Protected Attributes | |
Vec3 | m_pos |
position | |
double | m_rad |
radius | |
int | m_global_id |
int | m_tag |
Basic Particle class. Contains only the "geometric part" of the particle, i.e. position and radius, no forces or such.