ESyS-Particle  2.3.2
esys::lsm::SimpleParticleData Class Reference

#include <SimpleParticleData.h>

Inheritance diagram for esys::lsm::SimpleParticleData:
Collaboration diagram for esys::lsm::SimpleParticleData:

Public Types

typedef int Id
typedef int Tag

Public Member Functions

 SimpleParticleData ()
 SimpleParticleData (Id id, Tag tag, const Vec3 &position, double radius)
 SimpleParticleData (const Vec3 &position, double radius, Id id, Tag tag)
 SimpleParticleData (const SimpleParticleData &p)
SimpleParticleDataoperator= (const SimpleParticleData &p)
bool operator== (const SimpleParticleData &particleData) const
Id getId () const
void setId (const Id &id)
Id getID () const
void setID (const Id &id)
const Vec3getPosition () const
void setPosition (const Vec3 &pos)
Tag getTag () const
void setTag (const Tag &tag)
double getRadius () const
void setRadius (const double &r)
void setMass (double mass)
double getMass () const
double get2dMass () const
double get3dMass () const
void read (std::istream &istream)
void write (std::ostream &write) const

Private Attributes

Id m_id
Tag m_tag
Vec3 m_position
double m_radius
double m_mass

Detailed Description

Container class for particle Id, Tag, position, radius and mass.

Member Typedef Documentation

Constructor & Destructor Documentation

esys::lsm::SimpleParticleData::SimpleParticleData ( )
inline

References get3dMass(), and setMass().

Here is the call graph for this function:

esys::lsm::SimpleParticleData::SimpleParticleData ( Id  id,
Tag  tag,
const Vec3 position,
double  radius 
)
inline

References get3dMass(), and setMass().

Here is the call graph for this function:

esys::lsm::SimpleParticleData::SimpleParticleData ( const Vec3 position,
double  radius,
Id  id,
Tag  tag 
)
inline

References get3dMass(), and setMass().

Here is the call graph for this function:

esys::lsm::SimpleParticleData::SimpleParticleData ( const SimpleParticleData p)
inline

Member Function Documentation

double esys::lsm::SimpleParticleData::get2dMass ( ) const
inline

References m_radius.

double esys::lsm::SimpleParticleData::get3dMass ( ) const
inline

References m_radius.

Referenced by SimpleParticleData().

Here is the caller graph for this function:

SimpleParticleData::Id esys::lsm::SimpleParticleData::getId ( ) const
inline

References m_id.

Referenced by getID(), esys::lsm::SimpleSpherePyPickleSuite::getinitargs(), operator<<(), operator==(), and write().

Here is the caller graph for this function:

double esys::lsm::SimpleParticleData::getMass ( ) const
inline
const Vec3 & esys::lsm::SimpleParticleData::getPosition ( ) const
inline

References m_position.

Referenced by SimpleParticle::getPos(), operator<<(), operator==(), SimpleParticle::rotate(), SimpleParticle::translateBy(), and write().

Here is the caller graph for this function:

double esys::lsm::SimpleParticleData::getRadius ( ) const
inline
SimpleParticleData & esys::lsm::SimpleParticleData::operator= ( const SimpleParticleData p)
inline

References m_id, m_mass, m_position, m_radius, and m_tag.

bool esys::lsm::SimpleParticleData::operator== ( const SimpleParticleData particleData) const
inline

References getId(), getPosition(), getRadius(), and getTag().

Here is the call graph for this function:

void esys::lsm::SimpleParticleData::read ( std::istream &  istream)
inline

References m_id, m_position, m_radius, and m_tag.

Referenced by esys::lsm::operator>>().

Here is the caller graph for this function:

void esys::lsm::SimpleParticleData::setId ( const Id id)
inline

References m_id.

Referenced by setID().

Here is the caller graph for this function:

void esys::lsm::SimpleParticleData::setID ( const Id id)
inline

References setId().

Referenced by esys::lsm::exportSimpleSphere().

Here is the call graph for this function:

Here is the caller graph for this function:

void esys::lsm::SimpleParticleData::setMass ( double  mass)
inline
void esys::lsm::SimpleParticleData::setPosition ( const Vec3 pos)
inline

References m_position.

Referenced by SimpleParticle::moveTo(), SimpleParticle::rotate(), SimpleParticle::setPos(), and SimpleParticle::translateBy().

Here is the caller graph for this function:

void esys::lsm::SimpleParticleData::setRadius ( const double &  r)
inline

References m_radius.

Referenced by SimpleParticle::setRad().

Here is the caller graph for this function:

void esys::lsm::SimpleParticleData::setTag ( const Tag tag)
inline
void esys::lsm::SimpleParticleData::write ( std::ostream &  write) const
inline

References getId(), getPosition(), getRadius(), and getTag().

Referenced by esys::lsm::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Id esys::lsm::SimpleParticleData::m_id
private

Referenced by getId(), operator=(), read(), and setId().

double esys::lsm::SimpleParticleData::m_mass
private

Referenced by getMass(), operator=(), and setMass().

Vec3 esys::lsm::SimpleParticleData::m_position
private
double esys::lsm::SimpleParticleData::m_radius
private
Tag esys::lsm::SimpleParticleData::m_tag
private

Referenced by getTag(), operator=(), read(), and setTag().


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