Atoms Crowd
7.0.0
|
Simiation Event. More...
#include <SimulationEvent.h>
Public Types | |
enum | EventType { kNone = 1 , kNative = 2 , kScript = 4 , kAnimClipNative = 8 , kAnimClipScript = 16 , kAgentTypeNative = 32 , kAgentTypeScript = 64 , kAll = 127 } |
Public Member Functions | |
SimulationEvent () | |
Constructor. | |
virtual | ~SimulationEvent () |
Destructor. | |
virtual void | load () |
Load fuction. More... | |
virtual void | unload () |
Unload fuction. More... | |
virtual void | initSimulation () |
Init simulation. More... | |
virtual void | initFrame () |
Init frame. More... | |
virtual void | computeFrame () |
Init frame. More... | |
virtual void | endFrame () |
End frame. More... | |
virtual void | endSimulation () |
End simulation. More... | |
virtual void | resetSimulation () |
Reset simulation. More... | |
virtual std::string | name () |
Gets the name. More... | |
virtual void | setName (const std::string &name) |
Sets the name. More... | |
virtual short | eventType () |
Gets the name. More... | |
virtual void | setEventType (short value) |
Sets the event type. More... | |
virtual AtomsCore::MapMetadata & | metadata () |
Returns the metadata map. | |
Simiation Event.
A simulation Event contains some functions that are called during the simulation. It's used to extend and add functionality to the main simulation loop. Derive this class and implement different virtual member to add new function event to the simulation.
|
virtual |
Init frame.
Called for each frame before atoms compute the pose of the agents
|
virtual |
End frame.
Called at the end of every frame
|
virtual |
End simulation.
Called at the end of the simulation, after the last frame
|
inlinevirtual |
Gets the name.
Gets the name of the simulation event
|
virtual |
Init frame.
Called at the beginning of every frame
|
virtual |
Init simulation.
Called at the beginning on the simulation, before the first frame
|
virtual |
Load fuction.
Called when the event is loaded, or when the simulation reset is called
|
inlinevirtual |
Gets the name.
Gets the name of the simulation event
|
virtual |
Reset simulation.
Called after a request to reset the simulation
|
inlinevirtual |
Sets the event type.
Sets the event type
|
inlinevirtual |
Sets the name.
Sets the name of the simulaiton event
|
virtual |
Unload fuction.
Called when the event is unloaded