Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::ParticleSystem< N, Real > Class Template Referenceabstract

#include <GteParticleSystem.h>

Inheritance diagram for gte::ParticleSystem< N, Real >:
Inheritance graph
[legend]

Classes

struct  Temporary
 

Public Member Functions

Real const & GetMass (int i) const
 
int GetNumParticles () const
 
Vector< N, Real > const & GetPosition (int i) const
 
Real GetStep () const
 
Vector< N, Real > const & GetVelocity (int i) const
 
 ParticleSystem (int numParticles, Real step)
 
void SetMass (int i, Real mass)
 
void SetPosition (int i, Vector< N, Real > const &position)
 
void SetStep (Real step)
 
void SetVelocity (int i, Vector< N, Real > const &velocity)
 
virtual void Update (Real time)
 
virtual ~ParticleSystem ()
 

Protected Member Functions

virtual Vector< N, Real > Acceleration (int i, Real time, std::vector< Vector< N, Real >> const &position, std::vector< Vector< N, Real >> const &velocity)=0
 

Protected Attributes

Real mHalfStep
 
std::vector< Real > mInvMass
 
std::vector< Real > mMass
 
int mNumParticles
 
std::vector< TemporarymPAllTmp
 
std::vector< Vector< N, Real > > mPosition
 
std::vector< Vector< N, Real > > mPTmp
 
Real mSixthStep
 
Real mStep
 
std::vector< TemporarymVAllTmp
 
std::vector< Vector< N, Real > > mVelocity
 
std::vector< Vector< N, Real > > mVTmp
 

Detailed Description

template<int N, typename Real>
class gte::ParticleSystem< N, Real >

Definition at line 18 of file GteParticleSystem.h.

Constructor & Destructor Documentation

template<int N, typename Real >
gte::ParticleSystem< N, Real >::~ParticleSystem ( )
virtual

Definition at line 68 of file GteParticleSystem.h.

template<int N, typename Real >
gte::ParticleSystem< N, Real >::ParticleSystem ( int  numParticles,
Real  step 
)
inline

Definition at line 73 of file GteParticleSystem.h.

Member Function Documentation

template<int N, typename Real >
virtual Vector<N, Real> gte::ParticleSystem< N, Real >::Acceleration ( int  i,
Real  time,
std::vector< Vector< N, Real >> const &  position,
std::vector< Vector< N, Real >> const &  velocity 
)
protectedpure virtual
template<int N, typename Real >
Real const & gte::ParticleSystem< N, Real >::GetMass ( int  i) const
inline

Definition at line 138 of file GteParticleSystem.h.

template<int N, typename Real >
int gte::ParticleSystem< N, Real >::GetNumParticles ( ) const
inline

Definition at line 95 of file GteParticleSystem.h.

template<int N, typename Real >
Vector< N, Real > const & gte::ParticleSystem< N, Real >::GetPosition ( int  i) const
inline

Definition at line 144 of file GteParticleSystem.h.

template<int N, typename Real >
Real gte::ParticleSystem< N, Real >::GetStep ( ) const
inline

Definition at line 156 of file GteParticleSystem.h.

template<int N, typename Real >
Vector< N, Real > const & gte::ParticleSystem< N, Real >::GetVelocity ( int  i) const
inline

Definition at line 150 of file GteParticleSystem.h.

template<int N, typename Real >
void gte::ParticleSystem< N, Real >::SetMass ( int  i,
Real  mass 
)

Definition at line 101 of file GteParticleSystem.h.

template<int N, typename Real >
void gte::ParticleSystem< N, Real >::SetPosition ( int  i,
Vector< N, Real > const &  position 
)
inline

Definition at line 116 of file GteParticleSystem.h.

template<int N, typename Real >
void gte::ParticleSystem< N, Real >::SetStep ( Real  step)

Definition at line 130 of file GteParticleSystem.h.

template<int N, typename Real >
void gte::ParticleSystem< N, Real >::SetVelocity ( int  i,
Vector< N, Real > const &  velocity 
)
inline

Definition at line 123 of file GteParticleSystem.h.

template<int N, typename Real >
void gte::ParticleSystem< N, Real >::Update ( Real  time)
virtual

Definition at line 162 of file GteParticleSystem.h.

Member Data Documentation

template<int N, typename Real >
Real gte::ParticleSystem< N, Real >::mHalfStep
protected

Definition at line 55 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Real> gte::ParticleSystem< N, Real >::mInvMass
protected

Definition at line 53 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Real> gte::ParticleSystem< N, Real >::mMass
protected

Definition at line 53 of file GteParticleSystem.h.

template<int N, typename Real >
int gte::ParticleSystem< N, Real >::mNumParticles
protected

Definition at line 52 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Temporary> gte::ParticleSystem< N, Real >::mPAllTmp
protected

Definition at line 63 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Vector<N, Real> > gte::ParticleSystem< N, Real >::mPosition
protected

Definition at line 54 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Vector<N, Real> > gte::ParticleSystem< N, Real >::mPTmp
protected

Definition at line 62 of file GteParticleSystem.h.

template<int N, typename Real >
Real gte::ParticleSystem< N, Real >::mSixthStep
protected

Definition at line 55 of file GteParticleSystem.h.

template<int N, typename Real >
Real gte::ParticleSystem< N, Real >::mStep
protected

Definition at line 55 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Temporary> gte::ParticleSystem< N, Real >::mVAllTmp
protected

Definition at line 63 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Vector<N, Real> > gte::ParticleSystem< N, Real >::mVelocity
protected

Definition at line 54 of file GteParticleSystem.h.

template<int N, typename Real >
std::vector<Vector<N, Real> > gte::ParticleSystem< N, Real >::mVTmp
protected

Definition at line 62 of file GteParticleSystem.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06