Loading...
Searching...
No Matches
ParticleEmitter3.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_PARTICLE_EMITTER3_HPP
12#define CUBBYFLOW_PARTICLE_EMITTER3_HPP
13
15
16namespace CubbyFlow
17{
92
95} // namespace CubbyFlow
96
97#endif
Definition Matrix.hpp:30
Abstract base class for 3-D particle emitter.
Definition ParticleEmitter3.hpp:22
virtual void OnSetTarget(const ParticleSystemData3Ptr &particles)
Called when ParticleEmitter3::SetTarget is executed.
void SetIsEnabled(bool enabled)
Sets true/false to enable/disable the emitter.
void SetTarget(const ParticleSystemData3Ptr &particles)
Sets the target particle system to emit.
ParticleEmitter3(ParticleEmitter3 &&) noexcept=default
Default move constructor.
virtual void OnUpdate(double currentTimeInSeconds, double timeIntervalInSeconds)=0
Called when ParticleEmitter3::Update is executed.
void Update(double currentTimeInSeconds, double timeIntervalInSeconds)
bool GetIsEnabled() const
Returns true if the emitter is enabled.
void SetOnBeginUpdateCallback(const OnBeginUpdateCallback &callback)
Sets the callback function to be called when ParticleEmitter3::Update function is invoked.
const ParticleSystemData3Ptr & GetTarget() const
Returns the target particle system to emit.
std::function< void(ParticleEmitter3 *, double, double)> OnBeginUpdateCallback
Callback function type for update calls.
Definition ParticleEmitter3.hpp:31
ParticleEmitter3()=default
Default constructor.
ParticleEmitter3(const ParticleEmitter3 &)=default
Default copy constructor.
Definition pybind11Utils.hpp:21
std::shared_ptr< ParticleSystemData3 > ParticleSystemData3Ptr
Shared pointer type of ParticleSystemData3.
Definition ParticleSystemData.hpp:284
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738
std::shared_ptr< ParticleEmitter3 > ParticleEmitter3Ptr
Shared pointer for the ParticleEmitter3 type.
Definition ParticleEmitter3.hpp:94