Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This renderer translates a map feature whose geometry is a predefined subclass of IlvMapArea
into an IlvMapGeneralPath
or into an IlvGraphicSet
or IlvMapGeneralPath
if the geometry is an IlvMapMultiArea
.
More...
#include <ilviews/maps/rendering/areardr.h>
Public Member Functions | |
IlvDefaultAreaRenderer (IlvDisplay *display) | |
Initializes a new IlvDefaultAreaRenderer instance. More... | |
IlvDefaultAreaRenderer (const IlvDefaultAreaRenderer &source) | |
Initializes a new IlvDefaultAreaRenderer instance as a copy of another one. More... | |
IlvMapAreaRenderingStyle * | getAreaRenderingStyle () const |
Returns the area rendering style. More... | |
virtual IlvGraphic * | makeGraphic (const IlvMapFeature &, const IlvMapInfo &, IlvMapsError &) const |
Translates an IlvMapFeature into a graphic object. More... | |
void | setAreaRenderingStyle (IlvMapAreaRenderingStyle *areaRenderingStyle) |
Sets the rendering style for the areas. More... | |
Public Member Functions inherited from IlvFeatureRenderer | |
virtual IlvFeatureRenderer * | copy () const =0 |
Copies the object. More... | |
IlvDisplay * | getDisplay () const |
Returns the renderer display. More... | |
IlBoolean | isPersistent () const |
Checks if the renderer can be saved. More... | |
void | save (IlvOutputFile &file) const |
Saves the object to an IlvOutputFile . More... | |
virtual void | write (IlvOutputFile &file) const =0 |
Writes the renderer to an IlvOutputStream . More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvFeatureRenderer | |
static IlvFeatureRenderer * | Load (IlvInputFile &file) |
Loads a renderer from an IlvInputFile . More... | |
Protected Member Functions inherited from IlvFeatureRenderer | |
IlvFeatureRenderer (IlvDisplay *display, IlBoolean persistent=IlTrue) | |
Constructor. More... | |
This renderer translates a map feature whose geometry is a predefined subclass of IlvMapArea
into an IlvMapGeneralPath
or into an IlvGraphicSet
or IlvMapGeneralPath
if the geometry is an IlvMapMultiArea
.
Library: ilvmaps
IlvDefaultAreaRenderer::IlvDefaultAreaRenderer | ( | IlvDisplay * | display | ) |
Initializes a new IlvDefaultAreaRenderer
instance.
display | The display used to create the graphic objects. |
IlvDefaultAreaRenderer::IlvDefaultAreaRenderer | ( | const IlvDefaultAreaRenderer & | source | ) |
Initializes a new IlvDefaultAreaRenderer
instance as a copy of another one.
source | The object to be copied. |
IlvMapAreaRenderingStyle* IlvDefaultAreaRenderer::getAreaRenderingStyle | ( | ) | const |
Returns the area rendering style.
IlvMapAreaRenderingStyle
of this renderer.
|
virtual |
Translates an IlvMapFeature
into a graphic object.
If the targetMapInfo has a non-null projection, or a projection that is not an instance of IlvUnknownProjection
, the graphic object is projected to the projection system of targetMapInfo. Otherwise, only the map adapter of targetMapInfo is used to convert the feature coordinate into the manager coordinate system.
feature | The map feature to be translated. |
targetMapInfo | This parameter specifies the projection in which the graphic object must be returned. If this projection is not defined (targetMapInfo.getProjection() is NULL), the graphic object is returned to the projection of the map feature (only the map adapter is used) |
status | Is set to an error code if the renderer cannot process the map feature (most of the time, because the renderer does not support the feature geometry, but it can also indicate that a projection error occurred). |
IlvGraphic
or a null pointer if a severe error occurred. Implements IlvFeatureRenderer.
void IlvDefaultAreaRenderer::setAreaRenderingStyle | ( | IlvMapAreaRenderingStyle * | areaRenderingStyle | ) |
Sets the rendering style for the areas.
areaRenderingStyle | The area rendering style. This object can be shared by other objects. |
© Copyright 2018, 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.