#include <TAPsParticle.hpp>

Public Member Functions | |
| Vector3< T > const & | GetAcceleration () const |
| bool | GetFixStatus () const |
| Vector3< T > const & | GetForce () const |
| T | GetMass () const |
| Vector3< T > const & | GetNormal () const |
| Vector3< T > const & | GetPosition () const |
| Vector3< T > const & | GetVelocity () const |
| Particle< T > const & | operator= (Particle< T > const &P) |
| Particle (Particle< T > const &P) | |
| Particle (T mass, Vector3< T > const &vPosition, Vector3< T > const &vVelocity, Vector3< T > const &vAcceleration, Vector3< T > const &vForce, bool fixed=false) | |
| void | SetAcceleration (T x, T y, T z) |
| void | SetAcceleration (Vector3< T > const &) |
| void | SetFixStatus (bool) |
| void | SetForce (T x, T y, T z) |
| void | SetForce (Vector3< T > const &) |
| void | SetMass (T) |
| void | SetNormal (T x, T y, T z) |
| void | SetNormal (Vector3< T > const &) |
| void | SetPosition (T x, T y, T z) |
| void | SetPosition (Vector3< T > const &) |
| void | SetVelocity (T x, T y, T z) |
| void | SetVelocity (Vector3< T > const &) |
| ~Particle () | |
Private Attributes | |
| bool | m_bFixed |
| T | m_tMass |
| Vector3< T > | m_vtAccel |
| Vector3< T > | m_vtForce |
| Vector3< T > | m_vtNormal |
| Vector3< T > | m_vtPosit |
| Vector3< T > | m_vtVeloc |
Friends | |
| class | Cloth< T > |
| class | DeformMesh< T > |
| class | DeformMeshWithCut< T > |
| std::ostream & | operator<< (std::ostream &output, Particle< T > const &P) |
| class | Spring< T > |
Definition at line 24 of file TAPsParticle.hpp.
| BEGIN_NAMESPACE_TAPs Particle< T >::Particle | ( | T | mass, | |
| Vector3< T > const & | vPosition, | |||
| Vector3< T > const & | vVelocity, | |||
| Vector3< T > const & | vAcceleration, | |||
| Vector3< T > const & | vForce, | |||
| bool | fixed = false | |||
| ) | [inline] |
Definition at line 22 of file TAPsParticle.cpp.
00029 : 00030 m_tMass( mass ), 00031 m_vtPosit( vPosition ), 00032 m_vtVeloc( vVelocity ), 00033 m_vtAccel( vAcceleration ), 00034 m_vtForce( vForce ), 00035 m_bFixed( fixed ) 00036 { 00037 //m_vtNormal will be initialized to zero 00038 } //------------------------------------------------------------------------------
| bool Particle< T >::GetFixStatus | ( | ) | const [inline] |
| T Particle< T >::GetMass | ( | ) | const [inline] |
| Particle< T > const & Particle< T >::operator= | ( | Particle< T > const & | P | ) | [inline] |
Definition at line 57 of file TAPsParticle.cpp.
00058 { 00059 if ( this != &P ) 00060 { 00061 m_tMass = P.m_tMass; 00062 m_vtNormal = P.m_vtNormal; 00063 m_vtPosit = P.m_vtPosit; 00064 m_vtVeloc = P.m_vtVeloc; 00065 m_vtAccel = P.m_vtAccel; 00066 m_vtForce = P.m_vtForce; 00067 m_bFixed = P.m_bFixed; 00068 } 00069 return *this; 00070 }
| void Particle< T >::SetAcceleration | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
| void Particle< T >::SetFixStatus | ( | bool | b | ) | [inline] |
| void Particle< T >::SetForce | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
| void Particle< T >::SetMass | ( | T | m | ) | [inline] |
| void Particle< T >::SetNormal | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
| void Particle< T >::SetPosition | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
| void Particle< T >::SetVelocity | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
friend class Cloth< T > [friend] |
Definition at line 30 of file TAPsParticle.hpp.
friend class DeformMesh< T > [friend] |
Definition at line 28 of file TAPsParticle.hpp.
friend class DeformMeshWithCut< T > [friend] |
Definition at line 29 of file TAPsParticle.hpp.
| std::ostream& operator<< | ( | std::ostream & | output, | |
| Particle< T > const & | P | |||
| ) | [friend] |
Definition at line 34 of file TAPsParticle.hpp.
00035 { 00036 // put it through ostream 00037 output << "Particle<" << typeid(T).name() << "> ==> " 00038 << "\n Mass: " << P.m_tMass 00039 << "\n Normal: " << P.m_vtNormal 00040 << "\n Position: " << P.m_vtPosit 00041 << "\n Velocity: " << P.m_vtVeloc 00042 << "\n Acceleration: " << P.m_vtAccel 00043 << "\n Force: " << P.m_vtForce 00044 << "\n Fix Status: " << ( P.m_bFixed == true ? "true" : "false" ) 00045 << "\n"; 00046 return output; 00047 }
friend class Spring< T > [friend] |
Definition at line 31 of file TAPsParticle.hpp.
Definition at line 57 of file TAPsParticle.hpp.
Definition at line 51 of file TAPsParticle.hpp.
Definition at line 55 of file TAPsParticle.hpp.
Definition at line 56 of file TAPsParticle.hpp.
Vector3<T> Particle< T >::m_vtNormal [private] |
Definition at line 52 of file TAPsParticle.hpp.
Definition at line 53 of file TAPsParticle.hpp.
Definition at line 54 of file TAPsParticle.hpp.
1.5.6