5#include <CesiumGltf/CameraOrthographic.h>
6#include <CesiumGltf/CameraPerspective.h>
7#include <CesiumGltf/Library.h>
8#include <CesiumGltf/NamedObject.h>
22 static constexpr const char* TypeName =
"Camera";
30 inline static const std::string perspective =
"perspective";
33 inline static const std::string orthographic =
"orthographic";
60 std::string type = Type::perspective;
70 accum += int64_t(
sizeof(
Camera));
73 if (this->orthographic) {
74 accum += this->orthographic->getSizeBytes() -
77 if (this->perspective) {
78 accum += this->perspective->getSizeBytes() -
Classes for working with glTF models.
An orthographic camera containing properties to create an orthographic projection matrix.
A perspective camera containing properties to create a perspective projection matrix.
Known values for Specifies if the camera uses a perspective or orthographic projection.
A camera's projection. A node MAY reference a camera to apply a transform to place the camera in the ...
std::optional< CesiumGltf::CameraOrthographic > orthographic
An orthographic camera containing properties to create an orthographic projection matrix....
std::optional< CesiumGltf::CameraPerspective > perspective
A perspective camera containing properties to create a perspective projection matrix....
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
The base class for objects in a glTF that have a name.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...