Documentation


animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses > Class Template Reference

#include <OctreeParticleSystemEngine.h>

Inheritance diagram for animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >:

animal::octree::Octree ParticleSystemEngine animal::octree::FastOctree< T, S, U > List of all members.

Detailed Description

template<typename t_Vector, typename t_Real, typename t_Masses>
class animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >

Author:
Matthieu Nesme

Definition at line 35 of file OctreeParticleSystemEngine.h.

Public Types

typedef hash_map< int, intVerticesMap
typedef t_Real Real
typedef t_Masses VecReal
typedef t_Vector Vector
typedef t_Vector::value_type Vec
typedef t_Masses Masses
typedef animal::SpringForceField<
Vector, VecReal, animal::vector<
int > > 
SpringForceField
typedef SpringForceField::VecEdges VecEdges

Public Member Functions

 OctreeParticleSystemEngine (Vec3d bboxMin, Vec3d bboxMax, MFVec3f *points, MFVec3f normals, unsigned int nMaxPointsPerCell)
 ~OctreeParticleSystemEngine ()
virtual void move (double dt)
void draw ()
int preUpdateVerticesPositions (Cell *tmpCell, int *indice=new int())
int preUpdateVerticesPositions2 (Cell *)
int postUpdateVerticesPositions ()
int allLevelsPreUpdateVerticesPositions (Cell *tmpCell, int *indice=new int())

Public Attributes

VerticesMap _verticesMap
Vector _particlesPositions
Vector _particlesVelocities
Masses _particlesInvMasses
VecEdges _springs
SpringForceField _springfield
VecReal _stiffnesses
VecReal _restLengths
animal::vector< VecEdges_allLevelsSprings
animal::vector< VecReal_allLevelsStiffnesses
animal::vector< VecReal_allLevelsRestLengths


Member Typedef Documentation

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef t_Masses animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Masses
 

Definition at line 65 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef t_Real animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Real
 

Definition at line 61 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef animal::SpringForceField<Vector,VecReal,animal::vector<int> > animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::SpringForceField
 

Definition at line 67 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef t_Vector::value_type animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Vec
 

Definition at line 64 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef SpringForceField::VecEdges animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::VecEdges
 

Definition at line 79 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef t_Masses animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::VecReal
 

Definition at line 62 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef t_Vector animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Vector
 

Definition at line 63 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
typedef hash_map<int, int> animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::VerticesMap
 

Definition at line 54 of file OctreeParticleSystemEngine.h.


Constructor & Destructor Documentation

template<typename t_V, typename t_R, typename t_M>
animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::OctreeParticleSystemEngine Vec3d  bboxMin,
Vec3d  bboxMax,
MFVec3f points,
MFVec3f  normals,
unsigned int  nMaxPointsPerCell
 

Definition at line 23 of file OctreeParticleSystemEngine.cpp.

References animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesInvMasses, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesVelocities, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springfield, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springs, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Vec, and animal::octree::Vec3d.

template<typename t_V, typename t_R, typename t_M>
animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::~OctreeParticleSystemEngine  ) 
 

Definition at line 40 of file OctreeParticleSystemEngine.cpp.


Member Function Documentation

template<typename t_V, typename t_R, typename t_M>
int animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::allLevelsPreUpdateVerticesPositions Cell tmpCell,
int indice = new int()
 

Definition at line 47 of file OctreeParticleSystemEngine.cpp.

References animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsRestLengths, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsSprings, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsStiffnesses, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesInvMasses, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesVelocities, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_verticesMap, animal::octree::Cell, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Vec.

template<typename t_V, typename t_R, typename t_M>
void animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::draw  ) 
 

Definition at line 372 of file OctreeParticleSystemEngine.cpp.

Referenced by X3DTK::X3D::DeformableOctreeParticleSystemNode::draw().

template<typename t_V, typename t_R, typename t_M>
void animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::move double  dt  )  [virtual]
 

Definition at line 204 of file OctreeParticleSystemEngine.cpp.

References animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesInvMasses, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesVelocities, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springs, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_verticesMap, animal::octree::Octree::movedRecLeaves(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::postUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions(), and animal::octree::FastOctree< T, S, U >::root().

Referenced by X3DTK::X3D::DeformableOctreeParticleSystemNode::animate().

template<typename t_V, typename t_R, typename t_M>
int animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::postUpdateVerticesPositions  ) 
 

Definition at line 193 of file OctreeParticleSystemEngine.cpp.

References animal::octree::ConstrainedVertex::_mass, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_verticesMap, animal::octree::ConstrainedVertex::setPosition(), and animal::octree::Vec3d.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move().

template<typename t_V, typename t_R, typename t_M>
int animal::octree::OctreeParticleSystemEngine< t_V, t_R, t_M >::preUpdateVerticesPositions Cell tmpCell,
int indice = new int()
 

Definition at line 123 of file OctreeParticleSystemEngine.cpp.

References animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesInvMasses, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesVelocities, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springs, animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_verticesMap, animal::octree::Cell, and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::Vec.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move().

template<typename t_Vector, typename t_Real, typename t_Masses>
int animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions2 Cell  ) 
 


Member Data Documentation

template<typename t_Vector, typename t_Real, typename t_Masses>
animal::vector<VecReal> animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsRestLengths
 

Definition at line 88 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
animal::vector<VecEdges> animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsSprings
 

Definition at line 86 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
animal::vector<VecReal> animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_allLevelsStiffnesses
 

Definition at line 87 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
Masses animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesInvMasses
 

Definition at line 77 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
Vector animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesPositions
 

Definition at line 75 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::postUpdateVerticesPositions(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
Vector animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_particlesVelocities
 

Definition at line 76 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
VecReal animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_restLengths
 

Definition at line 84 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
SpringForceField animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springfield
 

Definition at line 82 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine().

template<typename t_Vector, typename t_Real, typename t_Masses>
VecEdges animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_springs
 

Definition at line 81 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::OctreeParticleSystemEngine(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().

template<typename t_Vector, typename t_Real, typename t_Masses>
VecReal animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_stiffnesses
 

Definition at line 83 of file OctreeParticleSystemEngine.h.

template<typename t_Vector, typename t_Real, typename t_Masses>
VerticesMap animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::_verticesMap
 

Definition at line 55 of file OctreeParticleSystemEngine.h.

Referenced by animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::allLevelsPreUpdateVerticesPositions(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::move(), animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::postUpdateVerticesPositions(), and animal::octree::OctreeParticleSystemEngine< t_Vector, t_Real, t_Masses >::preUpdateVerticesPositions().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:33 2004 by doxygen 1.3.6