20template<
typename Signature>
class function;
23template<
typename T>
struct vec2;
30template<
typename T>
class LUT;
47 float cm_led_diameter = 0.5f,
51 float cm_led_diameter = 0.2f,
106 static
bool ParseJson(const
char *jsonStrScreenMap,
110 static
bool ParseJson(const
char *jsonStrScreenMap,
void addOffset(const vec2f &p) FL_NO_EXCEPT
static void toJsonStr(const fl::flat_map< string, ScreenMap > &, string *jsonBuffer) FL_NO_EXCEPT
static ScreenMap DefaultStrip(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f) FL_NO_EXCEPT
static ScreenMap Circle(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f) FL_NO_EXCEPT
bool hasShapes() const FL_NO_EXCEPT
void setSourceXYMap(const fl::shared_ptr< XYMap > &xymap) FL_NO_EXCEPT
Set the source XYMap (used for pixel transformation during encoding)
const XYMap * getXYMap() const FL_NO_EXCEPT
Get the source XYMap as a raw const pointer.
ScreenMap & addOffsetY(float y) FL_NO_EXCEPT
ScreenMap & addOffsetX(float x) FL_NO_EXCEPT
fl::vector< Shape > mShapes
const vec2f & operator[](u32 x) const FL_NO_EXCEPT
void setShape(u32 index, Shape::Type type, const vec2f *vertices, u32 count, float thickness=0.0f) FL_NO_EXCEPT
static bool ParseJson(const char *jsonStrScreenMap, fl::flat_map< string, ScreenMap > *segmentMaps, string *err=nullptr) FL_NO_EXCEPT
ScreenMap & operator=(const ScreenMap &other) FL_NO_EXCEPT
float getDiameter() const FL_NO_EXCEPT
LUTXYFLOATPtr mLookUpTable
vec2f mapToIndex(u32 x) const FL_NO_EXCEPT
static const vec2f & empty() FL_NO_EXCEPT
u32 getShapeCount() const FL_NO_EXCEPT
void setDiameter(float diameter) FL_NO_EXCEPT
bool hasSourceXYMap() const FL_NO_EXCEPT
Check if source XYMap is available.
void set(u16 index, const vec2f &p) FL_NO_EXCEPT
u32 getLength() const FL_NO_EXCEPT
vec2f getBounds() const FL_NO_EXCEPT
static void toJson(const fl::flat_map< string, ScreenMap > &, fl::json *doc) FL_NO_EXCEPT
const XYMapPtr & getSourceXYMapPtr() const FL_NO_EXCEPT
Get the source XYMap shared pointer if available.
fl::XYPathPtr getShape(int which)
shared_ptr< LUTXYFLOAT > LUTXYFLOATPtr
shared_ptr< XYMap > XYMapPtr
InputGamut g FL_NO_EXCEPT
Base definition for an LED controller.
fl::vector< vec2f > vertices