cesium-native 0.66.0
Loading...
Searching...
No Matches
ExtensionExtGeospatialCrsWkid.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 {
18struct CESIUMGLTF_API ExtensionExtGeospatialCrsWkid final
23 static constexpr const char* TypeName = "ExtensionExtGeospatialCrsWkid";
26 static constexpr const char* ExtensionName = "EXT_geospatial_crs_wkid";
27
31 std::string authority;
32
36 int64_t wkid = int64_t();
37
42 std::optional<int64_t> vcsWkid;
43
48 std::optional<std::string> epoch;
49
56 int64_t getSizeBytes() const {
57 int64_t accum = 0;
58 accum += int64_t(sizeof(ExtensionExtGeospatialCrsWkid));
60 int64_t(sizeof(CesiumUtility::ExtensibleObject));
61 accum += int64_t(this->authority.capacity() * sizeof(char));
62 if (this->epoch) {
63 accum += int64_t(this->epoch->capacity() * sizeof(char));
64 }
65 return accum;
66 }
67};
68} // namespace CesiumGltf
Classes for working with glTF models.
This extension declares the Coordinate Reference System (CRS) in which a glTF 2.1 asset was authored....
std::optional< std::string > epoch
An epoch for coordinates that are referenced to a dynamic CRS such as WGS 84. Expressed as a decimal ...
std::string authority
The organization that defines and manages a specific CRS identifier.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
int64_t wkid
An integer that identifies the CRS.
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::optional< int64_t > vcsWkid
An integer that identifies the vertical CRS if wkid identifies a horizontal CRS.
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 ...