LuciadCPillar C# 2023.1.04
|
Common representation for layers that can be added to a map. More...
Public Member Functions | |
void | AddObserver (Luciad.Layers.ILayerObserver layerObserver) |
Adds an observer that allows to receive change events from this layer. More... | |
void | Dispose () |
void | RemoveObserver (Luciad.Layers.ILayerObserver layerObserver) |
Removes the given observer. More... | |
Properties | |
ulong | Id [get] |
bool | IsVisible [get, set] |
static string | PropertyTitle = PropertyTitleInternal() [get] |
static string | PropertyVisible = PropertyVisibleInternal() [get] |
string | Title [get, set] |
Common representation for layers that can be added to a map.
A layer has a few properties that can be changed. visibility title
An observer can be attached to get notifications about layer changes. Use one of the concrete classes extending this class. Note that this class tracks on which thread it is constructed. This is done so that, in subsequent calls, it can verify that the same threads are used consistently. When an inconsistency is detected, an assertion is triggered. This means that all functions on Layer (and its subclasses) must be called on the thread on which the Map was constructed (the "UI" thread). The only exception is adding and removing observers. Related article: Threading rules for the Map
|
inline |
Adds an observer that allows to receive change events from this layer.
Adding the same observer twice is forbidden, and will cause an exception to be thrown.
layerObserver
an observer.
luciad::InvalidArgumentException
when the observer was already added.
luciad::NullArgumentException
when the observer is nullptr.
|
inline |
|
inline |
Removes the given observer.
If the given observer was never added, an exception is thrown.
layerObserver
an observer.
luciad::InvalidArgumentException
when the observer is not known.
luciad::NullArgumentException
when the observer is nullptr.
|
get |
|
getset |
|
staticget |
|
staticget |
|
getset |