|
FastLED 3.9.15
|
Definition at line 34 of file screenmap.h.
#include <screenmap.h>
Public Member Functions | |
| ScreenMap ()=default | |
| ScreenMap (const ScreenMap &other) | |
| ScreenMap (const vec2f *lut, u32 length, float diameter=-1.0) | |
| template<u32 N> | |
| ScreenMap (const vec2f(&lut)[N], float diameter=-1.0) | |
| ScreenMap (ScreenMap &&other) | |
| ScreenMap (u32 length, float mDiameter=-1.0f) | |
| void | addOffset (const vec2f &p) |
| void | addOffsetX (float x) |
| void | addOffsetY (float y) |
| vec2f | getBounds () const |
| float | getDiameter () const |
| u32 | getLength () const |
| vec2f | mapToIndex (u32 x) const |
| ScreenMap & | operator= (const ScreenMap &other) |
| ScreenMap & | operator= (ScreenMap &&other) |
| vec2f & | operator[] (u32 x) |
| const vec2f & | operator[] (u32 x) const |
| void | set (u16 index, const vec2f &p) |
| void | setDiameter (float diameter) |
Static Public Member Functions | |
| static ScreenMap | Circle (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f, float completion=1.0f) |
| static ScreenMap | DefaultStrip (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f) |
| static bool | ParseJson (const char *jsonStrScreenMap, const char *screenMapName, ScreenMap *screenmap, string *err=nullptr) |
| static bool | ParseJson (const char *jsonStrScreenMap, fl::fl_map< string, ScreenMap > *segmentMaps, string *err=nullptr) |
| static void | toJson (const fl::fl_map< string, ScreenMap > &, fl::Json *doc) |
| static void | toJsonStr (const fl::fl_map< string, ScreenMap > &, string *jsonBuffer) |
Static Private Member Functions | |
| static const vec2f & | empty () |
Private Attributes | |
| u32 | length = 0 |
| float | mDiameter = -1.0f |
| LUTXYFLOATPtr | mLookUpTable |