#include <psys_particle.h>
Public Types | |
typedef types::math_types | math_types |
typedef math_types::real_type | real_type |
typedef math_types::vector3_type | vector3_type |
typedef types::system_type | system_type |
Public Member Functions | |
Particle () | |
void | bind (vector3_type const &r) |
void | release () |
vector3_type & | position () |
vector3_type const & | position () const |
vector3_type & | old_position () |
vector3_type const & | old_position () const |
vector3_type & | velocity () |
vector3_type const & | velocity () const |
vector3_type & | force () |
vector3_type const & | force () const |
vector3_type & | acceleration () |
vector3_type const & | acceleration () const |
real_type & | inv_mass () |
real_type const & | inv_mass () const |
real_type & | mass () |
real_type const & | mass () const |
Protected Attributes | |
bool | m_coupled |
Boolean flag indicating whether the particle position is coupled. Default is false. | |
vector3_type * | m_ptr_r |
vector3_type | m_r |
A binding to the current position. | |
vector3_type | m_old_r |
The old position (ie. in last iteration of the particle system the particle is in). | |
vector3_type | m_v |
The current velocity. | |
vector3_type | m_f |
Total Force (Accumulator). | |
vector3_type | m_a |
Total acceleration. (F = m a -> a = F/m). | |
real_type | m_inv_mass |
Inverse mass (a value of 0 means a fixed particle). | |
real_type | m_mass |
The mass (a value of infinity means a fixed particle). |
typedef types::math_types OpenTissue::psys::Particle< types >::math_types |
typedef math_types::real_type OpenTissue::psys::Particle< types >::real_type |
typedef types::system_type OpenTissue::psys::Particle< types >::system_type |
Reimplemented from OpenTissue::psys::ConnectorFacade< types >.
typedef math_types::vector3_type OpenTissue::psys::Particle< types >::vector3_type |
OpenTissue::psys::Particle< types >::Particle | ( | ) | [inline] |
vector3_type& OpenTissue::psys::Particle< types >::acceleration | ( | ) | [inline] |
vector3_type const& OpenTissue::psys::Particle< types >::acceleration | ( | ) | const [inline] |
void OpenTissue::psys::Particle< types >::bind | ( | vector3_type const & | r | ) | [inline] |
vector3_type& OpenTissue::psys::Particle< types >::force | ( | ) | [inline] |
vector3_type const& OpenTissue::psys::Particle< types >::force | ( | ) | const [inline] |
real_type& OpenTissue::psys::Particle< types >::inv_mass | ( | ) | [inline] |
real_type const& OpenTissue::psys::Particle< types >::inv_mass | ( | ) | const [inline] |
real_type const& OpenTissue::psys::Particle< types >::mass | ( | ) | const [inline] |
real_type& OpenTissue::psys::Particle< types >::mass | ( | ) | [inline] |
vector3_type& OpenTissue::psys::Particle< types >::old_position | ( | ) | [inline] |
vector3_type const& OpenTissue::psys::Particle< types >::old_position | ( | ) | const [inline] |
vector3_type const& OpenTissue::psys::Particle< types >::position | ( | ) | const [inline] |
vector3_type& OpenTissue::psys::Particle< types >::position | ( | ) | [inline] |
void OpenTissue::psys::Particle< types >::release | ( | ) | [inline] |
vector3_type const& OpenTissue::psys::Particle< types >::velocity | ( | ) | const [inline] |
vector3_type& OpenTissue::psys::Particle< types >::velocity | ( | ) | [inline] |
vector3_type OpenTissue::psys::Particle< types >::m_a [protected] |
Total acceleration. (F = m a -> a = F/m).
bool OpenTissue::psys::Particle< types >::m_coupled [protected] |
Boolean flag indicating whether the particle position is coupled. Default is false.
vector3_type OpenTissue::psys::Particle< types >::m_f [protected] |
Total Force (Accumulator).
real_type OpenTissue::psys::Particle< types >::m_inv_mass [protected] |
Inverse mass (a value of 0 means a fixed particle).
real_type OpenTissue::psys::Particle< types >::m_mass [protected] |
The mass (a value of infinity means a fixed particle).
vector3_type OpenTissue::psys::Particle< types >::m_old_r [protected] |
The old position (ie. in last iteration of the particle system the particle is in).
vector3_type* OpenTissue::psys::Particle< types >::m_ptr_r [protected] |
vector3_type OpenTissue::psys::Particle< types >::m_r [protected] |
A binding to the current position.
vector3_type OpenTissue::psys::Particle< types >::m_v [protected] |
The current velocity.