Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
This rendering style stores style parameters to draw lines. More...
#include <ilviews/maps/rendering/linerdrstyle.h>
Public Member Functions | |
IlvMapLineRenderingStyle (const IlvMapLineRenderingStyle &source) | |
Copies this rendering style. | |
IlvMapLineRenderingStyle (IlvDisplay *display) | |
Initializes an instance of the renderer. | |
IlvColor * | getForeground () const |
Returns the foreground used to create the lines. | |
IlvLineStyle * | getLineStyle () const |
Returns the style used by the renderer to draw the lines. | |
IlUShort | getLineWidth () const |
Returns the line width used for the lines. | |
IlvPalette * | getPalette () const |
Returns the palette used to create the graphic objects. | |
IlBoolean | isStyleAndWidthAllowed () const |
Returns IlTrue if dashed style can be used for lines of width greater than 1 . | |
IlvMapsError | setForeground (const char *colorName) |
Sets the foreground of the lines by specifying a color name. | |
void | setForeground (IlvColor *color) |
Sets the foreground of the lines. | |
IlvMapsError | setLineStyle (const char *lineStyleName) |
Sets the array representing the lengths of the dash segments of the lines. | |
void | setLineStyle (IlvLineStyle *lineStyle) |
Sets the array representing the lengths of the dash segments of the lines. | |
void | setLineWidth (IlUShort lineWidth) |
Sets the line width of the lines. | |
void | setPalette (IlvPalette *palette) |
Sets the palette used to create the graphic objects. | |
void | setStyleAndWidthAllowed (IlBoolean allow) |
Specifies if dashed style can be used for lines of width greater than 1 . | |
Protected Member Functions | |
virtual | ~IlvMapLineRenderingStyle () |
Destructor. |
This rendering style stores style parameters to draw lines.
Library: ilvmaps
virtual IlvMapLineRenderingStyle::~IlvMapLineRenderingStyle | ( | ) | [protected, virtual] |
Destructor.
The destructor of this class is protected, because instances of IlvMapRenderingStyle
are potentially shared by several objects.
IlvMapLineRenderingStyle::IlvMapLineRenderingStyle | ( | IlvDisplay * | display | ) |
Initializes an instance of the renderer.
display | The display used to create the graphic settings. |
IlvMapLineRenderingStyle::IlvMapLineRenderingStyle | ( | const IlvMapLineRenderingStyle & | source | ) |
Copies this rendering style.
source | The object to be copied. |
IlvColor* IlvMapLineRenderingStyle::getForeground | ( | ) | const |
Returns the foreground used to create the lines.
IlvColor
that should not be modified, because it can potentially be shared by other objects. However, it is possible to lock it if another object has to use it. IlvLineStyle* IlvMapLineRenderingStyle::getLineStyle | ( | ) | const |
Returns the style used by the renderer to draw the lines.
IlvLineStyle
that should not be modified, because it can potentially be shared with other objects. However, it is possible to lock it if another object has to use it. IlUShort IlvMapLineRenderingStyle::getLineWidth | ( | ) | const |
Returns the line width used for the lines.
IlvPalette* IlvMapLineRenderingStyle::getPalette | ( | ) | const |
Returns the palette used to create the graphic objects.
IlvPalette
that should not be modified, because it can potentially be shared by other objects. However, it is possible to lock it if another object has to use it. IlBoolean IlvMapLineRenderingStyle::isStyleAndWidthAllowed | ( | ) | const |
Returns IlTrue
if dashed style can be used for lines of width greater than 1
.
IlTrue
if a line style can be used for lines of width greater than 1
. IlvMapsError IlvMapLineRenderingStyle::setForeground | ( | const char * | colorName | ) |
Sets the foreground of the lines by specifying a color name.
setPalette
. The | name of the color. |
IlvMapsError::NoError()
or IlvMaps::IllegalArgument()
if the color name cannot be translated into a color. void IlvMapLineRenderingStyle::setForeground | ( | IlvColor * | color | ) |
Sets the foreground of the lines.
setPalette
. color | The color used as foreground. |
IlvMapsError IlvMapLineRenderingStyle::setLineStyle | ( | const char * | lineStyleName | ) |
Sets the array representing the lengths of the dash segments of the lines.
This function sets the line width to 1
if the line style is not plain.
setPalette
. lineStyleName | The name of a style. |
IlvMapsError::NoError()
or IlvMaps::IllegalArgument()
if the line style name cannot be translated into an IlvLineStyle
. void IlvMapLineRenderingStyle::setLineStyle | ( | IlvLineStyle * | lineStyle | ) |
Sets the array representing the lengths of the dash segments of the lines.
This function sets the line width to 1
if the line style is not plain.
setPalette
. lineStyle | The line style. |
void IlvMapLineRenderingStyle::setLineWidth | ( | IlUShort | lineWidth | ) |
Sets the line width of the lines.
A line width higher than 1
removes the line style.
setPalette
. lineWidth | The width of the line used to draw the polylines generated by this renderer. |
void IlvMapLineRenderingStyle::setPalette | ( | IlvPalette * | palette | ) |
Sets the palette used to create the graphic objects.
This function can be used to specify a special palette instead of the palette created by the setters of this class.
palette | The palette. |
void IlvMapLineRenderingStyle::setStyleAndWidthAllowed | ( | IlBoolean | allow | ) |
Specifies if dashed style can be used for lines of width greater than 1
.
IlTrue
, the produced graphic objects can have a different aspect on Unix, Windows NT or Windows 98. allow | If IlTrue , line style can be used for lines of width greater than 1 . |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.