cesium-native 0.43.0
Loading...
Searching...
No Matches
PropertyTextureProperty.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 <CesiumGltf/TextureInfo.h>
7#include <CesiumUtility/JsonValue.h>
8
9#include <cstdint>
10#include <optional>
11#include <vector>
12
13namespace CesiumGltf {
17struct CESIUMGLTF_API PropertyTextureProperty final : public TextureInfo {
21 static constexpr const char* TypeName = "PropertyTextureProperty";
22
29 std::vector<int64_t> channels = {0};
30
36 std::optional<CesiumUtility::JsonValue> offset;
37
43 std::optional<CesiumUtility::JsonValue> scale;
44
51 std::optional<CesiumUtility::JsonValue> max;
52
59 std::optional<CesiumUtility::JsonValue> min;
60
67 int64_t getSizeBytes() const {
68 int64_t accum = 0;
69 accum += int64_t(sizeof(PropertyTextureProperty));
70 accum += TextureInfo::getSizeBytes() - int64_t(sizeof(TextureInfo));
71 accum += int64_t(sizeof(int64_t) * this->channels.capacity());
72 return accum;
73 }
74};
75} // namespace CesiumGltf
Classes for working with glTF models.
A texture containing property values.
std::optional< CesiumUtility::JsonValue > min
Minimum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
std::optional< CesiumUtility::JsonValue > offset
An offset to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< CesiumUtility::JsonValue > scale
A scale to apply to property values. Only applicable when the component type is FLOAT32 or FLOAT64,...
std::optional< CesiumUtility::JsonValue > max
Maximum value present in the property values. Only applicable to SCALAR, VECN, and MATN types....
Reference to a texture.
Definition TextureInfo.h:14