Eaagles::Basic::LcColorRotary Class Reference

Inherits Eaagles::Basic::LcColor.

Inheritance diagram for Eaagles::Basic::LcColorRotary:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Basic::LcColorRotary:

Collaboration graph
[legend]
List of all members.

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

LcPairStreammyColors
LCreal myValues [MAX_VALUES]
int numVals

Static Private Attributes

static const int MAX_VALUES = 50

Detailed Description

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 


Constructor & Destructor Documentation

Eaagles::Basic::LcColorRotary::LcColorRotary (  ) 


Member Function Documentation

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.


Member Data Documentation

const int Eaagles::Basic::LcColorRotary::MAX_VALUES = 50 [static, private]

LcPairStream* Eaagles::Basic::LcColorRotary::myColors [private]

colors (rgba value)

LCreal Eaagles::Basic::LcColorRotary::myValues[MAX_VALUES] [private]

values

int Eaagles::Basic::LcColorRotary::numVals [private]

number of values


Generated on Tue Dec 19 16:26:07 2006 for Eaagles by  doxygen 1.5.0