FastLED 3.9.3
Loading...
Searching...
No Matches
ScreenMap Class Reference

Detailed Description

Definition at line 29 of file screenmap.h.

Public Member Functions

 ScreenMap (uint32_t length, float mDiameter=-1.0f)
 
 ScreenMap (const pair_xy_float *lut, uint32_t length, float diameter=-1.0)
 
template<uint32_t N>
 ScreenMap (const pair_xy_float(&lut)[N], float diameter=-1.0)
 
 ScreenMap (const ScreenMap &other)
 
const pair_xy_floatoperator[] (uint32_t x) const
 
void set (uint16_t index, const pair_xy_float &p)
 
pair_xy_floatoperator[] (uint32_t x)
 
void setDiameter (float diameter)
 
ScreenMapoperator= (const ScreenMap &other)
 
pair_xy_float mapToIndex (uint32_t x) const
 
uint32_t getLength () const
 
float getDiameter () const
 

Static Public Member Functions

static ScreenMap Circle (int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.5f)
 
static void ParseJson (const char *jsonStrScreenMap, FixedMap< Str, ScreenMap, 16 > *segmentMaps)
 
static void toJsonStr (const FixedMap< Str, ScreenMap, 16 > &, Str *jsonBuffer)
 
static void toJson (const FixedMap< Str, ScreenMap, 16 > &, FLArduinoJson::JsonDocument *doc)
 

Constructor & Destructor Documentation

◆ ScreenMap() [1/4]

ScreenMap::ScreenMap ( uint32_t length,
float mDiameter = -1.0f )
inline

Definition at line 37 of file screenmap.h.

◆ ScreenMap() [2/4]

ScreenMap::ScreenMap ( const pair_xy_float * lut,
uint32_t length,
float diameter = -1.0 )
inline

Definition at line 46 of file screenmap.h.

◆ ScreenMap() [3/4]

template<uint32_t N>
ScreenMap::ScreenMap ( const pair_xy_float(&) lut[N],
float diameter = -1.0 )
inline

Definition at line 55 of file screenmap.h.

◆ ScreenMap() [4/4]

ScreenMap::ScreenMap ( const ScreenMap & other)
inline

Definition at line 64 of file screenmap.h.

Member Function Documentation

◆ Circle()

ScreenMap ScreenMap::Circle ( int numLeds,
float cm_between_leds = 1.5f,
float cm_led_diameter = 0.5f )
static

Definition at line 19 of file screenmap.cpp.

◆ getDiameter()

float ScreenMap::getDiameter ( ) const
inline

Definition at line 120 of file screenmap.h.

◆ getLength()

uint32_t ScreenMap::getLength ( ) const
inline

Definition at line 118 of file screenmap.h.

◆ mapToIndex()

pair_xy_float ScreenMap::mapToIndex ( uint32_t x) const
inline

Definition at line 109 of file screenmap.h.

◆ operator=()

ScreenMap & ScreenMap::operator= ( const ScreenMap & other)
inline

Definition at line 100 of file screenmap.h.

◆ operator[]() [1/2]

pair_xy_float & ScreenMap::operator[] ( uint32_t x)
inline

Definition at line 86 of file screenmap.h.

◆ operator[]() [2/2]

const pair_xy_float & ScreenMap::operator[] ( uint32_t x) const
inline

Definition at line 70 of file screenmap.h.

◆ ParseJson()

void ScreenMap::ParseJson ( const char * jsonStrScreenMap,
FixedMap< Str, ScreenMap, 16 > * segmentMaps )
static

Definition at line 35 of file screenmap.cpp.

◆ set()

void ScreenMap::set ( uint16_t index,
const pair_xy_float & p )
inline

Definition at line 78 of file screenmap.h.

◆ setDiameter()

void ScreenMap::setDiameter ( float diameter)
inline

Definition at line 97 of file screenmap.h.

◆ toJson()

void ScreenMap::toJson ( const FixedMap< Str, ScreenMap, 16 > & segmentMaps,
FLArduinoJson::JsonDocument * doc )
static

Definition at line 61 of file screenmap.cpp.

◆ toJsonStr()

void ScreenMap::toJsonStr ( const FixedMap< Str, ScreenMap, 16 > & segmentMaps,
Str * jsonBuffer )
static

Definition at line 83 of file screenmap.cpp.


The documentation for this class was generated from the following files: