Go to the documentation of this file.
7 #ifndef INCLUDE_JET_GRID_EMITTER2_H_
8 #define INCLUDE_JET_GRID_EMITTER2_H_
40 void update(
double currentTimeInSeconds,
double timeIntervalInSeconds);
61 virtual void onUpdate(
double currentTimeInSeconds,
62 double timeIntervalInSeconds) = 0;
65 bool _isEnabled =
true;
74 #endif // INCLUDE_JET_GRID_EMITTER2_H_
virtual ~GridEmitter2()
Destructor.
GridEmitter2()
Constructs an emitter.
void update(double currentTimeInSeconds, double timeIntervalInSeconds)
Definition: advection_solver2.h:18
bool isEnabled() const
Returns true if the emitter is enabled.
Abstract base class for 2-D grid-based emitters.
Definition: grid_emitter2.h:22
std::function< void(double, double)> OnBeginUpdateCallback
Callback function type for update calls.
Definition: grid_emitter2.h:30
virtual void onUpdate(double currentTimeInSeconds, double timeIntervalInSeconds)=0
void setIsEnabled(bool enabled)
Sets true/false to enable/disable the emitter.
void setOnBeginUpdateCallback(const OnBeginUpdateCallback &callback)
Sets the callback function to be called when GridEmitter2::update function is invoked.
std::shared_ptr< GridEmitter2 > GridEmitter2Ptr
Shared pointer type for the GridEmitter2.
Definition: grid_emitter2.h:70