IlvMapAreaRenderingStyle Class Reference
This rendering style stores style parameters to render areas.
More...
#include <ilviews/maps/rendering/areardrstyle.h>
List of all members.
Detailed Description
This rendering style stores style parameters to render areas.
Library: ilvmaps
Constructor & Destructor Documentation
virtual IlvMapAreaRenderingStyle::~IlvMapAreaRenderingStyle |
( |
|
) |
[protected, virtual] |
IlvMapAreaRenderingStyle::IlvMapAreaRenderingStyle |
( |
IlvDisplay * |
display |
) |
|
Initializes an instance of the rendering style.
- Parameters:
-
| display | The display used to create the graphic objects. |
Member Function Documentation
IlvColor* IlvMapAreaRenderingStyle::getFillBackground |
( |
|
) |
const |
Returns the background fill color.
Returns a null pointer if no color is specified (in this case, the default display background color is used), or an 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.
- Returns:
- The
IlvColor
used as a background.
IlvColor* IlvMapAreaRenderingStyle::getFillColor |
( |
|
) |
const |
Returns the fill color.
- Returns:
- A null pointer if no color is specified (in this case, the default display background color is used), or an
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.
-
The
IlvColor
object used as fill color.
IlvPattern* IlvMapAreaRenderingStyle::getFillPattern |
( |
|
) |
const |
Returns the fill pattern.
- Returns:
- A null pointer if no fill pattern is specified or an
IlvPattern
that should not be modified, because it can potentially be shared with other objects. However, it is possible to lock it if an other object has to use it.
Returns the line rendering style used to draw the stroke of the graphic objects.
- Returns:
- The line rendering style used to draw the stroke of the graphic objects.
IlvPalette* IlvMapAreaRenderingStyle::getPalette |
( |
|
) |
const |
Returns the palette used to fill the graphic objects.
- Returns:
- A null pointer if no specific setting is set, or an
IlvPalette
that should not be modified, because it can potentially be shared by other objects. However, it is possible to lock it if an other object has to use it.
- See also:
- IlvResource::lock()
IlBoolean IlvMapAreaRenderingStyle::isDrawingStroke |
( |
|
) |
const |
Checks if generated objects will draw their stroke.
- Returns:
IlTrue
if the objects draw their stroke.
IlBoolean IlvMapAreaRenderingStyle::isFillingObject |
( |
|
) |
const |
Returns IlTrue
if the generated objects are filled.
- Returns:
IlTrue
if the generated objects are filled.
void IlvMapAreaRenderingStyle::setDrawingStroke |
( |
IlBoolean |
drawStroke |
) |
|
Specifies whether the generated object will draw their stroke with the stroke color.
- Parameters:
-
| drawStroke | If IlTrue , the generated objects will draw their stroke. |
- See also:
- setStrokeColor
IlvMapsError IlvMapAreaRenderingStyle::setFillBackground |
( |
const char * |
colorName |
) |
|
Sets the background fill color by specifying its name.
This background color may be used by some patterns.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
| colorName | The color name. |
- Returns:
IlvMapsError::NoError()
or IlvMaps::IllegalArgument()
if the color name cannot be translated into a color.
void IlvMapAreaRenderingStyle::setFillBackground |
( |
IlvColor * |
color |
) |
|
Sets the background fill color.
This background color may be used by some patterns.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
IlvMapsError IlvMapAreaRenderingStyle::setFillColor |
( |
const char * |
colorName |
) |
|
Sets the fill color.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
| colorName | The color name. |
- Returns:
IlvMapsError::NoError()
or IlvMaps::IllegalArgument()
if the color name cannot be translated into a color.
void IlvMapAreaRenderingStyle::setFillColor |
( |
IlvColor * |
color |
) |
|
Sets the fill color.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
void IlvMapAreaRenderingStyle::setFillingObject |
( |
IlBoolean |
fillObject |
) |
|
Specifies whether the generated objects must be filled with the fill pattern (if specified) or with the fill color.
- Parameters:
-
| fillObject | If IlTrue , the generated object will be filled. |
- See also:
- setFillColor, setFillPattern.
IlvMapsError IlvMapAreaRenderingStyle::setFillPattern |
( |
const char * |
fileName |
) |
|
Sets the fill pattern.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
| fileName | The name of the file containing an image that will be used as a fill pattern. |
- Returns:
IlvMapsError::NoError()
or IlvMaps::IllegalArgument()
if the line file cannot be used to create a pattern.
void IlvMapAreaRenderingStyle::setFillPattern |
( |
IlvPattern * |
pattern |
) |
|
Sets the fill pattern.
- Warning:
- [note] This function is a convenience function that can be used instead of
setPalette
.
- Parameters:
-
| pattern | The pattern used to fill the polygons. |
Sets the rendering style used to draw the stroke of the graphic objects.
- Parameters:
-
void IlvMapAreaRenderingStyle::setPalette |
( |
IlvPalette * |
palette |
) |
|
Sets the palette used to fill the graphic objects.
- Parameters:
-
© 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.