LuciadCPillar 2026.1.02
Loading...
Searching...
No Matches
luciad::ITileSet3DModel Class Referenceabstract

Marker interface for 3D tile set models. More...

#include <luciad/models/tileset3d/ITileSet3DModel.h>

Inheritance diagram for luciad::ITileSet3DModel:
luciad::Model

Public Member Functions

 ~ITileSet3DModel () override=default
virtual std::optional< GeoLocation > getGeoLocation () const =0
 Returns the geolocation of the model.
virtual std::shared_ptr< CoordinateReference > getReference () const =0
 Returns the model's reference.
virtual void setGeoLocation (GeoLocation geoLocation)=0
 Sets the geolocation of the model.
Public Member Functions inherited from luciad::Model
virtual ~Model ()=default
virtual ModelMetadata getModelMetadata () const =0
 Returns the meta data for this model.
virtual std::shared_ptr< Bounds > queryBounds () const =0
 Returns the bounds of this model, if available.

Detailed Description

Marker interface for 3D tile set models.

You can create a layer for this model using luciad::TileSet3DLayer.

Since
2022.0

Constructor & Destructor Documentation

◆ ~ITileSet3DModel()

luciad::ITileSet3DModel::~ITileSet3DModel ( )
overridedefault

Member Function Documentation

◆ getGeoLocation()

virtual std::optional< GeoLocation > luciad::ITileSet3DModel::getGeoLocation ( ) const
pure virtual

Returns the geolocation of the model.

This is always std::nullopt if the model reference is not Cartesian.

Returns
the model's geolocation.
Since
2026.1

◆ getReference()

virtual std::shared_ptr< CoordinateReference > luciad::ITileSet3DModel::getReference ( ) const
pure virtual

Returns the model's reference.

If the model is geolocated, the geolocation's target reference is returned.

Returns
the model's reference.
Since
2026.1

◆ setGeoLocation()

virtual void luciad::ITileSet3DModel::setGeoLocation ( GeoLocation geoLocation)
pure virtual

Sets the geolocation of the model.

Calling this method is only allowed if this model can be (re-)geolocated. A model can be (re-)geolocated if one of these conditions applies:

  • its reference is Cartesian
  • it has already been geolocated, meaning that the model has a non-std::nullopt geolocation.

After geolocation, getReference will return the geolocation's target reference. queryBounds will return geolocated, transformed bounds, which can be used to fit the camera to the new position of the dataset.

A change of the geolocation of this model will also be reflected in any layers created with this model. The dataset will move to its new geolocated position in the visualization.

If the geolocation's target reference matches the map reference, this change is instantly reflected in the visualization. Otherwise, the dataset may briefly disappear before being shown in the new position.

See this article on why geolocation is sometimes needed.

Parameters
geoLocationthe geolocation.
Exceptions
LogicExceptionif the model cannot be (re-)geolocated.
Since
2026.1