GradientBorderStrategy Class Reference

#include <GradientBorderStrategy.h>

Inherits BorderStrategy.

Inheritance diagram for GradientBorderStrategy:

Inheritance graph
[legend]
Collaboration diagram for GradientBorderStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GradientBorderStrategy (void)
 ~GradientBorderStrategy (void)

Protected Member Functions

void draw (const std::vector< unsigned long > &selectedIds)
void drawGradientBorder (float *gradientColor, float w, float *v0, float *v1, float *v2, float *v3)
void createDisplayList ()

Protected Attributes

unsigned int dlBorderSelected

Detailed Description

This strategy specializes the BorderStrategy to draw a border with a decreasing alpha gradient towards the outside of the component.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
August 2, 2007


Constructor & Destructor Documentation

GradientBorderStrategy::GradientBorderStrategy ( void   ) 

Constructs a default gradient border strategy.

GradientBorderStrategy::~GradientBorderStrategy ( void   ) 

Destroys this gradient border strategy.


Member Function Documentation

void GradientBorderStrategy::draw ( const std::vector< unsigned long > &  selectedIds  )  [protected, virtual]

Defines the drawing strategy for the associated component.

Parameters:
enablePicking if true, draw for selection mode (adding the component id).

Reimplemented from BorderStrategy.

void GradientBorderStrategy::drawGradientBorder ( float *  gradientColor,
float  w,
float *  v0,
float *  v1,
float *  v2,
float *  v3 
) [protected]

Draws the gradient border.

Parameters:
gradientColor the array of 4 floats with the color of the gradient border.
w the width of the border in pixels.

void GradientBorderStrategy::createDisplayList (  )  [protected, virtual]

Creates the display list to draw this border.

Reimplemented from BorderStrategy.


Member Data Documentation

unsigned int GradientBorderStrategy::dlBorderSelected [protected]

The selected display list identifier.


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