FastLED 3.9.15
Loading...
Searching...
No Matches
fl::XYRasterSparse_RGB8 Class Reference

Detailed Description

Definition at line 228 of file raster_sparse.h.

#include <raster_sparse.h>

+ Collaboration diagram for fl::XYRasterSparse_RGB8:

Public Types

using const_iterator = fl::unordered_map<vec2<u16>, CRGB>::const_iterator
 
using iterator = fl::unordered_map<vec2<u16>, CRGB>::iterator
 

Public Member Functions

 XYRasterSparse_RGB8 () FL_NOEXCEPT=default
 
 XYRasterSparse_RGB8 (const XYRasterSparse_RGB8 &) FL_NOEXCEPT=default
 
 XYRasterSparse_RGB8 (u16 width, u16 height)
 
 XYRasterSparse_RGB8 (XYRasterSparse_RGB8 &&) FL_NOEXCEPT=default
 
pair< bool, CRGBat (u16 x, u16 y) const
 
iterator begin ()
 
const_iterator begin () const
 
rect< u16 > bounds () const
 
rect< u16 > bounds_pixels () const
 
XYRasterSparse_RGB8clear ()
 
void draw (const XYMap &xymap, fl::span< 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_RGB8operator= (XYRasterSparse_RGB8 &&) FL_NOEXCEPT=default
 
XYRasterSparse_RGB8operator= (XYRasterSparse_RGB8 &) FL_NOEXCEPT=default
 
void rasterize (const vec2< u16 > &pt, const CRGB &color)
 
XYRasterSparse_RGB8reset ()
 
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
 
unordered_map< vec2< u16 >, CRGB *, FastHashKey, EqualToKey, kMaxCacheSizemCache
 
HashMapLarge mSparseGrid
 

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