|
LuciadCPillar 2026.1.02
|
A layer for feature models containing line-of-sight (LOS) features. More...
#include <luciad/layers/los/LineOfSightLayer.h>
Classes | |
| class | Builder |
| Builder for creating a luciad::LineOfSightLayer for a luciad::IFeatureModel with line-of-sight features. More... | |
Public Member Functions | |
| ~LineOfSightLayer () override | |
| void | addObserver (std::shared_ptr< ILayerObserver > layerObserver) override |
| Adds an observer that allows to receive change events from this layer. | |
| Builder | asBuilder () const |
| Returns a new builder based on this layer instance. | |
| const LineOfSightStyle & | getLineOfSightStyle () const |
| Returns the line-of-sight style used for painting this layer. | |
| const std::shared_ptr< IFeatureModel > & | getModel () const |
| Returns the layer's model, which provides the line-of-sight features to be presented. | |
| const std::string & | getTitle () const override |
| Returns the layer's title. | |
| bool | isBusy () const override |
| Returns whether this layer is busy loading data, rendering, loading attributions, or anything else. | |
| bool | isVisible () const override |
| Returns whether this layer is visible. | |
| void | removeObserver (const std::shared_ptr< ILayerObserver > &layerObserver) override |
| Removes the given observer. | |
| void | setLineOfSightStyle (LineOfSightStyle losStyle) |
| Sets the line-of-sight style used for painting this layer. | |
| void | setTitle (std::string title) override |
| Sets the layer's title. | |
| void | setVisible (bool visible) override |
| Sets whether this layer is visible. | |
| Public Member Functions inherited from luciad::Layer | |
| Layer () | |
| Default constructor. | |
| virtual | ~Layer ()=default |
| virtual LayerId | getId () const |
| Returns the layer's unique id. | |
Static Public Member Functions | |
| static Builder | newBuilder () |
| Returns the new builder for creating a LineOfSightLayer. | |
| static const std::string & | propertyLineOfSightStyle () |
| Property name for the LayerEvent that is fired as a result of changing the layer's style. | |
| Static Public Member Functions inherited from luciad::Layer | |
| static const std::string & | propertyBusy () |
| Property name for the LayerEvent that is fired as a result of the layer's busy flag changing. | |
| static const std::string & | propertyTitle () |
| Property name for the LayerEvent that is fired as a result of changing the layer's title. | |
| static const std::string & | propertyVisible () |
| Property name for the LayerEvent that is fired as a result of changing the layer's visible flag. | |
A layer for feature models containing line-of-sight (LOS) features.
Such a feature represents an observer with some additional properties which together define a line-of-sight coverage.
Use luciad::LineOfSightLayer::newBuilder to create a line-of-sight layer instance.
|
override |
|
overridevirtual |
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. |
Implements luciad::Layer.
| Builder luciad::LineOfSightLayer::asBuilder | ( | ) | const |
Returns a new builder based on this layer instance.
You can use this builder, for example, to create a copy of this layer.
Note that observers will not be transferred to a new layer.
| const LineOfSightStyle & luciad::LineOfSightLayer::getLineOfSightStyle | ( | ) | const |
Returns the line-of-sight style used for painting this layer.
| const std::shared_ptr< IFeatureModel > & luciad::LineOfSightLayer::getModel | ( | ) | const |
Returns the layer's model, which provides the line-of-sight features to be presented.
Such a feature represents an observer with some additional properties which together define a line-of-sight coverage.
|
overridevirtual |
Returns the layer's title.
Should be suitable for presenting to the user.
Implements luciad::Layer.
|
overridevirtual |
Returns whether this layer is busy loading data, rendering, loading attributions, or anything else.
When this property changes, a LayerEvent is delivered to the observers with the property name propertyBusy.
Note: when the map is moving around it can be that the layer is repeatedly loading new data, but does this fast enough that it is done by the time new data is needed, resulting in a repeatedly changing busyness state.
Implements luciad::Layer.
|
overridevirtual |
Returns whether this layer is visible.
Implements luciad::Layer.
|
static |
Returns the new builder for creating a LineOfSightLayer.
|
static |
Property name for the LayerEvent that is fired as a result of changing the layer's style.
|
overridevirtual |
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. |
Implements luciad::Layer.
| void luciad::LineOfSightLayer::setLineOfSightStyle | ( | LineOfSightStyle | losStyle | ) |
Sets the line-of-sight style used for painting this layer.
If the new line-of-sight style is different from the old one, a LayerEvent is delivered to the observers with the property name propertyLineOfSightStyle.
| losStyle | the new line-of-sight style. |
|
overridevirtual |
Sets the layer's title.
Should be suitable for presenting to the user.
If the new title is indeed different from the old one, a LayerEvent is delivered to the observers with the property name PropertyTitle.
| title | the new title. |
Implements luciad::Layer.
|
overridevirtual |
Sets whether this layer is visible.
Changes this layer's visibility. If the new visibility is different from the old one, a LayerEvent is delivered to the observers with the property name PropertyVisible.
| visible | the new visibility. |
Implements luciad::Layer.