This abstract class is the base class of the rendering styles. More...
#include <ilviews/maps/rendering/rdrstyle.h>
Public Member Functions | |
virtual IlvMapRenderingStyle * | copy () const =0 |
Copies the object. More... | |
IlvDisplay * | getDisplay () const |
Returns the display that is used to create the graphic settings. More... | |
void | lock () |
Locks the object and prevents it from being deleted. More... | |
void | save (IlvOutputFile &file) const |
Saves the object to an output file. More... | |
void | unLock () |
Unlocks the object. More... | |
Static Public Member Functions | |
static IlvMapRenderingStyle * | Load (IlvInputFile &file) |
Loads a rendering style from an IlvInputFile . More... | |
Protected Member Functions | |
IlvMapRenderingStyle (const IlvMapRenderingStyle &source) | |
Initializes a new instance of the renderer style as a copy of another one. More... | |
IlvMapRenderingStyle (IlvDisplay *display) | |
Initializes a new instance of this rendering style. More... | |
virtual | ~IlvMapRenderingStyle () |
Destructor. More... | |
This abstract class is the base class of the rendering styles.
Library: ilvmaps
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.
|
protected |
Initializes a new instance of this rendering style.
display | The display used to create the graphic palettes. |
|
protected |
Initializes a new instance of the renderer style as a copy of another one.
Since this class is abstract, this copy constructor is protected.
source | The object to be copied. |
|
protectedvirtual |
Destructor.
The destructor of this class is protected, because instances of IlvMapRenderingStyle
are potentially shared by several objects.
|
pure virtual |
Copies the object.
IlvMapRenderingStyle
. IlvDisplay* IlvMapRenderingStyle::getDisplay | ( | ) | const |
Returns the display that is used to create the graphic settings.
|
static |
Loads a rendering style from an IlvInputFile
.
file | The input file. |
IlvMapRenderingStyle
object or a null pointer if the load operation fails. void IlvMapRenderingStyle::lock | ( | ) |
Locks the object and prevents it from being deleted.
unLock()
. void IlvMapRenderingStyle::save | ( | IlvOutputFile & | file | ) | const |
void IlvMapRenderingStyle::unLock | ( | ) |