|
cesium-native 0.62.0
|
Visitor that retrieves the color from the given accessor type as a glm::dvec4.
More...
#include <CesiumGltf/AccessorUtility.h>
Public Member Functions | |
| template<typename T> | |
| std::optional< glm::dvec4 > | operator() (const AccessorView< AccessorTypes::VEC3< T > > &value) |
Attempts to obtain a glm::dvec4 at the given index from an accessor over a vec3. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). The fourth component will be set to 1.0. If the index is invalid, std::nullopt is returned instead. | |
| template<typename T> | |
| std::optional< glm::dvec4 > | operator() (const AccessorView< AccessorTypes::VEC4< T > > &value) |
Attempts to obtain a glm::dvec4 at the given index from an accessor over a vec4. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead. | |
Public Attributes | |
| int64_t | index |
| The index of the color to obtain. | |
Visitor that retrieves the color from the given accessor type as a glm::dvec4.
Definition at line 656 of file AccessorUtility.h.
|
inline |
Attempts to obtain a glm::dvec4 at the given index from an accessor over a vec3. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). The fourth component will be set to 1.0. If the index is invalid, std::nullopt is returned instead.
Definition at line 666 of file AccessorUtility.h.
|
inline |
Attempts to obtain a glm::dvec4 at the given index from an accessor over a vec4. The values will be cast to double and, if applicable, normalized based on std::numeric_limits<T>::max(). If the index is invalid, std::nullopt is returned instead.
Definition at line 694 of file AccessorUtility.h.
| int64_t CesiumGltf::ColorFromAccessor::index |
The index of the color to obtain.
Definition at line 715 of file AccessorUtility.h.