cesium-native 0.65.0
Loading...
Searching...
No Matches
CesiumVectorOverlays::VectorStylingProvider Class Referenceabstract

An interface for providing styling information for vector features. More...

#include <CesiumVectorOverlays/VectorStylingProvider.h>

Public Member Functions

virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::PointStyle > > > onStylePoints (const CesiumAsync::AsyncSystem &asyncSystem, const CesiumGltf::Model &model, const std::vector< int64_t > &featureIds, const std::vector< CesiumGeospatial::Cartographic > &points)=0
 Styles a set of point features.
 
virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::LineStyle > > > onStylePolylines (const CesiumAsync::AsyncSystem &asyncSystem, const CesiumGltf::Model &model, const std::vector< int64_t > &featureIds, const std::vector< std::vector< CesiumGeospatial::Cartographic > > &polylines)=0
 Styles a set of polyline features.
 
virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::PolygonStyle > > > onStylePolygons (const CesiumAsync::AsyncSystem &asyncSystem, const CesiumGltf::Model &model, const std::vector< int64_t > &featureIds, const std::vector< std::vector< CesiumGeospatial::Cartographic > > &polygons)=0
 Styles a set of polygon features.
 

Detailed Description

An interface for providing styling information for vector features.

Definition at line 16 of file VectorStylingProvider.h.

Member Function Documentation

◆ onStylePoints()

virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::PointStyle > > > CesiumVectorOverlays::VectorStylingProvider::onStylePoints ( const CesiumAsync::AsyncSystem & asyncSystem,
const CesiumGltf::Model & model,
const std::vector< int64_t > & featureIds,
const std::vector< CesiumGeospatial::Cartographic > & points )
pure virtual

Styles a set of point features.

Parameters
asyncSystemThe async system.
modelThe glTF model containing the features and metadata information.
featureIdsThe feature IDs of the points to style.
pointsThe geometry of the points to style. This will be the same size as featureIds, and each point corresponds to the feature ID at the same index.
Returns
A future that resolves to a vector of optional PointStyle objects, one for each point feature. The vector should be the same size as featureIds andpoints. Ifstd::nulloptis provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size offeatureIdsandpoints`, the default style will be used for all features.

◆ onStylePolygons()

virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::PolygonStyle > > > CesiumVectorOverlays::VectorStylingProvider::onStylePolygons ( const CesiumAsync::AsyncSystem & asyncSystem,
const CesiumGltf::Model & model,
const std::vector< int64_t > & featureIds,
const std::vector< std::vector< CesiumGeospatial::Cartographic > > & polygons )
pure virtual

Styles a set of polygon features.

Parameters
asyncSystemThe async system.
modelThe glTF model containing the features and metadata information.
featureIdsThe feature IDs of the polygons to style.
polygonsThe geometry of the polygons to style. This will be the same size as featureIds, and each polygon corresponds to the feature ID at the same index.
Returns
A future that resolves to a vector of optional PolygonStyle objects, one for each polygon feature. The vector should be the same size as featureIds and polygons. If std::nullopt is provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size of featureIds and polygons, the default style will be used for all features.

◆ onStylePolylines()

virtual CesiumAsync::Future< std::vector< std::optional< CesiumVectorData::LineStyle > > > CesiumVectorOverlays::VectorStylingProvider::onStylePolylines ( const CesiumAsync::AsyncSystem & asyncSystem,
const CesiumGltf::Model & model,
const std::vector< int64_t > & featureIds,
const std::vector< std::vector< CesiumGeospatial::Cartographic > > & polylines )
pure virtual

Styles a set of polyline features.

Parameters
asyncSystemThe async system.
modelThe glTF model containing the features and metadata information.
featureIdsThe feature IDs of the polylines to style.
polylinesThe geometry of the polylines to style. This will be the same size as featureIds, and each polyline corresponds to the feature ID at the same index.
Returns
A future that resolves to a vector of optional LineStyle objects, one for each polyline feature. The vector should be the same size as featureIds and polylines. If std::nullopt is provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size of featureIds and polylines, the default style will be used for all features.

The documentation for this class was generated from the following file: