rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvS57Renderer Class Reference

This feature renderer can translate all the predefined geometries of Rogue Wave Views into graphic objects. More...

#include <ilviews/maps/format/s57/s57renderer.h>

Inheritance diagram for IlvS57Renderer:
IlvDefaultFeatureRenderer IlvFeatureRenderer

List of all members.

Public Member Functions

 IlvS57Renderer (IlvDisplay *)
 Initializes an instance of the renderer.

Protected Member Functions

virtual IlvGraphicdispatch (const IlvMapFeature &mapFeature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const
 Dispatches a map feature to the renderer specialized to render the feature geometry.

Detailed Description

This feature renderer can translate all the predefined geometries of Rogue Wave Views into graphic objects.

Library: ilvmaps

It dispatches the makeGraphic calls to a specialized feature renderer depending on the geometry of the map feature. Each specialized feature renderer is initialized with a default value, but it can be changed.

This renderer uses a parameter file S57Styles.txt to specify the visibility, the background color, foreground color, the filling, the stroke, the stroke style and the bitmap of the different classes of S57 format. You can modify this file which is located in ILVHOME/data/maps/s57. You can also create your own version of S57Styles.txt in another directory specified by the ILVMAPSS57STYLES environment variable. However if you use this last method, the new directory must contain all necessary bitmaps which are defined in S57Styles.txt. For the syntax, see the original file.

/warning [Note] If a class of S57 is specified as 'not visible', the makeGraphic and dispatch functions will return a null object.

By default the IlvS57Loader class uses this renderer.

See also:
IlvS57Loader, ILvS57Reader

Constructor & Destructor Documentation

IlvS57Renderer::IlvS57Renderer ( IlvDisplay  ) 

Initializes an instance of the renderer.

Parameters:
display The display used to create the graphic objects.

Member Function Documentation

virtual IlvGraphic* IlvS57Renderer::dispatch ( const IlvMapFeature mapFeature,
const IlvMapInfo targetMapInfo,
IlvMapsError &  status 
) const [protected, virtual]

Dispatches a map feature to the renderer specialized to render the feature geometry.

Parameters:
mapFeature The map feature to be translated.
targetMapInfo The IlvMapInfo that specifies the projection in which the graphic object must be returned.
status Set to an error code if the renderer cannot process the map feature.
Returns:
An IlvGraphic or a null pointer if no appropriate renderer was found, or if a severe error occurs during the rendering process.

Reimplemented from IlvDefaultFeatureRenderer.


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