#include <GradientCircleStrategy.h>
Public Member Functions | |
GradientCircleStrategy (unsigned char r=255, unsigned char g=255, unsigned char b=255, unsigned char a=255) | |
~GradientCircleStrategy (void) | |
unsigned char * | getColor () |
void | setColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) |
Protected Member Functions | |
void | createDisplayList () |
void | draw (const std::vector< unsigned long > &selectedIds) |
Protected Attributes | |
unsigned int | dlCircle |
unsigned char | color [4] |
GradientCircleStrategy::GradientCircleStrategy | ( | unsigned char | r = 255 , |
|
unsigned char | g = 255 , |
|||
unsigned char | b = 255 , |
|||
unsigned char | a = 255 | |||
) |
Constructs a gradient circle strategy.
GradientCircleStrategy::~GradientCircleStrategy | ( | void | ) |
Destroys this strategy.
unsigned char* GradientCircleStrategy::getColor | ( | ) | [inline] |
Returns the color of this circle.
void GradientCircleStrategy::setColor | ( | unsigned char | r, | |
unsigned char | g, | |||
unsigned char | b, | |||
unsigned char | a = 255 | |||
) | [inline] |
Sets the color of this circle.
r | the red component of the color to be set | |
g | the green component of the color to be set | |
b | the blue component of the color to be set | |
a | the alpha component of the color to be set |
void GradientCircleStrategy::createDisplayList | ( | ) | [protected] |
Constructs the display list for drawing a circle with gradient.
void GradientCircleStrategy::draw | ( | const std::vector< unsigned long > & | selectedIds | ) | [protected] |
Defines the drawing strategy for the associated component.
selectedIds | the list of currently selected ids. |
unsigned int GradientCircleStrategy::dlCircle [protected] |
The identifier of the display list that draws the circle.
unsigned char GradientCircleStrategy::color[4] [protected] |
The color of this circle in RGBA.