80 bool geti16All(
fl::size
x, i16 *curr, i16 *prev, i16 *diff) const;
88 bool has(
fl::size
x) const;
156 mSim->getDampenening());
157 if (stencil_was_user_set) {
158 mSim->setStencil(saved_stencil);
180 float getf(fl::size
x, fl::size
y)
const;
184 i16
geti16(fl::size
x, fl::size
y)
const;
187 bool geti16All(fl::size
x, fl::size
y, i16 *curr, i16 *prev,
198 bool has(fl::size
x, fl::size
y)
const;
WaveSimulation1D_Real & real()
float getf(fl::size x) const
~WaveSimulation1D() FL_NOEXCEPT=default
fl::unique_ptr< WaveSimulation1D_Real > mSim
void setEasingMode(U8EasingFunction mode)
void setExtraFrames(u8 extra)
i16 geti16Previous(fl::size x) const
int getDampenening() const
void setSpeed(float speed)
void setDampening(int damp)
void setSuperSample(SuperSample factor)
bool geti16All(fl::size x, i16 *curr, i16 *prev, i16 *diff) const
u8 getu8(fl::size x) const
void init(u32 length, SuperSample factor, float speed, int dampening)
WaveSimulation1D(u32 length, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, int dampening=6)
i8 geti8(fl::size x) const
void setHalfDuplex(bool on)
void setf(fl::size x, float value)
bool has(fl::size x) const
i16 geti16(fl::size x) const
void setSuperSample(SuperSample factor)
i8 geti8(fl::size x, fl::size y) const
WaveSimulation2D(u32 W, u32 H, SuperSample factor=SuperSample::SUPER_SAMPLE_NONE, float speed=0.16f, float dampening=6.0f)
void seti16(fl::size x, fl::size y, i16 value)
void setStencil(LaplacianStencil s) FL_NOEXCEPT
i16 geti16(fl::size x, fl::size y) const
int getDampenening() const
fl::Grid< i16 > mChangeGrid
void setExtraFrames(u8 extra)
LaplacianStencil getStencil() const FL_NOEXCEPT
void setXCylindrical(bool on)
float getf(fl::size x, fl::size y) const
bool getUseChangeGrid() const
i16 geti16Previous(fl::size x, fl::size y) const
void setSpeed(float speed)
WaveSimulation2D_Real & real()
void setEasingMode(U8EasingFunction mode)
bool geti16All(fl::size x, fl::size y, i16 *curr, i16 *prev, i16 *diff) const
~WaveSimulation2D() FL_NOEXCEPT=default
void setf(fl::size x, fl::size y, float value)
bool has(fl::size x, fl::size y) const
void setDampening(int damp)
u8 getu8(fl::size x, fl::size y) const
void init(u32 width, u32 height, SuperSample factor, float speed, int dampening)
fl::unique_ptr< WaveSimulation2D_Real > mSim
void setUseChangeGrid(bool enabled)
void setHalfDuplex(bool on)
fl::UISlider length("Length", 1.0f, 0.0f, 1.0f, 0.01f)
fl::UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
constexpr int type_rank< T >::value
Base definition for an LED controller.