cesium-native 0.43.0
Loading...
Searching...
No Matches
PropertyType.h
1#pragma once
2
3#include <glm/common.hpp>
4
5#include <cstdint>
6#include <string>
7#include <string_view>
8
9namespace CesiumGltf {
13enum class PropertyType {
17 Invalid,
21 Scalar,
25 Vec2,
29 Vec3,
33 Vec4,
37 Mat2,
41 Mat3,
45 Mat4,
49 String,
53 Boolean,
57 Enum
58};
59
67 None,
71 Int8,
75 Uint8,
79 Int16,
83 Uint16,
87 Int32,
91 Uint32,
95 Int64,
99 Uint64,
103 Float32,
107 Float64,
108};
109
119
130
139std::string
141
153
165
177
190
200
210
221
232
243
254
255} // namespace CesiumGltf
Classes for working with glTF models.
PropertyComponentType
The possible types of a property component.
@ Float32
A property component equivalent to a float.
@ Uint32
A property component equivalent to a uint32_t.
@ Uint16
A property component equivalent to a uint16_t.
@ Int16
A property component equivalent to an int16_t.
@ Uint8
A property component equivalent to a uint8_t.
@ Int8
A property component equivalent to an int8_t.
@ Int32
A property component equivalent to an int32_t.
@ Uint64
A property component equivalent to a uint32_t.
@ Float64
A property component equivalent to a double.
@ Int64
A property component equivalent to an int64_t.
size_t getSizeOfComponentType(PropertyComponentType componentType)
Obtains the size in bytes of a value of this PropertyComponentType.
PropertyComponentType convertArrayOffsetTypeStringToPropertyComponentType(const std::string &str)
Converts a string listed in PropertyTableProperty::ArrayOffsetType to its corresponding PropertyCompo...
bool isPropertyTypeVecN(PropertyType type)
Checks if the given PropertyType represents a vector with any number of components.
bool isPropertyComponentTypeInteger(PropertyComponentType componentType)
Checks if the given PropertyComponentType represents an integer value.
PropertyComponentType convertStringToPropertyComponentType(const std::string &str)
Converts a string into a PropertyComponentType.
bool isPropertyTypeMatN(PropertyType type)
Checks if the given PropertyType represents a matrix with any number of components.
std::string convertPropertyTypeToString(PropertyType type)
Converts a PropertyType value to a string.
std::string convertPropertyComponentTypeToString(PropertyComponentType componentType)
Converts a PropertyComponentType value to a string.
PropertyType convertStringToPropertyType(const std::string &str)
Converts a string into a PropertyType.
PropertyType
The possible types of a property in a PropertyTableView.
@ Vec3
A vector with three components.
@ Invalid
An invalid property type.
@ Scalar
A scalar property, i.e. an integer or floating point value.
@ Vec4
A vector with four components.
@ Vec2
A vector with two components.
PropertyComponentType convertAccessorComponentTypeToPropertyComponentType(int componentType)
Converts a integer type ID listed in AccessorSpec::ComponentType to its corresponding PropertyCompone...
glm::length_t getDimensionsFromPropertyType(PropertyType type)
Obtains the number of dimensions in the given PropertyType.
glm::length_t getComponentCountFromPropertyType(PropertyType type)
Obtains the number of components in the given PropertyType.
PropertyComponentType convertStringOffsetTypeStringToPropertyComponentType(const std::string &str)
Converts a string listed in PropertyTableProperty::StringOffsetType to its corresponding PropertyComp...
An object defining the values of an enum.
Definition Enum.h:17