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

#include <CesiumGltf/AccessorUtility.h>

Public Member Functions

int64_t operator() (std::monostate)
 Attempts to obtain a vertex index from an empty IndexAccessorType, resulting in -1.
 
template<typename T >
int64_t operator() (const CesiumGltf::AccessorView< T > &value)
 Attempts to obtain a vertex index from an CesiumGltf::AccessorView.
 

Public Attributes

int64_t index
 The index of the vertex index within the accessor itself.
 

Detailed Description

Visitor that retrieves the vertex index from the given accessor type as an int64_t. This should be initialized with the index (within the accessor itself) of the vertex index.

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

Definition at line 273 of file AccessorUtility.h.

Member Function Documentation

◆ operator()() [1/2]

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

Attempts to obtain a vertex index from an CesiumGltf::AccessorView.

Definition at line 281 of file AccessorUtility.h.

◆ operator()() [2/2]

int64_t CesiumGltf::IndexFromAccessor::operator() ( std::monostate )
inline

Attempts to obtain a vertex index from an empty IndexAccessorType, resulting in -1.

Definition at line 276 of file AccessorUtility.h.

Member Data Documentation

◆ index

int64_t CesiumGltf::IndexFromAccessor::index

The index of the vertex index within the accessor itself.

Definition at line 290 of file AccessorUtility.h.


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