#include <DynamicSystem.h>
Inheritance diagram for ani::DynamicSystem< __EntityType >:
Public Types | |
typedef __EntityType | EntityType |
typedef boost::shared_ptr< __EntityType > | EntityTypePtr |
typedef boost::shared_ptr< ani::Operator< __EntityType > > | OperatorPtr |
typedef std::vector< EntityTypePtr > | EntityList |
typedef std::list< OperatorPtr > | OperatorList |
Public Methods | |
DynamicSystem () | |
constructor. More... | |
virtual | ~DynamicSystem () |
if you're seeing an error about the destructor, then maybe you're not creating the DynamicSystem with new ? More... | |
EntityList & | entities () |
get access to the list of entities so you can render them etc... More... | |
const EntityList & | entities () const |
OperatorList & | operators () |
const OperatorList & | operators () const |
void | push_back (OperatorPtr op) |
add a function to the system to be executed last. More... | |
void | push_back (EntityTypePtr ent) |
add an entity to the system O(1). More... | |
void | push_front (OperatorPtr op) |
add a function to the system to be executed first. More... | |
void | push_front (EntityTypePtr ent) |
add an entity to the system O(1). More... | |
void | remove (OperatorPtr op) |
remove an entity from the system O(1) specify its iterator... More... | |
void | clear () |
void | clearEntities () |
void | clearOperators () |
const float & | timeDelta () const |
virtual void | step (float timeDelta) |
void | setSolver (const std::string &solverName="heun") |
Protected Attributes | |
std::list< OperatorPtr > | mOps |
std::vector< EntityTypePtr > | mEntities |
ODEsolver< __EntityType > * | mSolver |
float | mTotalTime |
float | mTimeDelta |
|
Definition at line 51 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::step(). |
|
Definition at line 52 of file DynamicSystem.h. |
|
Definition at line 53 of file DynamicSystem.h. |
|
Definition at line 54 of file DynamicSystem.h. |
|
Definition at line 55 of file DynamicSystem.h. |
|
constructor.
|
|
if you're seeing an error about the destructor, then maybe you're not creating the DynamicSystem with new ?
|
|
get access to the list of entities so you can render them etc...
Definition at line 162 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mEntities. Referenced by gator::CollisionResponseOperator::exec(), gator::Acceleration::exec(), ani::ViscousDragOperator< __EntityType >::exec(), ani::GrowWithAgeOperator< __EntityType >::exec(), ani::GrimReaperOperator< __EntityType >::exec(), ani::GlobalForceOperator< __EntityType >::exec(), ani::CurrentOperator< __EntityType >::exec(), ani::ColorWithAgeOperator< __EntityType >::exec(), and ani::AccelerationOperator< __EntityType >::exec(). |
|
Definition at line 168 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mEntities. |
|
Definition at line 174 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mOps. |
|
Definition at line 180 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mOps. |
|
add a function to the system to be executed last.
Referenced by ani::FlameEmitter< __EntityType >::exec(), and ani::Torch< __EntityType >::Torch(). |
|
add an entity to the system O(1).
|
|
add a function to the system to be executed first.
|
|
add an entity to the system O(1).
|
|
remove an entity from the system O(1) specify its iterator... this function is useful only to operators (generally). Referenced by ani::SpringForceOperator< __EntityType >::exec(). |
|
Definition at line 244 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::clearEntities(), and ani::DynamicSystem< __EntityType >::clearOperators(). |
|
Definition at line 231 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mEntities. Referenced by ani::DynamicSystem< __EntityType >::clear(). |
|
Definition at line 237 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mOps. Referenced by ani::DynamicSystem< __EntityType >::clear(). |
|
Definition at line 266 of file DynamicSystem.h. References ani::DynamicSystem< __EntityType >::mTimeDelta. Referenced by ani::SpiralEmitter< __EntityType >::exec(), ani::GrimReaperOperator< __EntityType >::exec(), ani::FlameEmitter< __EntityType >::exec(), and ani::DynamicSystem< __EntityType >::step(). |
|
|
Definition at line 116 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::step(), and ani::Torch< __EntityType >::Torch(). |
|
Definition at line 129 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::clearOperators(), and ani::DynamicSystem< __EntityType >::operators(). |
|
Definition at line 130 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::clearEntities(), ani::DynamicSystem< __EntityType >::entities(), and ani::DynamicSystem< __EntityType >::step(). |
|
Definition at line 131 of file DynamicSystem.h. Referenced by ani::DynamicSystem< ani::Body >::setSolver(), and ani::DynamicSystem< __EntityType >::step(). |
|
Definition at line 135 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::step(). |
|
Definition at line 136 of file DynamicSystem.h. Referenced by ani::DynamicSystem< __EntityType >::step(), and ani::DynamicSystem< __EntityType >::timeDelta(). |