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

Detailed Description

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, CRGBat (u16 x, u16 y) const
 
iterator begin ()
 
const_iterator begin () const
 
rect< u16 > bounds () const
 
rect< u16 > bounds_pixels () const
 
XYRasterSparse_CRGBclear ()
 
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_CRGBoperator= (XYRasterSparse_CRGB &&)=default
 
XYRasterSparse_CRGBoperator= (XYRasterSparse_CRGB &)=default
 
void rasterize (const vec2< u16 > &pt, const CRGB &color)
 
XYRasterSparse_CRGBreset ()
 
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, kMaxCacheSizemCache
 
HashMapLarge mSparseGrid
 

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