5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
20 static constexpr const char*
TypeName =
"ExtensionKhrBillboard";
30 inline static const std::string
X =
"X";
33 inline static const std::string
Y =
"Y";
36 inline static const std::string
Z =
"Z";
61 std::vector<double>
up = {0, 1, 0};
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());
Classes for working with glTF models.
Known values for rotationAxis.
static const std::string Z
Z
static const std::string Y
Y
static const std::string X
X
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 ...