#include <sph_emitter.h>
Public Types | |
typedef Types::vector | vector |
typedef Types::particle | particle |
typedef Types::particle_container | particle_container |
typedef Types::particle_ptr_container | particle_ptr_container |
Public Member Functions | |
Emitter () | |
virtual | ~Emitter () |
bool | active () const |
bool | running () const |
size_t & | rate () |
const size_t & | rate () const |
size_t & | batch () |
const size_t & | batch () const |
virtual const vector & | center () const =0 |
bool | initialize (typename particle_container::iterator begin, typename particle_container::iterator end) |
void | start () |
bool | execute () |
void | stop () |
Protected Attributes | |
bool | m_running |
size_t | m_rate |
size_t | m_currate |
release rate, execution frequency | |
size_t | m_batch |
release rate, execution frequency | |
size_t | m_particles |
particle_ptr_container | m_pars |
SPH Particle Emitter Base Class.
typedef Types::particle OpenTissue::sph::Emitter< Types >::particle |
Reimplemented in OpenTissue::sph::CircleEmitter< Types >, and OpenTissue::sph::PointEmitter< Types >.
typedef Types::particle_container OpenTissue::sph::Emitter< Types >::particle_container |
typedef Types::particle_ptr_container OpenTissue::sph::Emitter< Types >::particle_ptr_container |
Reimplemented in OpenTissue::sph::CircleEmitter< Types >, and OpenTissue::sph::PointEmitter< Types >.
typedef Types::vector OpenTissue::sph::Emitter< Types >::vector |
Reimplemented in OpenTissue::sph::CircleEmitter< Types >, and OpenTissue::sph::PointEmitter< Types >.
OpenTissue::sph::Emitter< Types >::Emitter | ( | ) | [inline] |
Default Constructor.
virtual OpenTissue::sph::Emitter< Types >::~Emitter | ( | ) | [inline, virtual] |
Deconstructor.
bool OpenTissue::sph::Emitter< Types >::active | ( | ) | const [inline] |
Active
Return whether or not this emitter is still active, i.e. it still has unreleased particles.
size_t& OpenTissue::sph::Emitter< Types >::batch | ( | ) | [inline] |
Batch
const size_t& OpenTissue::sph::Emitter< Types >::batch | ( | ) | const [inline] |
Batch (read only)
virtual const vector& OpenTissue::sph::Emitter< Types >::center | ( | ) | const [pure virtual] |
Implemented in OpenTissue::sph::CircleEmitter< Types >, and OpenTissue::sph::PointEmitter< Types >.
bool OpenTissue::sph::Emitter< Types >::execute | ( | ) | [inline] |
Execute
bool OpenTissue::sph::Emitter< Types >::initialize | ( | typename particle_container::iterator | begin, | |
typename particle_container::iterator | end | |||
) | [inline] |
Initialize
begin | the first particle iterator. | |
end | the last particle iterator. |
const size_t& OpenTissue::sph::Emitter< Types >::rate | ( | ) | const [inline] |
Rate (read only)
size_t& OpenTissue::sph::Emitter< Types >::rate | ( | ) | [inline] |
Rate
bool OpenTissue::sph::Emitter< Types >::running | ( | ) | const [inline] |
Running
Return whether or not this emitter is still active, i.e. it still has unreleased particles.
void OpenTissue::sph::Emitter< Types >::start | ( | ) | [inline] |
Start
Starts the emitter.
void OpenTissue::sph::Emitter< Types >::stop | ( | ) | [inline] |
Stop
Stops the emitter (how odd).
size_t OpenTissue::sph::Emitter< Types >::m_batch [protected] |
release rate, execution frequency
size_t OpenTissue::sph::Emitter< Types >::m_currate [protected] |
release rate, execution frequency
particle_ptr_container OpenTissue::sph::Emitter< Types >::m_pars [protected] |
size_t OpenTissue::sph::Emitter< Types >::m_particles [protected] |
size_t OpenTissue::sph::Emitter< Types >::m_rate [protected] |
bool OpenTissue::sph::Emitter< Types >::m_running [protected] |