cesium-native 0.67.0
Loading...
Searching...
No Matches
Cesium3DTilesSelection::ViewStateMeasureDelegate Class Reference

A handler for customizing calculation of the selection measure for tiles. By default that value is the screen space error, but it be another criteria such as absolute tile geometric error or the depth of a tile in the tileset. More...

#include <Cesium3DTilesSelection/ViewState.h>

Public Member Functions

virtual double computeSelectionMeasure (const ViewState &viewState, const Tile &tile, double distance, uint32_t depth) const
 Compute the error measure, a generalization of screen space error.
 
virtual ~ViewStateMeasureDelegate ()=default
 destructor
 

Detailed Description

A handler for customizing calculation of the selection measure for tiles. By default that value is the screen space error, but it be another criteria such as absolute tile geometric error or the depth of a tile in the tileset.

Definition at line 32 of file ViewState.h.

Member Function Documentation

◆ computeSelectionMeasure()

virtual double Cesium3DTilesSelection::ViewStateMeasureDelegate::computeSelectionMeasure ( const ViewState & viewState,
const Tile & tile,
double distance,
uint32_t depth ) const
virtual

Compute the error measure, a generalization of screen space error.

Parameters
viewStateThe ViewState object.
tileThe tile being tested.
distanceDistance from the ViewState's position to the tile.
depthThe depth (level) of the tile in the tileset.
Returns
The error measure

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