cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltf::FeatureIdFromAccessor Struct Reference

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

int64_t operator() (const AccessorView< float > &value)
 Attempts to obtain a feature ID from an AccessorView over float values, returning the float value rounded to the nearest int64_t.
 
template<typename T >
int64_t operator() (const AccessorView< T > &value)
 Attempts to obtain a feature ID from an AccessorView.
 

Public Attributes

int64_t index
 The index of the vertex whose feature ID is being queried.
 

Detailed Description

Visitor that retrieves the feature ID from the given accessor type as an int64_t. This should be initialized with the index of the vertex whose feature ID is being queried.

-1 is used to indicate errors retrieving the feature ID, e.g., if the given index was out-of-bounds.

Definition at line 115 of file AccessorUtility.h.

Member Function Documentation

◆ operator()() [1/2]

int64_t CesiumGltf::FeatureIdFromAccessor::operator() ( const AccessorView< float > & value)
inline

Attempts to obtain a feature ID from an AccessorView over float values, returning the float value rounded to the nearest int64_t.

Definition at line 119 of file AccessorUtility.h.

◆ operator()() [2/2]

template<typename T >
int64_t CesiumGltf::FeatureIdFromAccessor::operator() ( const AccessorView< T > & value)
inline

Attempts to obtain a feature ID from an AccessorView.

Definition at line 127 of file AccessorUtility.h.

Member Data Documentation

◆ index

int64_t CesiumGltf::FeatureIdFromAccessor::index

The index of the vertex whose feature ID is being queried.

Definition at line 135 of file AccessorUtility.h.


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