ESyS-Particle  4.0.1
Public Member Functions | Static Public Attributes | Protected Attributes
CBasicParticle Class Reference

Basic Particle class. Contains only the "geometric part" of the particle, i.e. position and radius, no forces or such. More...

#include <BasicParticle.h>

Inheritance diagram for CBasicParticle:
Inheritance graph
[legend]
Collaboration diagram for CBasicParticle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CBasicParticle (const Vec3 &pos, double radius, int id=-1, int tag=-1)
 CBasicParticle (const esys::lsm::SimpleParticleData &data)
Vec3getPPos ()
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

Detailed Description

Basic Particle class. Contains only the "geometric part" of the particle, i.e. position and radius, no forces or such.

Author:
Steffen Abe $Revision$ $Date$

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