cesium-native 0.62.0
Loading...
Searching...
No Matches
ExtensionKhrBillboard.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 <string>
9#include <vector>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API ExtensionKhrBillboard final
20 static constexpr const char* TypeName = "ExtensionKhrBillboard";
23 static constexpr const char* ExtensionName = "KHR_billboard";
24
30 inline static const std::string X = "X";
31
33 inline static const std::string Y = "Y";
34
36 inline static const std::string Z = "Z";
37 };
38
43 bool overlay = false;
44
49 std::vector<std::string> rotationAxis = {"X", "Y", "Z"};
50
55 bool scaleWithDistance = false;
56
61 std::vector<double> up = {0, 1, 0};
62
66 std::vector<double> viewDirection = {0, 0, 1};
67
74 int64_t getSizeBytes() const {
75 int64_t accum = 0;
76 accum += int64_t(sizeof(ExtensionKhrBillboard));
78 int64_t(sizeof(CesiumUtility::ExtensibleObject));
79 accum += int64_t(sizeof(std::string) * this->rotationAxis.capacity());
80 accum += int64_t(sizeof(double) * this->up.capacity());
81 accum += int64_t(sizeof(double) * this->viewDirection.capacity());
82 return accum;
83 }
84};
85} // namespace CesiumGltf
Classes for working with glTF models.
KHR_billboard glTF Node Extension.
bool scaleWithDistance
If true, the billboard scales with distance from the camera. (Default: false)
std::vector< std::string > rotationAxis
The axes around which the billboard rotates. 'X', 'Y', and/or 'Z'. (Default: ['X',...
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
std::vector< double > viewDirection
The view direction of the billboard. (Default: +Z)
bool overlay
If true, the billboard is rendered on top of other objects. (Default: false)
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::vector< double > up
The up direction of the billboard. Must be defined if viewDirection is parallel to the default up vec...
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 ...