LuciadCPillar 2023.1.02
|
A TileSet3DLayer is a Layer that can visualize 3D tiles
.
More...
#include <luciad/layers/tileset3d/TileSet3DLayer.h>
Classes | |
class | Builder |
Builder for the luciad::TileSet3DLayer class. More... | |
Public Member Functions | |
~TileSet3DLayer () override | |
void | addObserver (std::shared_ptr< ILayerObserver > layerObserver) override |
Adds an observer that allows to receive change events from this layer. More... | |
const std::vector< std::string > & | getAttributes () const |
std::chrono::milliseconds | getFadingTime () const |
const MeshStyle & | getMeshStyle () const |
const std::shared_ptr< ITileSet3DModel > & | getModel () const |
const PointCloudStyle & | getPointCloudStyle () const |
double | getQualityFactor () const |
const std::string & | getTitle () const override |
bool | isTextureCompressionEnabled () const |
bool | isTransparencyEnabled () const |
bool | isVisible () const override |
void | removeObserver (const std::shared_ptr< ILayerObserver > &layerObserver) override |
Removes the given observer. More... | |
void | setFadingTime (std::chrono::milliseconds time) |
Sets the time tiles will take to fade in / out when changing their visibility If set to 0, fading of tiles is disabled. More... | |
void | setMeshStyle (MeshStyle meshStyle) |
Sets the style used for mesh data on this layer. More... | |
void | setPointCloudStyle (PointCloudStyle pointCloudStyle) |
Sets the style used for point cloud data on this layer. More... | |
void | setQualityFactor (double qualityFactor) |
Sets the quality factor for this layer. More... | |
void | setTitle (std::string title) override |
Changes this layer's title. More... | |
void | setTransparencyEnabled (bool enabled) |
void | setVisible (bool visible) override |
Changes this layer's visibility. More... | |
Public Member Functions inherited from luciad::Layer | |
Layer () | |
Default constructor. More... | |
virtual | ~Layer ()=default |
virtual void | addObserver (std::shared_ptr< ILayerObserver > layerObserver)=0 |
Adds an observer that allows to receive change events from this layer. More... | |
virtual LayerId | getId () const |
virtual const std::string & | getTitle () const =0 |
virtual bool | isVisible () const =0 |
virtual void | removeObserver (const std::shared_ptr< ILayerObserver > &layerObserver)=0 |
Removes the given observer. More... | |
virtual void | setTitle (std::string title)=0 |
Changes this layer's title. More... | |
virtual void | setVisible (bool visible)=0 |
Changes this layer's visibility. More... | |
Static Public Member Functions | |
static Builder | newBuilder () |
Creates a new builder for creating a TileSet3DLayer. More... | |
static const std::string & | propertyFadingTime () |
Property name for the LayerEvent that is fired as a result of changing the layer's fading time. More... | |
static const std::string & | propertyMeshStyle () |
Property name for the LayerEvent that is fired as a result of changing the layer's mesh style. More... | |
static const std::string & | propertyPointCloudStyle () |
Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style. More... | |
static const std::string & | propertyQualityFactor () |
Property name for the LayerEvent that is fired as a result of changing the layer's quality factor. More... | |
static const std::string & | propertyTransparencyEnabled () |
Property name for the LayerEvent that is fired as a result of changing the layer's transparency setting. More... | |
Static Public Member Functions inherited from luciad::Layer | |
static const std::string & | propertyTitle () |
Property name for the LayerEvent that is fired as a result of changing the layer's title. More... | |
static const std::string & | propertyVisible () |
Property name for the LayerEvent that is fired as a result of changing the layer's visible flag. More... | |
A TileSet3DLayer is a Layer that can visualize 3D tiles
.
Use luciad::TileSet3DLayer::newBuilder
to create a 3D tiles 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.
const std::vector< std::string > & luciad::TileSet3DLayer::getAttributes | ( | ) | const |
expressions
. std::chrono::milliseconds luciad::TileSet3DLayer::getFadingTime | ( | ) | const |
const MeshStyle & luciad::TileSet3DLayer::getMeshStyle | ( | ) | const |
const std::shared_ptr< ITileSet3DModel > & luciad::TileSet3DLayer::getModel | ( | ) | const |
const PointCloudStyle & luciad::TileSet3DLayer::getPointCloudStyle | ( | ) | const |
double luciad::TileSet3DLayer::getQualityFactor | ( | ) | const |
|
overridevirtual |
Implements luciad::Layer.
bool luciad::TileSet3DLayer::isTextureCompressionEnabled | ( | ) | const |
bool luciad::TileSet3DLayer::isTransparencyEnabled | ( | ) | const |
|
overridevirtual |
Implements luciad::Layer.
|
static |
Creates a new builder for creating a TileSet3DLayer.
|
static |
Property name for the LayerEvent
that is fired as a result of changing the layer's fading time.
setFadingTime
|
static |
Property name for the LayerEvent
that is fired as a result of changing the layer's mesh style.
setMeshStyle
|
static |
Property name for the LayerEvent
that is fired as a result of changing the layer's point cloud style.
setPointCloudStyle
|
static |
Property name for the LayerEvent
that is fired as a result of changing the layer's quality factor.
setQualityFactor
|
static |
Property name for the LayerEvent
that is fired as a result of changing the layer's transparency setting.
setTransparencyEnabled
|
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::TileSet3DLayer::setFadingTime | ( | std::chrono::milliseconds | time | ) |
Sets the time tiles will take to fade in / out when changing their visibility If set to 0, fading of tiles is disabled.
They appear as soon as they are available. The longer it is, the longer tiles will be going from fully transparent to fully visible.
time | the fading time in milliseconds. Maximum value is 86400000 (i.e. a day). |
void luciad::TileSet3DLayer::setMeshStyle | ( | MeshStyle | meshStyle | ) |
Sets the style used for mesh data on this layer.
meshStyle | the style to use |
void luciad::TileSet3DLayer::setPointCloudStyle | ( | PointCloudStyle | pointCloudStyle | ) |
Sets the style used for point cloud data on this layer.
This method is optional. If this method is not invoked, a default point cloud style with adaptive point size and a constant scale expression of "1.0" is assumed.
pointCloudStyle | the style to use |
void luciad::TileSet3DLayer::setQualityFactor | ( | double | qualityFactor | ) |
Sets the quality factor for this layer.
It is used to decide if a given tile should be displayed at certain scales. Must be a non-zero, positive value. Higher values load more tiles.
qualityFactor | the quality factor |
|
overridevirtual |
Changes this layer's title.
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.
void luciad::TileSet3DLayer::setTransparencyEnabled | ( | bool | enabled | ) |
enabled | true to enable transparency |
|
overridevirtual |
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.