LuciadCPillar 2026.1.02
Loading...
Searching...
No Matches
luciad::TileSet3DLayer Class Referencefinal

A TileSet3DLayer is a Layer that can visualize 3D tiles. More...

#include <luciad/layers/tileset3d/TileSet3DLayer.h>

Inheritance diagram for luciad::TileSet3DLayer:
luciad::Layer

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.
Builder asBuilder () const
 Returns a new builder based on this layer instance.
const std::vector< std::string > & getAttributes () const
 Returns the list of attributes that can be used in the expressions.
std::chrono::milliseconds getFadingTime () const
 Returns the time tiles will take to fade in / out when changing their visibility, in milliseconds.
const GaussianSplatsStyle & getGaussianSplatsStyle () const
 Returns the style used for Gaussian splats.
const MeshStyle & getMeshStyle () const
 Returns the style used for mesh data.
const std::shared_ptr< ITileSet3DModel > & getModel () const
 Returns the layer's model.
const PointCloudStyle & getPointCloudStyle () const
 Returns the style used for point cloud data on this layer.
double getQualityFactor () const
 Returns the quality factor for this layer.
const std::string & getTitle () const override
 Returns the layer's title.
const Matrix4x4 & getTransformation () const
 Returns the transformation.
bool isBusy () const override
 Returns whether this layer is busy loading data, rendering, loading attributions, or anything else.
bool isTextureCompressionEnabled () const
 Returns whether texture compression is enabled.
bool isTransparencyEnabled () const
 Returns whether transparency is enabled.
bool isVisible () const override
 Returns whether this layer is visible.
void removeObserver (const std::shared_ptr< ILayerObserver > &layerObserver) override
 Removes the given observer.
void setFadingTime (std::chrono::milliseconds time)
 Sets the time tiles will take to fade in / out when changing their visibility, in milliseconds.
void setGaussianSplatsStyle (GaussianSplatsStyle gaussianSplatsStyle)
 Sets the style used for Gaussian splats.
void setMeshStyle (MeshStyle meshStyle)
 Sets the style used for mesh data.
void setPointCloudStyle (PointCloudStyle pointCloudStyle)
 Sets the style used for point cloud data on this layer.
void setQualityFactor (double qualityFactor)
 Sets the quality factor for this layer.
void setTitle (std::string title) override
 Sets the layer's title.
void setTransformation (const Matrix4x4 &transformation)
 Sets the transformation.
void setTransparencyEnabled (bool enabled)
 Sets whether transparency is enabled.
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 ()
 Creates a new builder for creating a TileSet3DLayer.
static const std::string & propertyFadingTime ()
 Property name for the LayerEvent that is fired as a result of changing the layer's fading time.
static const std::string & propertyGaussianSplatsStyle ()
 Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style.
static const std::string & propertyMeshStyle ()
 Property name for the LayerEvent that is fired as a result of changing the layer's mesh style.
static const std::string & propertyPointCloudStyle ()
 Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style.
static const std::string & propertyQualityFactor ()
 Property name for the LayerEvent that is fired as a result of changing the layer's quality factor.
static const std::string & propertyTransformation ()
 Property name for the LayerEvent that is fired as a result of changing the layer's transformation.
static const std::string & propertyTransparencyEnabled ()
 Property name for the LayerEvent that is fired as a result of changing the layer's transparency setting.
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.

Detailed Description

A TileSet3DLayer is a Layer that can visualize 3D tiles.

Use luciad::TileSet3DLayer::newBuilder to create a 3D tiles layer instance.

Since
2022.0

Constructor & Destructor Documentation

◆ ~TileSet3DLayer()

luciad::TileSet3DLayer::~TileSet3DLayer ( )
override

Member Function Documentation

◆ addObserver()

void luciad::TileSet3DLayer::addObserver ( std::shared_ptr< ILayerObserver > layerObserver)
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.

Parameters
layerObserveran observer.
Exceptions
luciad::InvalidArgumentExceptionwhen the observer was already added.
luciad::NullArgumentExceptionwhen the observer is nullptr.

Implements luciad::Layer.

◆ asBuilder()

Builder luciad::TileSet3DLayer::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.

Returns
a new builder based on this layer instance.
Since
2025.0

◆ getAttributes()

const std::vector< std::string > & luciad::TileSet3DLayer::getAttributes ( ) const

Returns the list of attributes that can be used in the expressions.

Returns
the list of attributes that can be used in the expressions.
See also
Builder::attributes

◆ getFadingTime()

std::chrono::milliseconds luciad::TileSet3DLayer::getFadingTime ( ) const

Returns the time tiles will take to fade in / out when changing their visibility, in milliseconds.

The longer it is, the longer tiles will be going from fully transparent to fully visible.

Returns
the time tiles will take to fade in / out when changing their visibility, in milliseconds.

◆ getGaussianSplatsStyle()

const GaussianSplatsStyle & luciad::TileSet3DLayer::getGaussianSplatsStyle ( ) const

Returns the style used for Gaussian splats.

Returns
the style used for Gaussian splats.
Since
2026.1

◆ getMeshStyle()

const MeshStyle & luciad::TileSet3DLayer::getMeshStyle ( ) const

Returns the style used for mesh data.

Returns
the style used for mesh data.

◆ getModel()

const std::shared_ptr< ITileSet3DModel > & luciad::TileSet3DLayer::getModel ( ) const

Returns the layer's model.

Returns
the layer's model.

◆ getPointCloudStyle()

const PointCloudStyle & luciad::TileSet3DLayer::getPointCloudStyle ( ) const

Returns the style used for point cloud data on this layer.

Returns
the style used for point cloud data on this layer.

◆ getQualityFactor()

double luciad::TileSet3DLayer::getQualityFactor ( ) const

Returns the quality factor for this layer.

It is used to decide if a given tile should be displayed at certain scales.

Higher values load more tiles.

Returns
the quality factor for this layer, used to decide if a given tile should be displayed at certain scales.

◆ getTitle()

const std::string & luciad::TileSet3DLayer::getTitle ( ) const
overridevirtual

Returns the layer's title.

Should be suitable for presenting to the user.

Returns
the layer's title, should be suitable for presenting to the user.

Implements luciad::Layer.

◆ getTransformation()

const Matrix4x4 & luciad::TileSet3DLayer::getTransformation ( ) const

Returns the transformation.

See the builder for more information about this property.

Returns
the transformation.
Since
2026.1

◆ isBusy()

bool luciad::TileSet3DLayer::isBusy ( ) const
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.

Returns
whether this layer is busy.
Since
2024.1

Implements luciad::Layer.

◆ isTextureCompressionEnabled()

bool luciad::TileSet3DLayer::isTextureCompressionEnabled ( ) const

Returns whether texture compression is enabled.

Returns
whether texture compression is enabled.
See also
Builder::textureCompressionEnabled
Since
2022.1

◆ isTransparencyEnabled()

bool luciad::TileSet3DLayer::isTransparencyEnabled ( ) const

Returns whether transparency is enabled.

Returns
whether transparency is enabled.
See also
Builder::transparencyEnabled

◆ isVisible()

bool luciad::TileSet3DLayer::isVisible ( ) const
overridevirtual

Returns whether this layer is visible.

Returns
whether this layer is visible.

Implements luciad::Layer.

◆ newBuilder()

Builder luciad::TileSet3DLayer::newBuilder ( )
static

Creates a new builder for creating a TileSet3DLayer.

Returns
a new builder for creating a TileSet3DLayer.

◆ propertyFadingTime()

const std::string & luciad::TileSet3DLayer::propertyFadingTime ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's fading time.

See also
setFadingTime

◆ propertyGaussianSplatsStyle()

const std::string & luciad::TileSet3DLayer::propertyGaussianSplatsStyle ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style.

See also
setPointCloudStyle
Since
2026.1

◆ propertyMeshStyle()

const std::string & luciad::TileSet3DLayer::propertyMeshStyle ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's mesh style.

See also
setMeshStyle

◆ propertyPointCloudStyle()

const std::string & luciad::TileSet3DLayer::propertyPointCloudStyle ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's point cloud style.

See also
setPointCloudStyle

◆ propertyQualityFactor()

const std::string & luciad::TileSet3DLayer::propertyQualityFactor ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's quality factor.

See also
setQualityFactor

◆ propertyTransformation()

const std::string & luciad::TileSet3DLayer::propertyTransformation ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's transformation.

See also
setTransformation
Since
2026.1

◆ propertyTransparencyEnabled()

const std::string & luciad::TileSet3DLayer::propertyTransparencyEnabled ( )
static

Property name for the LayerEvent that is fired as a result of changing the layer's transparency setting.

See also
setTransparencyEnabled

◆ removeObserver()

void luciad::TileSet3DLayer::removeObserver ( const std::shared_ptr< ILayerObserver > & layerObserver)
overridevirtual

Removes the given observer.

If the given observer was never added, an exception is thrown.

Parameters
layerObserveran observer.
Exceptions
luciad::InvalidArgumentExceptionwhen the observer is not known.
luciad::NullArgumentExceptionwhen the observer is nullptr.

Implements luciad::Layer.

◆ setFadingTime()

void luciad::TileSet3DLayer::setFadingTime ( std::chrono::milliseconds time)

Sets the time tiles will take to fade in / out when changing their visibility, in milliseconds.

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.

Parameters
timethe fading time in milliseconds. Maximum value is 86400000 (i.e. a day).

◆ setGaussianSplatsStyle()

void luciad::TileSet3DLayer::setGaussianSplatsStyle ( GaussianSplatsStyle gaussianSplatsStyle)

Sets the style used for Gaussian splats.

Parameters
gaussianSplatsStylethe style to use.
Since
2026.1

◆ setMeshStyle()

void luciad::TileSet3DLayer::setMeshStyle ( MeshStyle meshStyle)

Sets the style used for mesh data.

Parameters
meshStylethe style to use.

◆ setPointCloudStyle()

void luciad::TileSet3DLayer::setPointCloudStyle ( PointCloudStyle pointCloudStyle)

Sets the style used for point cloud data on this layer.

Parameters
pointCloudStylethe style to use.

◆ setQualityFactor()

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.

Parameters
qualityFactorthe quality factor.

◆ setTitle()

void luciad::TileSet3DLayer::setTitle ( std::string title)
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.

Parameters
titlethe new title.

Implements luciad::Layer.

◆ setTransformation()

void luciad::TileSet3DLayer::setTransformation ( const Matrix4x4 & transformation)

Sets the transformation.

See the builder for more information about this property.

Parameters
transformationthe transformation.
Since
2026.1
Exceptions
InvalidArgumentExceptionif the matrix is not a valid affine transformation

◆ setTransparencyEnabled()

void luciad::TileSet3DLayer::setTransparencyEnabled ( bool enabled)

Sets whether transparency is enabled.

Parameters
enabledtrue to enable transparency.
See also
Builder::transparencyEnabled

◆ setVisible()

void luciad::TileSet3DLayer::setVisible ( bool visible)
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.

Parameters
visiblethe new visibility.

Implements luciad::Layer.