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

Detailed Description

Adapter class that creates a PixelIterator from any color order.

This class takes a PixelController<RGB> and converts it to the requested color order, creating a type-erased PixelIterator for non-templated code.

Definition at line 25 of file pixel_iterator_any.h.

#include <pixel_iterator_any.h>

+ Collaboration diagram for fl::PixelIteratorAny:

Public Member Functions

template<typename PIXEL_CONTROLLER>
 PixelIteratorAny (PIXEL_CONTROLLER &controller, EOrder newOrder, Rgbw rgbw, Rgbww rgbww=RgbwwInvalid::value())
 
 PixelIteratorAny (PixelController< RGB > &controller, EOrder newOrder, Rgbw rgbw, Rgbww rgbww=RgbwwInvalid::value())
 Construct adapter with color order conversion.
 
PixelIteratorget ()
 Get the type-erased PixelIterator.
 
const PixelIteratorget () const
 
void init (PixelController< RGB > &controller, EOrder newOrder)
 Initialize the adapter with color order conversion.
 
 operator PixelIterator & ()
 Implicit conversion to PixelIterator reference.
 
void setXYMap (const fl::shared_ptr< const XYMap > &xymap)
 Set XYMap for pixel addressing.
 

Private Attributes

fl::variant< PixelController< RGB >, PixelController< RBG >, PixelController< GRB >, PixelController< GBR >, PixelController< BRG >, PixelController< BGR > > mAnyController
 
fl::Optional< PixelIteratormPixelIterator
 
Rgbw mRgbw
 
Rgbww mRgbww
 
fl::shared_ptr< const XYMapmXyMap
 

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