cesium-native 0.43.0
Loading...
Searching...
No Matches
Node.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/NamedObject.h>
7
8#include <cstdint>
9#include <vector>
10
11namespace CesiumGltf {
23struct CESIUMGLTF_API Node final : public CesiumGltf::NamedObject {
27 static constexpr const char* TypeName = "Node";
28
32 int32_t camera = -1;
33
37 std::vector<int32_t> children;
38
46 int32_t skin = -1;
47
52 std::vector<double> matrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1};
53
57 int32_t mesh = -1;
58
63 std::vector<double> rotation = {0, 0, 0, 1};
64
69 std::vector<double> scale = {1, 1, 1};
70
74 std::vector<double> translation = {0, 0, 0};
75
81 std::vector<double> weights;
82
89 int64_t getSizeBytes() const {
90 int64_t accum = 0;
91 accum += int64_t(sizeof(Node));
93 int64_t(sizeof(CesiumGltf::NamedObject));
94 accum += int64_t(sizeof(int32_t) * this->children.capacity());
95 accum += int64_t(sizeof(double) * this->matrix.capacity());
96 accum += int64_t(sizeof(double) * this->rotation.capacity());
97 accum += int64_t(sizeof(double) * this->scale.capacity());
98 accum += int64_t(sizeof(double) * this->translation.capacity());
99 accum += int64_t(sizeof(double) * this->weights.capacity());
100 return accum;
101 }
102};
103} // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29
A node in the node hierarchy. When the node contains skin, all mesh.primitives MUST contain JOINTS_0 ...
Definition Node.h:23
std::vector< int32_t > children
The indices of this node's children.
Definition Node.h:37
std::vector< double > weights
The weights of the instantiated morph target. The number of array elements MUST match the number of m...
Definition Node.h:81
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Node.h:89