Enzo
Loading...
Searching...
No Matches
Types.h
Go to the documentation of this file.
1
6#pragma once
7#include <Eigen/Dense>
8
9namespace enzo
10{
11
12 namespace ga
13 {
22 enum class AttributeOwner
23 {
24 POINT,
25 VERTEX,
26 PRIMITIVE,
27 GLOBAL
28 };
32 enum class AttributeType
33 {
34 intT,
35 floatT,
36 listT,
37 vectorT,
38 boolT,
39 };
40 using AttrType = AttributeType;
41 using AttrOwner = AttributeOwner;
50 using Offset = size_t;
51 }
52 // basic types types
53 namespace bt
54 {
55 using floatT = double;
56 using intT = int64_t;
57 using boolT = bool;
58 using Vector3 = Eigen::Vector3d;
59 using Vector4 = Eigen::Vector4d;
60 using String = std::string;
61 }
62 namespace prm
63 {
64 enum class Type
65 {
66 LIST_TERMINATOR,
67 STRING,
68 FLOAT,
69 BOOL,
70 XYZ,
71 INT,
72 TOGGLE
73 };
74 }
75 namespace nt
76 {
80 using OpId = uint64_t;
81
82 enum class SocketIOType {
83 Input,
84 Output
85 };
86 }
87}
size_t Offset
ga::Offset is the index of an element in a given AttributeOwner.
Definition Types.h:50
AttributeOwner
The segment of geometry that owns a particular attribute.
Definition Types.h:23
AttributeType
Data types available to store attribute values in.
Definition Types.h:33
uint64_t OpId
The unique ID assigned to each node in the network.
Definition Types.h:80