Public Types | Public Member Functions | Protected Attributes

OpenTissue::psys::System< types > Class Template Reference

#include <psys_system.h>

Inheritance diagram for OpenTissue::psys::System< types >:
OpenTissue::psys::MassSpringSystem< types, integrator_policy > OpenTissue::psys::SurfaceMesh< types, integrator_policy > OpenTissue::psys::Cloth< types, integrator_policy >

List of all members.

Public Types

typedef types::math_types math_types
typedef math_types::real_type real_type
typedef math_types::vector3_type vector3_type
typedef types::particle_type particle_type
typedef std::vector
< particle_type
particle_container
typedef
particle_container::iterator 
particle_iterator
typedef
particle_container::const_iterator 
const_particle_iterator

Public Member Functions

real_typetime ()
real_type const & time () const
 System ()
 ~System ()
vector3_type min_coord ()
vector3_type max_coord ()
void clear ()
particle_iterator create_particle (particle_type const &p)
void erase (particle_iterator p)
particle_iteratoroperator() (unsigned int idx)
const_particle_iteratoroperator() (unsigned int idx) const
particle_iterator particle_begin ()
particle_iterator particle_end ()
const_particle_iterator particle_begin () const
const_particle_iterator particle_end () const
std::size_t particles_size () const

Protected Attributes

real_type m_time
 Current time.
particle_container m_particles
 A vector of all particles in the cluster.

Detailed Description

template<typename types>
class OpenTissue::psys::System< types >

This is the ``core'' data structure for particles. It provides iterator capabilities. Particle lookup based on indices and time-management of the entire particle system.

Also there is simple support functionality for deriving AABB information of the particle system (see min and max methods).


Member Typedef Documentation

template<typename types >
typedef particle_container::const_iterator OpenTissue::psys::System< types >::const_particle_iterator
template<typename types >
typedef std::vector<particle_type> OpenTissue::psys::System< types >::particle_container
template<typename types >
typedef particle_container::iterator OpenTissue::psys::System< types >::particle_iterator

Constructor & Destructor Documentation

template<typename types >
OpenTissue::psys::System< types >::System (  )  [inline]
template<typename types >
OpenTissue::psys::System< types >::~System (  )  [inline]

Member Function Documentation

template<typename types >
particle_iterator OpenTissue::psys::System< types >::create_particle ( particle_type const &  p  )  [inline]
template<typename types >
void OpenTissue::psys::System< types >::erase ( particle_iterator  p  )  [inline]
template<typename types >
vector3_type OpenTissue::psys::System< types >::max_coord (  )  [inline]
template<typename types >
vector3_type OpenTissue::psys::System< types >::min_coord (  )  [inline]
template<typename types >
particle_iterator& OpenTissue::psys::System< types >::operator() ( unsigned int  idx  )  [inline]
template<typename types >
const_particle_iterator& OpenTissue::psys::System< types >::operator() ( unsigned int  idx  )  const [inline]
template<typename types >
particle_iterator OpenTissue::psys::System< types >::particle_begin (  )  [inline]
template<typename types >
const_particle_iterator OpenTissue::psys::System< types >::particle_begin (  )  const [inline]
template<typename types >
particle_iterator OpenTissue::psys::System< types >::particle_end (  )  [inline]
template<typename types >
const_particle_iterator OpenTissue::psys::System< types >::particle_end (  )  const [inline]
template<typename types >
std::size_t OpenTissue::psys::System< types >::particles_size (  )  const [inline]
template<typename types >
real_type& OpenTissue::psys::System< types >::time (  )  [inline]
template<typename types >
real_type const& OpenTissue::psys::System< types >::time (  )  const [inline]

Member Data Documentation

template<typename types >
particle_container OpenTissue::psys::System< types >::m_particles [protected]

A vector of all particles in the cluster.

template<typename types >
real_type OpenTissue::psys::System< types >::m_time [protected]

Current time.


The documentation for this class was generated from the following file: