Inheritance diagram for Eaagles::Basic::LcColorRotary:


Public Member Functions | |
| LcColorRotary () | |
| virtual bool | determineColor (const LCreal value) |
Protected Member Functions | |
| bool | setSlotColors (LcPairStream *const newStream) |
| bool | setSlotValues (const LcPairStream *const newStream) |
Private Attributes | |
| LcPairStream * | myColors |
| LCreal | myValues [MAX_VALUES] |
| int | numVals |
Static Private Attributes | |
| static const int | MAX_VALUES = 50 |
Takes a list of colors and breakpoints, and changes colors based
on the value given to it in comparison with the breakpoints
Form name: ColorRotary
Slots:
breakcolors: <PairStream> // sets colors
breakpoints: <PairStream> // sets our breakpoints
Example:
( Graphic
color: ( ColorRotary
colors: {
(rgb 1 0 1)
(hsv 0 1 1)
}
breakpoints: {
0
50
}
This will remain rgb 1 0 1 until the value hits 50 or more, in which
it switches to the next color
| Eaagles::Basic::LcColorRotary::LcColorRotary | ( | ) |
| bool Eaagles::Basic::LcColorRotary::determineColor | ( | const LCreal | value | ) | [virtual] |
Determine the corresponding color and breakpoint of 'value'.
| bool Eaagles::Basic::LcColorRotary::setSlotColors | ( | LcPairStream *const | newStream | ) | [protected] |
Slot table function to set the 'breakcolors' slot.
| bool Eaagles::Basic::LcColorRotary::setSlotValues | ( | const LcPairStream *const | newStream | ) | [protected] |
Slot table function to set the 'breakpoints' slot.
const int Eaagles::Basic::LcColorRotary::MAX_VALUES = 50 [static, private] |
colors (rgba value)
values
int Eaagles::Basic::LcColorRotary::numVals [private] |
number of values
1.5.0