GradientCircleStrategy Class Reference

#include <GradientCircleStrategy.h>

List of all members.

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]


Detailed Description

This strategy draws a circle with a gradient effect.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
September 25, 2007


Constructor & Destructor Documentation

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.


Member Function Documentation

unsigned char* GradientCircleStrategy::getColor (  )  [inline]

Returns the color of this circle.

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.

Parameters:
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.

Parameters:
selectedIds the list of currently selected ids.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:07 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2