Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvDefaultCurveRenderer Class Reference

This renderer translates a map feature whose geometry is a predefined subclass of IlvMapCurve into an IlvMapGeneralPath or into an IlvGraphicSet of IlvMapGeneralPath if the geometry is an IlvMapMultiCurve. More...

#include <ilviews/maps/rendering/curverdr.h>

Inheritance diagram for IlvDefaultCurveRenderer:
IlvFeatureRenderer

Public Member Functions

 IlvDefaultCurveRenderer (const IlvDefaultCurveRenderer &source)
 Initializes a new instance of the renderer as a copy of another one. More...
 
 IlvDefaultCurveRenderer (IlvDisplay *display)
 Initializes a new instance of the renderer. More...
 
IlvMapLineRenderingStylegetLineRenderingStyle () const
 Returns the line rendering style. More...
 
virtual IlvGraphicmakeGraphic (const IlvMapFeature &feature, const IlvMapInfo &targetMapInfo, IlvMapsError &status) const
 Translates an IlvMapFeature into a graphic object. More...
 
void setLineRenderingStyle (IlvMapLineRenderingStyle *lineRenderingStyle)
 Sets the rendering style for the lines. More...
 
- Public Member Functions inherited from IlvFeatureRenderer
virtual IlvFeatureRenderercopy () const =0
 Copies the object. More...
 
IlvDisplaygetDisplay () 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 IlvFeatureRendererLoad (IlvInputFile &file)
 Loads a renderer from an IlvInputFile. More...
 
- Protected Member Functions inherited from IlvFeatureRenderer
 IlvFeatureRenderer (IlvDisplay *display, IlBoolean persistent=IlTrue)
 Constructor. More...
 

Detailed Description

This renderer translates a map feature whose geometry is a predefined subclass of IlvMapCurve into an IlvMapGeneralPath or into an IlvGraphicSet of IlvMapGeneralPath if the geometry is an IlvMapMultiCurve.

Library: ilvmaps

Constructor & Destructor Documentation

◆ IlvDefaultCurveRenderer() [1/2]

IlvDefaultCurveRenderer::IlvDefaultCurveRenderer ( IlvDisplay display)

Initializes a new instance of the renderer.

Parameters
displayThe display used to create the graphic objects.

◆ IlvDefaultCurveRenderer() [2/2]

IlvDefaultCurveRenderer::IlvDefaultCurveRenderer ( const IlvDefaultCurveRenderer source)

Initializes a new instance of the renderer as a copy of another one.

Parameters
sourceThe object to be copied.

Member Function Documentation

◆ getLineRenderingStyle()

IlvMapLineRenderingStyle* IlvDefaultCurveRenderer::getLineRenderingStyle ( ) const

Returns the line rendering style.

Returns
The line rendering style for this renderer.

◆ makeGraphic()

virtual IlvGraphic* IlvDefaultCurveRenderer::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
featureThe map feature to be translated.
targetMapInfoThis parameter specifies the projection in which the graphic object must be returned. If this projection is not defined (targetMapInfo.getProjection() is 0), the graphic object is returned to the projection of the map feature (only the map adapter is used)
statusIs 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
The created IlvGraphic or a 0 if a severe error occurred.

Implements IlvFeatureRenderer.

◆ setLineRenderingStyle()

void IlvDefaultCurveRenderer::setLineRenderingStyle ( IlvMapLineRenderingStyle lineRenderingStyle)

Sets the rendering style for the lines.

Parameters
lineRenderingStyleThe line rendering style. This object can be shared by other objects.