|
FastLED 3.9.15
|
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. | |
| PixelIterator & | get () |
| Get the type-erased PixelIterator. | |
| const PixelIterator & | get () 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< PixelIterator > | mPixelIterator |
| Rgbw | mRgbw |
| Rgbww | mRgbww |
| fl::shared_ptr< const XYMap > | mXyMap |