cesium-native 0.43.0
Loading...
Searching...
No Matches
ExtensionExtInstanceFeaturesFeatureId.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10#include <string>
11
12namespace CesiumGltf {
16struct CESIUMGLTF_API ExtensionExtInstanceFeaturesFeatureId final
21 static constexpr const char* TypeName =
22 "ExtensionExtInstanceFeaturesFeatureId";
23
27 int64_t featureCount = int64_t();
28
33 std::optional<int64_t> nullFeatureId;
34
39 std::optional<std::string> label;
40
47 std::optional<int64_t> attribute;
48
53 std::optional<int64_t> propertyTable;
54
61 int64_t getSizeBytes() const {
62 int64_t accum = 0;
63 accum += int64_t(sizeof(ExtensionExtInstanceFeaturesFeatureId));
65 int64_t(sizeof(CesiumUtility::ExtensibleObject));
66 if (this->label) {
67 accum += int64_t(this->label->capacity() * sizeof(char));
68 }
69 return accum;
70 }
71};
72} // namespace CesiumGltf
Classes for working with glTF models.
Feature IDs stored in a GPU mesh instancing attribute.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< std::string > label
A label assigned to this feature ID set. Labels must be alphanumeric identifiers matching the regular...
std::optional< int64_t > attribute
An integer value used to construct a string in the format _FEATURE_ID_<set index> which is a referenc...
std::optional< int64_t > nullFeatureId
A value that indicates that no feature is associated with this instance.
std::optional< int64_t > propertyTable
The index of the property table containing per-feature property values. Only applicable when using th...
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...