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

#include <GteMassSpringSurface.h>

Inheritance diagram for gte::MassSpringSurface< 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 r, int c) const
 
Real const & GetConstantR (int r, int c) const
 
Real const & GetLengthC (int r, int c) const
 
Real const & GetLengthR (int r, int c) const
 
Real const & GetMass (int r, int c) const
 
int GetNumCols () const
 
int GetNumRows () const
 
Vector< N, Real > const & GetPosition (int r, int c) const
 
Vector< N, Real > const & GetVelocity (int r, int c) const
 
 MassSpringSurface (int numRows, int numCols, Real step)
 
void SetConstantC (int r, int c, Real constant)
 
void SetConstantR (int r, int c, Real constant)
 
void SetLengthC (int r, int c, Real length)
 
void SetLengthR (int r, int c, Real length)
 
void SetMass (int r, int c, Real mass)
 
void SetPosition (int r, int c, Vector< N, Real > const &position)
 
void SetVelocity (int r, int c, Vector< N, Real > const &velocity)
 
virtual ~MassSpringSurface ()
 
- 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 &r, int &c) const
 
int GetIndex (int r, int c) const
 

Protected Attributes

std::vector< Real > mConstantC
 
std::vector< Real > mConstantR
 
std::vector< Real > mLengthC
 
std::vector< Real > mLengthR
 
int mNumCols
 
int mNumRows
 
- 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::MassSpringSurface< N, Real >

Definition at line 16 of file GteMassSpringSurface.h.

Constructor & Destructor Documentation

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

Definition at line 83 of file GteMassSpringSurface.h.

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

Definition at line 88 of file GteMassSpringSurface.h.

Member Function Documentation

template<int N, typename Real >
Vector< N, Real > gte::MassSpringSurface< 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 213 of file GteMassSpringSurface.h.

template<int N, typename Real >
Vector< N, Real > gte::MassSpringSurface< 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 206 of file GteMassSpringSurface.h.

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

Definition at line 194 of file GteMassSpringSurface.h.

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

Definition at line 182 of file GteMassSpringSurface.h.

template<int N, typename Real >
void gte::MassSpringSurface< N, Real >::GetCoordinates ( int  i,
int r,
int c 
) const
inlineprotected

Definition at line 278 of file GteMassSpringSurface.h.

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

Definition at line 272 of file GteMassSpringSurface.h.

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

Definition at line 200 of file GteMassSpringSurface.h.

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

Definition at line 188 of file GteMassSpringSurface.h.

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

Definition at line 138 of file GteMassSpringSurface.h.

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

Definition at line 112 of file GteMassSpringSurface.h.

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

Definition at line 106 of file GteMassSpringSurface.h.

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

Definition at line 144 of file GteMassSpringSurface.h.

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

Definition at line 151 of file GteMassSpringSurface.h.

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

Definition at line 170 of file GteMassSpringSurface.h.

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

Definition at line 158 of file GteMassSpringSurface.h.

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

Definition at line 176 of file GteMassSpringSurface.h.

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

Definition at line 164 of file GteMassSpringSurface.h.

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

Definition at line 118 of file GteMassSpringSurface.h.

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

Definition at line 124 of file GteMassSpringSurface.h.

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

Definition at line 131 of file GteMassSpringSurface.h.

Member Data Documentation

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

Definition at line 78 of file GteMassSpringSurface.h.

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

Definition at line 77 of file GteMassSpringSurface.h.

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

Definition at line 78 of file GteMassSpringSurface.h.

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

Definition at line 77 of file GteMassSpringSurface.h.

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

Definition at line 76 of file GteMassSpringSurface.h.

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

Definition at line 76 of file GteMassSpringSurface.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