Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::MassSpringVolume< N, Real > Class Template Reference

#include <GteMassSpringVolume.h>

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

Public Member Functions

virtual Vector< N, Real > ExternalAcceleration (int i, Real time, std::vector< Vector< N, Real >> const &position, std::vector< Vector< N, Real >> const &velocity)
 
Real const & GetConstantC (int s, int r, int c) const
 
Real const & GetConstantR (int s, int r, int c) const
 
Real const & GetConstantS (int s, int r, int c) const
 
Real const & GetLengthC (int s, int r, int c) const
 
Real const & GetLengthR (int s, int r, int c) const
 
Real const & GetLengthS (int s, int r, int c) const
 
Real const & GetMass (int s, int r, int c) const
 
int GetNumCols () const
 
int GetNumRows () const
 
int GetNumSlices () const
 
Vector< N, Real > const & GetPosition (int s, int r, int c) const
 
Vector< N, Real > const & GetVelocity (int s, int r, int c) const
 
 MassSpringVolume (int numSlices, int numRows, int numCols, Real step)
 
void SetConstantC (int s, int r, int c, Real constant)
 
void SetConstantR (int s, int r, int c, Real constant)
 
void SetConstantS (int s, int r, int c, Real constant)
 
void SetLengthC (int s, int r, int c, Real length)
 
void SetLengthR (int s, int r, int c, Real length)
 
void SetLengthS (int s, int r, int c, Real length)
 
void SetMass (int s, int r, int c, Real mass)
 
void SetPosition (int s, int r, int c, Vector< N, Real > const &position)
 
void SetVelocity (int s, int r, int c, Vector< N, Real > const &velocity)
 
virtual ~MassSpringVolume ()
 
- Public Member Functions inherited from gte::ParticleSystem< N, Real >
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)
 
void GetCoordinates (int i, int &s, int &r, int &c) const
 
int GetIndex (int s, int r, int c) const
 

Protected Attributes

std::vector< Real > mConstantC
 
std::vector< Real > mConstantR
 
std::vector< Real > mConstantS
 
std::vector< Real > mLengthC
 
std::vector< Real > mLengthR
 
std::vector< Real > mLengthS
 
int mNumCols
 
int mNumRows
 
int mNumSlices
 
- Protected Attributes inherited from gte::ParticleSystem< N, Real >
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::MassSpringVolume< N, Real >

Definition at line 16 of file GteMassSpringVolume.h.

Constructor & Destructor Documentation

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

Definition at line 100 of file GteMassSpringVolume.h.

template<int N, typename Real >
gte::MassSpringVolume< N, Real >::MassSpringVolume ( int  numSlices,
int  numRows,
int  numCols,
Real  step 
)

Definition at line 105 of file GteMassSpringVolume.h.

Member Function Documentation

template<int N, typename Real >
Vector< N, Real > gte::MassSpringVolume< N, Real >::Acceleration ( int  i,
Real  time,
std::vector< Vector< N, Real >> const &  position,
std::vector< Vector< N, Real >> const &  velocity 
)
protectedvirtual

Implements gte::ParticleSystem< N, Real >.

Definition at line 268 of file GteMassSpringVolume.h.

template<int N, typename Real >
Vector< N, Real > gte::MassSpringVolume< N, Real >::ExternalAcceleration ( int  i,
Real  time,
std::vector< Vector< N, Real >> const &  position,
std::vector< Vector< N, Real >> const &  velocity 
)
virtual

Definition at line 261 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetConstantC ( int  s,
int  r,
int  c 
) const
inline

Definition at line 249 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetConstantR ( int  s,
int  r,
int  c 
) const
inline

Definition at line 237 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetConstantS ( int  s,
int  r,
int  c 
) const
inline

Definition at line 225 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::GetCoordinates ( int  i,
int s,
int r,
int c 
) const
protected

Definition at line 351 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::GetIndex ( int  s,
int  r,
int  c 
) const
inlineprotected

Definition at line 345 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetLengthC ( int  s,
int  r,
int  c 
) const
inline

Definition at line 255 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetLengthR ( int  s,
int  r,
int  c 
) const
inline

Definition at line 243 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetLengthS ( int  s,
int  r,
int  c 
) const
inline

Definition at line 231 of file GteMassSpringVolume.h.

template<int N, typename Real >
Real const & gte::MassSpringVolume< N, Real >::GetMass ( int  s,
int  r,
int  c 
) const
inline

Definition at line 166 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::GetNumCols ( ) const
inline

Definition at line 140 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::GetNumRows ( ) const
inline

Definition at line 134 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::GetNumSlices ( ) const
inline

Definition at line 128 of file GteMassSpringVolume.h.

template<int N, typename Real >
Vector< N, Real > const & gte::MassSpringVolume< N, Real >::GetPosition ( int  s,
int  r,
int  c 
) const
inline

Definition at line 172 of file GteMassSpringVolume.h.

template<int N, typename Real >
Vector< N, Real > const & gte::MassSpringVolume< N, Real >::GetVelocity ( int  s,
int  r,
int  c 
) const
inline

Definition at line 179 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetConstantC ( int  s,
int  r,
int  c,
Real  constant 
)
inline

Definition at line 212 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetConstantR ( int  s,
int  r,
int  c,
Real  constant 
)
inline

Definition at line 199 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetConstantS ( int  s,
int  r,
int  c,
Real  constant 
)
inline

Definition at line 186 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetLengthC ( int  s,
int  r,
int  c,
Real  length 
)
inline

Definition at line 219 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetLengthR ( int  s,
int  r,
int  c,
Real  length 
)
inline

Definition at line 206 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetLengthS ( int  s,
int  r,
int  c,
Real  length 
)
inline

Definition at line 193 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetMass ( int  s,
int  r,
int  c,
Real  mass 
)
inline

Definition at line 146 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetPosition ( int  s,
int  r,
int  c,
Vector< N, Real > const &  position 
)
inline

Definition at line 152 of file GteMassSpringVolume.h.

template<int N, typename Real >
void gte::MassSpringVolume< N, Real >::SetVelocity ( int  s,
int  r,
int  c,
Vector< N, Real > const &  velocity 
)
inline

Definition at line 159 of file GteMassSpringVolume.h.

Member Data Documentation

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mConstantC
protected

Definition at line 95 of file GteMassSpringVolume.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mConstantR
protected

Definition at line 94 of file GteMassSpringVolume.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mConstantS
protected

Definition at line 93 of file GteMassSpringVolume.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mLengthC
protected

Definition at line 95 of file GteMassSpringVolume.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mLengthR
protected

Definition at line 94 of file GteMassSpringVolume.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringVolume< N, Real >::mLengthS
protected

Definition at line 93 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::mNumCols
protected

Definition at line 92 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::mNumRows
protected

Definition at line 92 of file GteMassSpringVolume.h.

template<int N, typename Real >
int gte::MassSpringVolume< N, Real >::mNumSlices
protected

Definition at line 92 of file GteMassSpringVolume.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