Go to the documentation of this file.
7 #ifndef INCLUDE_JET_GRID_EMITTER3_H_
8 #define INCLUDE_JET_GRID_EMITTER3_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_EMITTER3_H_
GridEmitter3()
Constructs an emitter.
virtual ~GridEmitter3()
Destructor.
Definition: advection_solver2.h:18
Abstract base class for 3-D grid-based emitters.
Definition: grid_emitter3.h:22
bool isEnabled() const
Returns true if the emitter is enabled.
void update(double currentTimeInSeconds, double timeIntervalInSeconds)
virtual void onUpdate(double currentTimeInSeconds, double timeIntervalInSeconds)=0
void setOnBeginUpdateCallback(const OnBeginUpdateCallback &callback)
Sets the callback function to be called when GridEmitter3::update function is invoked.
std::function< void(double, double)> OnBeginUpdateCallback
Callback function type for update calls.
Definition: grid_emitter3.h:30
void setIsEnabled(bool enabled)
Sets true/false to enable/disable the emitter.
std::shared_ptr< GridEmitter3 > GridEmitter3Ptr
Shared pointer type for the GridEmitter3.
Definition: grid_emitter3.h:70