pixled-lib
1.0
|
#include <mapping.h>
Public Member Functions | |
const std::vector< led > & | leds () const |
void | push (const led &led) |
box | boundingBox () const |
The Mapping is an essential pixled component.
It is used to described all the leds contained in the current system, so that the Runtime can apply an Animation on each led.
A Mapping can be used to define any 2D led shape, without any restriction.
See the mapping namespace for predefined mappings.
|
inline |
Returns all the leds contained in this mapping.
void pixled::Mapping::push | ( | const led & | led | ) |
Push a new led in the mapping. It is the responsability of the user to ensure that the led indexes are consistent.
led | led to add to the mapping |
|
inline |
Minimalist box around all the leds currently contained in the mapping.
The bounding box is updated each time push() is called.