Enzo
Loading...
Searching...
No Matches
Types.h File Reference

Basic attribute, parameter, and node types for Enzo. More...

#include <Eigen/Dense>
#include <cstdint>

Go to the source code of this file.

Typedefs

using enzo::ga::AttrType = AttributeType
 
using enzo::ga::AttrOwner = AttributeOwner
 
using enzo::ga::Offset = size_t
 ga::Offset is the index of an element in a given AttributeOwner.
 
using enzo::bt::floatT = double
 
using enzo::bt::intT = int64_t
 
using enzo::bt::boolT = bool
 
using enzo::bt::Vector2f = Eigen::Vector2f
 
using enzo::bt::Vector3 = Eigen::Vector3d
 
using enzo::bt::Vector4 = Eigen::Vector4d
 
using enzo::bt::Matrix4 = Eigen::Matrix4d
 
using enzo::bt::String = std::string
 
using enzo::nt::OpId = uint64_t
 The unique ID assigned to each node in the network.
 

Enumerations

enum class  enzo::ga::AttributeOwner { POINT , VERTEX , FACE , PRIMITIVE }
 The segment of geometry that owns a particular attribute. More...
 
enum class  enzo::ga::AttributeType {
  intT , floatT , listT , vectorT ,
  boolT , matrixT
}
 Data types available to store attribute values in.
 
enum class  PrimType { MESH , CAMERA }
 
enum class  TransformClass : uint8_t { NONE = 0 , POINT = 1 , PRIMITIVE = 2 , POINT_PRIORITY = 3 }
 
enum class  Type {
  LIST_TERMINATOR , STRING , FLOAT , BOOL ,
  XYZ , INT , TOGGLE
}
 
enum class  SocketIOType { Input , Output }
 

Functions

TransformClass enzo::operator| (TransformClass a, TransformClass b)
 
TransformClass enzo::operator& (TransformClass a, TransformClass b)
 
bool enzo::hasFlag (TransformClass value, TransformClass flag)
 

Detailed Description

Basic attribute, parameter, and node types for Enzo.

Typedef Documentation

◆ Offset

using enzo::ga::Offset = size_t

ga::Offset is the index of an element in a given AttributeOwner.

Eg. point index, vertex index, primitive index, or global index. This different but similar in concept to a point number. This value will stay consistant through geometry modification such as adding and deleting points unlress defragmented.

Enumeration Type Documentation

◆ AttributeOwner

enum class enzo::ga::AttributeOwner
strong

The segment of geometry that owns a particular attribute.

  • POINT attributes are stored per point, these attributes have an value for each point.
  • VERTEX attributes are stored per vertex, these attributes have an value for each vertex.
  • FACE attributes are stored per face, these attributes have an value for each face.
  • PRIMITIVE attributes are stored per primitive object, these attributes only have one value.