GradientRoundBorderStrategy Class Reference

#include <GradientRoundBorderStrategy.h>

Inherits BorderStrategy.

Inheritance diagram for GradientRoundBorderStrategy:

Inheritance graph
[legend]
Collaboration diagram for GradientRoundBorderStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GradientRoundBorderStrategy (void)
 ~GradientRoundBorderStrategy (void)
unsigned int getNumberSegements ()
void setNumberSegments (unsigned int nSegs)

Protected Member Functions

void draw (const std::vector< unsigned long > &selectedIds)
void createDisplayList ()

Protected Attributes

unsigned int nSegments
unsigned int dlBorderSelected
float dlScaleX
float dlScaleY

Detailed Description

This strategy extends the BorderStrategy by defining a round border with a fading gradient.

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


Constructor & Destructor Documentation

GradientRoundBorderStrategy::GradientRoundBorderStrategy ( void   ) 

Constructs a gradient round border strategy.

GradientRoundBorderStrategy::~GradientRoundBorderStrategy ( void   ) 

Destroys this strategy.


Member Function Documentation

unsigned int GradientRoundBorderStrategy::getNumberSegements (  )  [inline]

Returns the number of segments in which the border circle is divided.

Returns:
the number of segments in which the border circle is divided.

void GradientRoundBorderStrategy::setNumberSegments ( unsigned int  nSegs  )  [inline]

Sets the number of segments in which the border circle is divided.

Parameters:
nSegs the number of segments in which the border circle is divided.

void GradientRoundBorderStrategy::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 GradientRoundBorderStrategy::createDisplayList (  )  [protected, virtual]

Creates the display list to draw this border.

Reimplemented from BorderStrategy.


Member Data Documentation

unsigned int GradientRoundBorderStrategy::nSegments [protected]

The number of segments the border circle is divided.

unsigned int GradientRoundBorderStrategy::dlBorderSelected [protected]

The selected display list identifier.

float GradientRoundBorderStrategy::dlScaleX [protected]

The scaleX value currently used by the display list.

float GradientRoundBorderStrategy::dlScaleY [protected]

The scaleY value currently used by the display list.


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