5#include <CesiumGltf/FeatureIdTexture.h>
6#include <CesiumGltf/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
21 static constexpr const char* TypeName =
"FeatureId";
26 int64_t featureCount = int64_t();
38 std::optional<std::string>
label;
51 std::optional<CesiumGltf::FeatureIdTexture>
texture;
57 int32_t propertyTable = -1;
71 accum += int64_t(this->label->capacity() *
sizeof(
char));
74 accum += this->texture->getSizeBytes() -
Classes for working with glTF models.
A texture containing feature IDs.
Feature IDs stored in an attribute or texture.
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...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumGltf::FeatureIdTexture > texture
A texture containing feature IDs.
std::optional< int64_t > nullFeatureId
A value that indicates that no feature is associated with this vertex or texel.
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 ...