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

#include <GteMassSpringArbitrary.h>

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

Classes

struct  Spring
 

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)
 
int GetNumSprings () const
 
Spring const & GetSpring (int index) const
 
 MassSpringArbitrary (int numParticles, int numSprings, Real step)
 
void SetSpring (int index, Spring const &spring)
 
virtual ~MassSpringArbitrary ()
 
- 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< std::set< int > > mAdjacent
 
std::vector< SpringmSpring
 
- 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::MassSpringArbitrary< N, Real >

Definition at line 18 of file GteMassSpringArbitrary.h.

Constructor & Destructor Documentation

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

Definition at line 66 of file GteMassSpringArbitrary.h.

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

Definition at line 71 of file GteMassSpringArbitrary.h.

Member Function Documentation

template<int N, typename Real >
Vector< N, Real > gte::MassSpringArbitrary< 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 110 of file GteMassSpringArbitrary.h.

template<int N, typename Real >
Vector< N, Real > gte::MassSpringArbitrary< 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 103 of file GteMassSpringArbitrary.h.

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

Definition at line 82 of file GteMassSpringArbitrary.h.

template<int N, typename Real >
MassSpringArbitrary< N, Real >::Spring const & gte::MassSpringArbitrary< N, Real >::GetSpring ( int  index) const
inline

Definition at line 97 of file GteMassSpringArbitrary.h.

template<int N, typename Real >
void gte::MassSpringArbitrary< N, Real >::SetSpring ( int  index,
Spring const &  spring 
)

Definition at line 88 of file GteMassSpringArbitrary.h.

Member Data Documentation

template<int N, typename Real >
std::vector<std::set<int> > gte::MassSpringArbitrary< N, Real >::mAdjacent
protected

Definition at line 61 of file GteMassSpringArbitrary.h.

template<int N, typename Real >
std::vector<Spring> gte::MassSpringArbitrary< N, Real >::mSpring
protected

Definition at line 56 of file GteMassSpringArbitrary.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