#include <GradientBorderStrategy.h>
Inherits BorderStrategy.
Inheritance diagram for GradientBorderStrategy:
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 |
GradientBorderStrategy::GradientBorderStrategy | ( | void | ) |
Constructs a default gradient border strategy.
GradientBorderStrategy::~GradientBorderStrategy | ( | void | ) |
Destroys this gradient border strategy.
void GradientBorderStrategy::draw | ( | const std::vector< unsigned long > & | selectedIds | ) | [protected, virtual] |
Defines the drawing strategy for the associated component.
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.
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.
unsigned int GradientBorderStrategy::dlBorderSelected [protected] |
The selected display list identifier.