Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This feature renderer can translate all the predefined geometries of Rogue Wave Views into graphic objects. More...
#include <ilviews/maps/format/s57/s57renderer.h>
Public Member Functions | |
IlvS57Renderer (IlvDisplay *display) | |
Initializes a new instance of the renderer. More... | |
Public Member Functions inherited from IlvDefaultFeatureRenderer | |
IlvDefaultFeatureRenderer (IlvDisplay *display) | |
Initializes an instance of the renderer. More... | |
IlvDefaultFeatureRenderer (const IlvDefaultFeatureRenderer &source) | |
Initializes an IlvDefaultFeatureRenderer by copying an existing one. More... | |
virtual | ~IlvDefaultFeatureRenderer () |
Destructor. | |
IlvFeatureRenderer * | getAreaRenderer () const |
Returns the renderer used to translate areas into graphic objects. More... | |
IlvFeatureRenderer * | getCurveRenderer () const |
Returns the renderer used to translate curves into graphic objects. More... | |
IlvFeatureRenderer * | getImageRenderer () const |
Returns the renderer used to translate images into graphic objects. More... | |
IlvFeatureRenderer * | getPointRenderer () const |
Returns the renderer used to translate points into graphic objects. More... | |
IlvFeatureRenderer * | getRasterRenderer () const |
Returns the renderer used to translate rasters into graphic objects. More... | |
IlvFeatureRenderer * | getTextRenderer () const |
Returns The renderer used to translate texts into graphic objects. More... | |
virtual IlvGraphic * | makeGraphic (const IlvMapFeature &mapFeature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const |
Translates an IlvMapFeature into a graphic object. More... | |
void | setAreaRenderer (const IlvFeatureRenderer *areaRndr) |
Sets the graphic renderer used to translate areas into graphic objects. More... | |
void | setCurveRenderer (const IlvFeatureRenderer *curveRndr) |
Sets the graphic renderer used to translate curves into graphic objects. More... | |
void | setImageRenderer (const IlvFeatureRenderer *imageRndr) |
Sets the graphic renderer used to translate images into graphic objects. More... | |
void | setPointRenderer (const IlvFeatureRenderer *pointRndr) |
Sets the graphic renderer used to translate points into graphic objects. More... | |
void | setRasterRenderer (const IlvFeatureRenderer *rasterRndr) |
Sets the graphic renderer used to translate rasters into graphic objects. More... | |
void | setTextRenderer (const IlvFeatureRenderer *textRndr) |
Sets the graphic renderer used to translate texts into graphic objects. 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... | |
Protected Member Functions | |
virtual IlvGraphic * | dispatch (const IlvMapFeature &, const IlvMapInfo &, IlvMapsError &) const |
Dispatches a map feature to the renderer specialized to render the feature geometry. More... | |
Protected Member Functions inherited from IlvDefaultFeatureRenderer | |
virtual IlvGraphic * | makeGraphicFromGeometryCollection (const IlvMapFeature &mapFeature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const |
This function is called by dispatch for the map features whose geometry is a collection of subgeometries. More... | |
Protected Member Functions inherited from IlvFeatureRenderer | |
IlvFeatureRenderer (IlvDisplay *display, IlBoolean persistent=IlTrue) | |
Constructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvFeatureRenderer | |
static IlvFeatureRenderer * | Load (IlvInputFile &file) |
Loads a renderer from an IlvInputFile . More... | |
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.
makeGraphic()
and dispatch()
functions will return a null object.By default the IlvS57Loader
class uses this renderer.
IlvS57Loader
, ILvS57Reader
. IlvS57Renderer::IlvS57Renderer | ( | IlvDisplay * | display | ) |
Initializes a new instance of the renderer.
display | The display used to create the graphic objects. |
|
protectedvirtual |
Dispatches a map feature to the renderer specialized to render the feature geometry.
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. |
IlvGraphic
or 0
if no appropriate renderer was found, or if a severe error occurs during the rendering process. Reimplemented from IlvDefaultFeatureRenderer.
© 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.