FastLED 3.10.6
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 24 of file pixel_iterator_any.h.

#include <pixel_iterator_any.h>

+ Collaboration diagram for fl::PixelIteratorAny:

Public Member Functions

 PixelIteratorAny (const PixelIteratorAny &other) FL_NO_EXCEPT
 Copy: the iterator must be re-aimed, not copied.
 
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.
 
 PixelIteratorAny (PixelIteratorAny &&other) FL_NO_EXCEPT
 
PixelIterator & get ()
 Get the type-erased PixelIterator.
 
const PixelIterator & get () const
 
 operator PixelIterator & ()
 Implicit conversion to PixelIterator reference.
 
PixelIteratorAny & operator= (const PixelIteratorAny &other) FL_NO_EXCEPT
 
PixelIteratorAny & operator= (PixelIteratorAny &&other) FL_NO_EXCEPT
 
void setXYMap (const fl::shared_ptr< const XYMap > &xymap)
 Set XYMap for pixel addressing.
 

Private Member Functions

void bindIterator ()
 Point mPixelIterator at this object's own controller.
 

Private Attributes

PixelController< RGB > mController
 
EOrder mOrder
 
fl::Optional< PixelIterator > mPixelIterator
 
Rgbw mRgbw
 
Rgbww mRgbww
 
fl::shared_ptr< const XYMap > mXyMap
 

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