rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvDefaultAreaRenderer Class Reference

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>

Inheritance diagram for IlvDefaultAreaRenderer:
IlvFeatureRenderer

List of all members.

Public Member Functions

 IlvDefaultAreaRenderer (const IlvDefaultAreaRenderer &source)
 Copies this renderer.
 IlvDefaultAreaRenderer (IlvDisplay *display)
 Initializes an instance of the renderer.
virtual IlvFeatureRenderercopy () const
 Copies the object.
IlvMapAreaRenderingStylegetAreaRenderingStyle () const
 Returns the area rendering style.
virtual IlvGraphicmakeGraphic (const IlvMapFeature &feature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const
 Translates an IlvMapFeature into a graphic object.
void setAreaRenderingStyle (IlvMapAreaRenderingStyle *areaRenderingStyle)
 Sets the rendering style for the areas.
virtual void write (IlvOutputFile &) const
 Writes the renderer to an IlvOutputStream.

Detailed Description

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


Constructor & Destructor Documentation

IlvDefaultAreaRenderer::IlvDefaultAreaRenderer ( IlvDisplay display  ) 

Initializes an instance of the renderer.

Parameters:
display The display used to create the graphic objects.
IlvDefaultAreaRenderer::IlvDefaultAreaRenderer ( const IlvDefaultAreaRenderer source  ) 

Copies this renderer.

Parameters:
source The object to be copied.

Member Function Documentation

virtual IlvFeatureRenderer* IlvDefaultAreaRenderer::copy (  )  const [virtual]

Copies the object.

Returns:
A copy of this IlvFeatureRenderer.

Implements IlvFeatureRenderer.

IlvMapAreaRenderingStyle* IlvDefaultAreaRenderer::getAreaRenderingStyle (  )  const

Returns the area rendering style.

Returns:
The IlvMapAreaRenderingStyle of this renderer.
virtual IlvGraphic* IlvDefaultAreaRenderer::makeGraphic ( const IlvMapFeature feature,
const IlvMapInfo targetMapInfo,
IlvMapsError &  status 
) const [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.

Parameters:
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).
Returns:
An IlvGraphic or a null pointer if a severe error occurred.

Implements IlvFeatureRenderer.

void IlvDefaultAreaRenderer::setAreaRenderingStyle ( IlvMapAreaRenderingStyle areaRenderingStyle  ) 

Sets the rendering style for the areas.

Parameters:
areaRenderingStyle The area rendering style. This object can be shared by other objects.
virtual void IlvDefaultAreaRenderer::write ( IlvOutputFile file  )  const [virtual]

Writes the renderer to an IlvOutputStream.

This function must be reimplemented by the subclasses of IlvFeatureRenderer, but it should not be called directly by the application. For more information about subclassing an IlvFeatureRenderer, refer to the User Manual of Rogue Wave Views Maps.

Parameters:
file The output file.
See also:
save

Implements IlvFeatureRenderer.


© 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.