rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMapRenderingStyle Class Reference

This abstract class is the base class of the rendering styles. More...

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

Inheritance diagram for IlvMapRenderingStyle:
IlvMapAreaRenderingStyle IlvMapLineRenderingStyle

List of all members.

Public Member Functions

virtual IlvMapRenderingStyle * copy () const =0
 Copies the object.
IlvDisplay * getDisplay () const
 Returns the display that is used to create the graphic settings.
void lock ()
 Locks the object and prevents it from being deleted.
void save (IlvOutputFile &file) const
 Saves the object to an IlvOutputFile.
void unLock ()
 Unlocks the object.

Static Public Member Functions

static IlvMapRenderingStyle * Load (IlvInputFile &file)
 Loads a rendering style from an IlvInputFile.

Protected Member Functions

 IlvMapRenderingStyle (const IlvMapRenderingStyle &source)
 Creates a renderer by copying an existing one.
 IlvMapRenderingStyle (IlvDisplay *display)
 The constructor of this abstract class is protected.
virtual ~IlvMapRenderingStyle ()
 Destructor.

Detailed Description

This abstract class is the base class of the rendering styles.

A rendering style is used by the renderers to define the graphic style of the graphic objects representing vector map features. Instances of IlvMapRenderingStyle are shared objects. As a consequence, they should never be deleted. The memory management should be performed using the lock and unLock mechanism. Library: ilvmaps


Constructor & Destructor Documentation

IlvMapRenderingStyle::IlvMapRenderingStyle ( IlvDisplay *  display  )  [protected]

The constructor of this abstract class is protected.

Parameters:
display The display used to create the graphic palettes.
IlvMapRenderingStyle::IlvMapRenderingStyle ( const IlvMapRenderingStyle &  source  )  [protected]

Creates a renderer by copying an existing one.

Since this class is abstract, this copy constructor is protected.

Parameters:
source The object to be copied.
virtual IlvMapRenderingStyle::~IlvMapRenderingStyle (  )  [protected, virtual]

Destructor.

The destructor of this class is protected, because instances of IlvMapRenderingStyle are potentially shared by several objects.

See also:
lock, unLock.

Member Function Documentation

virtual IlvMapRenderingStyle* IlvMapRenderingStyle::copy (  )  const [pure virtual]

Copies the object.

Returns:
A copy of this IlvMapRenderingStyle.
IlvDisplay* IlvMapRenderingStyle::getDisplay (  )  const

Returns the display that is used to create the graphic settings.

Returns:
The display.
static IlvMapRenderingStyle* IlvMapRenderingStyle::Load ( IlvInputFile &  file  )  [static]

Loads a rendering style from an IlvInputFile.

Parameters:
file The input file.
Returns:
An IlvMapRenderingStyle object or a null pointer if the load operation fails.
void IlvMapRenderingStyle::lock (  ) 

Locks the object and prevents it from being deleted.

See also:
unLock
void IlvMapRenderingStyle::save ( IlvOutputFile &  file  )  const

Saves the object to an IlvOutputFile.

Parameters:
file The output file.
See also:
Load
void IlvMapRenderingStyle::unLock (  ) 

Unlocks the object.

If the object does not have any lock, it is deleted.

See also:
lock

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