|
FastLED 3.9.15
|
Definition at line 237 of file raster_sparse.h.
#include <raster_sparse.h>
Collaboration diagram for fl::XYRasterSparse_CRGB:Public Types | |
| using | const_iterator = fl::HashMap<vec2<u16>, CRGB>::const_iterator |
| using | iterator = fl::HashMap<vec2<u16>, CRGB>::iterator |
Public Member Functions | |
| XYRasterSparse_CRGB ()=default | |
| XYRasterSparse_CRGB (const XYRasterSparse_CRGB &)=default | |
| XYRasterSparse_CRGB (u16 width, u16 height) | |
| XYRasterSparse_CRGB (XYRasterSparse_CRGB &&)=default | |
| pair< bool, CRGB > | at (u16 x, u16 y) const |
| iterator | begin () |
| const_iterator | begin () const |
| rect< u16 > | bounds () const |
| rect< u16 > | bounds_pixels () const |
| XYRasterSparse_CRGB & | clear () |
| void | draw (const XYMap &xymap, CRGB *out) |
| template<typename XYVisitor> | |
| void | draw (const XYMap &xymap, XYVisitor &visitor) |
| void | draw (Leds *leds) |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| u16 | height () const |
| XYRasterSparse_CRGB & | operator= (XYRasterSparse_CRGB &&)=default |
| XYRasterSparse_CRGB & | operator= (XYRasterSparse_CRGB &)=default |
| void | rasterize (const vec2< u16 > &pt, const CRGB &color) |
| XYRasterSparse_CRGB & | reset () |
| void | setBounds (const rect< u16 > &bounds) |
| void | setSize (u16 width, u16 height) |
| fl::size | size () const |
| u16 | width () const |
| void | write (const vec2< u16 > &pt, const CRGB &color) |
Static Public Attributes | |
| static const int | kMaxCacheSize = 8 |
Private Types | |
| using | EqualToKey = EqualTo<Key> |
| using | FastHashKey = FastHash<Key> |
| using | HashKey = Hash<Key> |
| using | HashMapLarge |
| using | Key = vec2<u16> |
| using | Value = CRGB |
Private Attributes | |
| fl::rect< u16 > | mAbsoluteBounds |
| bool | mAbsoluteBoundsSet = false |
| HashMap< vec2< u16 >, CRGB *, FastHashKey, EqualToKey, kMaxCacheSize > | mCache |
| HashMapLarge | mSparseGrid |