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

Detailed Description

Definition at line 39 of file raster_sparse.h.

#include <raster_sparse.h>

+ Collaboration diagram for fl::XYRasterU8Sparse:

Public Types

using const_iterator = fl::HashMap<vec2<u16>, u8>::const_iterator
 
using iterator = fl::HashMap<vec2<u16>, u8>::iterator
 

Public Member Functions

 XYRasterU8Sparse ()=default
 
 XYRasterU8Sparse (const XYRasterU8Sparse &)=default
 
 XYRasterU8Sparse (int width, int height)
 
 XYRasterU8Sparse (XYRasterU8Sparse &&)=default
 
pair< bool, u8at (u16 x, u16 y) const
 
iterator begin ()
 
const_iterator begin () const
 
rect< u16 > bounds () const
 
rect< u16 > bounds_pixels () const
 
XYRasterU8Sparseclear ()
 
void draw (const CRGB &color, const XYMap &xymap, CRGB *out)
 
void draw (const CRGB &color, Leds *leds)
 
template<typename XYVisitor>
void draw (const XYMap &xymap, XYVisitor &visitor)
 
void drawGradient (const Gradient &gradient, const XYMap &xymap, CRGB *out)
 
void drawGradient (const Gradient &gradient, Leds *leds)
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
u16 height () const
 
XYRasterU8Sparseoperator= (const XYRasterU8Sparse &)=default
 
XYRasterU8Sparseoperator= (XYRasterU8Sparse &&)=default
 
void rasterize (const span< const Tile2x2_u8 > &tiles)
 
void rasterize (const Tile2x2_u8 &tile)
 
void rasterize (const vec2< u16 > &pt, u8 value)
 
void rasterize_internal (const Tile2x2_u8 &tile, const rect< u16 > *optional_bounds=nullptr)
 
XYRasterU8Sparsereset ()
 
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, u8 value)
 

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 = u8
 

Private Attributes

fl::rect< u16 > mAbsoluteBounds
 
bool mAbsoluteBoundsSet = false
 
HashMap< vec2< u16 >, u8 *, FastHashKey, EqualToKey, kMaxCacheSizemCache
 
HashMapLarge mSparseGrid
 

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