ParticleRef< T > Class Template Reference
#include <TAPsParticleRef.hpp>
List of all members.
|
Public Member Functions |
| Vector3< T > const & | GetAcceleration () const |
| bool | GetFixStatus () const |
| Vector3< T > const & | GetForce () const |
| T | GetMass () const |
| | Assignment operator.
|
| Vector3< T > const & | GetPosition () const |
| Vector3< T > const & | GetVelocity () const |
| | ParticleRef (T mass, Vector3< T > &vPosition, Vector3< T > const &vVelocity, Vector3< T > const &vAcceleration, Vector3< T > const &vForce, bool fixed=false) |
| | Constructor.
|
| | ParticleRef (Vector3< T > &vPosition, bool fixed=false) |
| | Constructor.
|
| 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 | SetPosition (T x, T y, T z) |
| void | SetPosition (Vector3< T > const &) |
| void | SetRefPosition (Vector3< T > *ptrPos) |
| void | SetVelocity (T x, T y, T z) |
| void | SetVelocity (Vector3< T > const &) |
| | ~ParticleRef () |
| | Destructor.
|
Static Public Member Functions |
| static void | ParticlesCreation (HEVertexList< T > *meshVertex, std::list< int > &vertexNo, ParticleRef< T > *particleNo, T mass=1) |
| static void | ParticlesCreation (XVertex< T > *meshVertex, int *vertexNo, ParticleRef< T > *particleNo, T mass=1) |
| static void | ParticlesCreation (Vertex< T > *meshVertex, int *vertexNo, ParticleRef< T > *particleNo, T mass=1) |
Private Member Functions |
| ParticleRef< T > const & | operator= (ParticleRef< T > const &S) |
Private Attributes |
| bool | m_bFixed |
| Vector3< T > * | m_refPosit |
| T | m_tMass |
| Vector3< T > | m_vtAccel |
| Vector3< T > | m_vtForce |
| Vector3< T > | m_vtVeloc |
Friends |
| std::ostream & | operator<< (std::ostream &output, ParticleRef< T > const &P) |
Detailed Description
template<typename T>
class ParticleRef< T >
Definition at line 22 of file TAPsParticleRef.hpp.
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
| vPosition |
ref position |
| fixed |
fix status |
Definition at line 37 of file TAPsParticleRef.cpp.
Constructor.
- Parameters:
-
| mass |
mass |
| vPosition |
ref position |
| vVelocity |
velocity |
| vAcceleration |
acceleration |
| vForce |
force |
| fixed |
fix status |
Definition at line 60 of file TAPsParticleRef.cpp.
00071 :
00072 m_tMass( mass ),
00073 #ifdef TAPs_USE_DATA_POOL
00074 m_refPosit( ptrPos ),
00075 #else //TAPs_USE_DATA_POOL
00076 m_refPosit( &vPosition ),
00077 #endif//TAPs_USE_DATA_POOL
00078 m_vtVeloc( vVelocity ),
00079 m_vtAccel( vAcceleration ),
00080 m_vtForce( vForce ),
00081 m_bFixed( fixed )
00082 {}
Member Function Documentation
Definition at line 154 of file TAPsParticleRef.hpp.
00155 {
00156 std::cerr << "ParticleRef<T> operator= must not be used!\n";
00157 exit( 1 );
00158 }
template<typename T>
| static void ParticleRef< T >::ParticlesCreation |
( |
XVertex< T > * |
meshVertex, |
|
|
int * |
vertexNo, |
|
|
ParticleRef< T > * |
particleNo, |
|
|
T |
mass = 1 | |
|
) |
| | [static] |
template<typename T>
| static void ParticleRef< T >::ParticlesCreation |
( |
Vertex< T > * |
meshVertex, |
|
|
int * |
vertexNo, |
|
|
ParticleRef< T > * |
particleNo, |
|
|
T |
mass = 1 | |
|
) |
| | [static] |
template<typename T>
| void ParticleRef< T >::SetAcceleration |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z | |
|
) |
| | [inline] |
template<typename T>
| void ParticleRef< T >::SetFixStatus |
( |
bool |
b |
) |
[inline] |
template<typename T>
| void ParticleRef< T >::SetForce |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z | |
|
) |
| | [inline] |
template<typename T>
| void ParticleRef< T >::SetPosition |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z | |
|
) |
| | [inline] |
template<typename T>
| void ParticleRef< T >::SetVelocity |
( |
T |
x, |
|
|
T |
y, |
|
|
T |
z | |
|
) |
| | [inline] |
Friends And Related Function Documentation
template<typename T>
| std::ostream& operator<< |
( |
std::ostream & |
output, |
|
|
ParticleRef< T > const & |
P | |
|
) |
| | [friend] |
Definition at line 26 of file TAPsParticleRef.hpp.
00027 {
00028
00029 output << "ParticleRef<" << typeid(T).name() << "> ==> "
00030 << "\n Mass: " << P.m_tMass
00031 << "\n Position: " << *(P.m_refPosit)
00032 << "\n Velocity: " << P.m_vtVeloc
00033 << "\n Acceleration: " << P.m_vtAccel
00034 << "\n Force: " << P.m_vtForce
00035 << "\n Fix Status: " << ( P.m_bFixed == true ? "true" : "false" )
00036 << "\n";
00037 return output;
00038 }
Member Data Documentation
The documentation for this class was generated from the following files: