9 #include <utils/ColorRgb.h> 15 namespace Json {
class Value; }
20 ORDER_RGB, ORDER_RBG, ORDER_GRB, ORDER_BRG, ORDER_GBR, ORDER_BGR
23 inline QString colorOrderToString(
const ColorOrder colorOrder)
40 return "not-a-colororder";
43 inline ColorOrder stringToColorOrder(
const QString & order)
49 else if (order ==
"bgr")
53 else if (order ==
"rbg")
57 else if (order ==
"brg")
61 else if (order ==
"gbr")
65 else if (order ==
"grb")
70 std::cout <<
"Unknown color order defined (" << order.toStdString() <<
"). Using RGB." << std::endl;
129 std::vector<Led>& leds();
136 const std::vector<Led>& leds()
const;
140 std::vector<Led> mLeds;
double maxY_frac
The maximum horizontal scan line included for this leds color.
Definition: LedString.h:101
double maxX_frac
The maximum vertical scan line included for this leds color.
Definition: LedString.h:97
ColorOrder colorOrder
the color order
Definition: LedString.h:105
double minY_frac
The minimum horizontal scan line included for this leds color.
Definition: LedString.h:99
unsigned index
The index of the led.
Definition: LedString.h:92
The Led structure contains the definition of the image portion used to determine a single led's color...
Definition: LedString.h:89
int clone
id to clone
Definition: LedString.h:103
Definition: LedString.h:15
double minX_frac
The minimum vertical scan line included for this leds color.
Definition: LedString.h:95
The LedString contains the image integration information of the leds.
Definition: LedString.h:111