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

#include <GteMassSpringCurve.h>

Inheritance diagram for gte::MassSpringCurve< 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 & GetConstant (int i) const
 
Real const & GetLength (int i) const
 
int GetNumSprings () const
 
 MassSpringCurve (int numParticles, Real step)
 
void SetConstant (int i, Real constant)
 
void SetLength (int i, Real length)
 
virtual ~MassSpringCurve ()
 
- 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)
 

Protected Attributes

std::vector< Real > mConstant
 
std::vector< Real > mLength
 
- 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::MassSpringCurve< N, Real >

Definition at line 16 of file GteMassSpringCurve.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file GteMassSpringCurve.h.

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

Definition at line 59 of file GteMassSpringCurve.h.

Member Function Documentation

template<int N, typename Real >
Vector< N, Real > gte::MassSpringCurve< 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 107 of file GteMassSpringCurve.h.

template<int N, typename Real >
Vector< N, Real > gte::MassSpringCurve< 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 100 of file GteMassSpringCurve.h.

template<int N, typename Real >
Real const & gte::MassSpringCurve< N, Real >::GetConstant ( int  i) const
inline

Definition at line 88 of file GteMassSpringCurve.h.

template<int N, typename Real >
Real const & gte::MassSpringCurve< N, Real >::GetLength ( int  i) const
inline

Definition at line 94 of file GteMassSpringCurve.h.

template<int N, typename Real >
int gte::MassSpringCurve< N, Real >::GetNumSprings ( ) const
inline

Definition at line 70 of file GteMassSpringCurve.h.

template<int N, typename Real >
void gte::MassSpringCurve< N, Real >::SetConstant ( int  i,
Real  constant 
)
inline

Definition at line 76 of file GteMassSpringCurve.h.

template<int N, typename Real >
void gte::MassSpringCurve< N, Real >::SetLength ( int  i,
Real  length 
)
inline

Definition at line 82 of file GteMassSpringCurve.h.

Member Data Documentation

template<int N, typename Real >
std::vector<Real> gte::MassSpringCurve< N, Real >::mConstant
protected

Definition at line 49 of file GteMassSpringCurve.h.

template<int N, typename Real >
std::vector<Real> gte::MassSpringCurve< N, Real >::mLength
protected

Definition at line 49 of file GteMassSpringCurve.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