RoundBorderStrategy Class Reference

#include <RoundBorderStrategy.h>

Inherits BorderStrategy.

Inheritance diagram for RoundBorderStrategy:

Inheritance graph
[legend]
Collaboration diagram for RoundBorderStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

unsigned int nSegments
float dlScaleX
float dlScaleY

Detailed Description

This strategy provides a round border that has diameter equal to the smallest between the width and height values of the associated component.

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


Constructor & Destructor Documentation

RoundBorderStrategy::RoundBorderStrategy ( void   ) 

Cronstructs a round border strategy.

RoundBorderStrategy::~RoundBorderStrategy ( void   ) 

Destroys this strategy.


Member Function Documentation

unsigned int RoundBorderStrategy::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 RoundBorderStrategy::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 RoundBorderStrategy::createDisplayList (  )  [protected, virtual]

Creates the display list to draw this border.

Reimplemented from BorderStrategy.

void RoundBorderStrategy::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.


Member Data Documentation

unsigned int RoundBorderStrategy::nSegments [protected]

The number of segments the border circle is divided.

float RoundBorderStrategy::dlScaleX [protected]

The scaleX value currently used by the display list.

float RoundBorderStrategy::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