Abstract base class for 2-D grid-based emitters.
More...
#include <jet/grid_emitter2.h>
|
virtual void | onUpdate (double currentTimeInSeconds, double timeIntervalInSeconds)=0 |
|
Abstract base class for 2-D grid-based emitters.
◆ OnBeginUpdateCallback
Callback function type for update calls.
This type of callback function will take the current time and time interval in seconds.
◆ GridEmitter2()
jet::GridEmitter2::GridEmitter2 |
( |
| ) |
|
◆ ~GridEmitter2()
virtual jet::GridEmitter2::~GridEmitter2 |
( |
| ) |
|
|
virtual |
◆ isEnabled()
bool jet::GridEmitter2::isEnabled |
( |
| ) |
const |
Returns true if the emitter is enabled.
◆ onUpdate()
virtual void jet::GridEmitter2::onUpdate |
( |
double |
currentTimeInSeconds, |
|
|
double |
timeIntervalInSeconds |
|
) |
| |
|
protectedpure virtual |
◆ setIsEnabled()
void jet::GridEmitter2::setIsEnabled |
( |
bool |
enabled | ) |
|
Sets true/false to enable/disable the emitter.
◆ setOnBeginUpdateCallback()
Sets the callback function to be called when GridEmitter2::update function is invoked.
The callback function takes current simulation time in seconds unit. Use this callback to track any motion or state changes related to this emitter.
- Parameters
-
[in] | callback | The callback function. |
◆ update()
void jet::GridEmitter2::update |
( |
double |
currentTimeInSeconds, |
|
|
double |
timeIntervalInSeconds |
|
) |
| |
Updates the emitter state from currentTimeInSeconds
to the following time-step.
The documentation for this class was generated from the following file: