HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_Types.h File Reference
#include "GT_API.h"
#include <SYS/SYS_Types.h>
#include <UT/UT_StringHolder.h>
#include <UT/UT_Options.h>
+ Include dependency graph for GT_Types.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using GT_String = UT_StringHolder
 
using GT_Dict = UT_OptionsHolder
 
using GT_Size = int64
 
using GT_Offset = int64
 

Enumerations

enum  GT_Storage {
  GT_STORE_INVALID =-1, GT_STORE_UINT8, GT_STORE_INT8, GT_STORE_INT16,
  GT_STORE_INT32, GT_STORE_INT64, GT_STORE_REAL16, GT_STORE_FPREAL16 =GT_STORE_REAL16,
  GT_STORE_REAL32, GT_STORE_FPREAL32 =GT_STORE_REAL32, GT_STORE_REAL64, GT_STORE_FPREAL64 =GT_STORE_REAL64,
  GT_STORE_STRING, GT_STORE_DICT, GT_NUM_STORAGE_TYPES
}
 
enum  GT_Type {
  GT_TYPE_NONE = -1, GT_TYPE_POINT, GT_TYPE_HPOINT, GT_TYPE_VECTOR,
  GT_TYPE_NORMAL, GT_TYPE_COLOR, GT_TYPE_QUATERNION, GT_TYPE_MATRIX3,
  GT_TYPE_MATRIX, GT_TYPE_ST, GT_TYPE_HIDDEN, GT_TYPE_BOX2,
  GT_TYPE_BOX, GT_TYPE_TEXTURE, GT_TYPE_INDEXPAIR
}
 
enum  GT_Basis {
  GT_BASIS_INVALID = -1, GT_BASIS_LINEAR, GT_BASIS_BEZIER, GT_BASIS_BSPLINE,
  GT_BASIS_CATMULLROM, GT_BASIS_CATMULL_ROM = GT_BASIS_CATMULLROM, GT_BASIS_HERMITE, GT_BASIS_POWER,
  GT_NUM_BASIS_TYPES
}
 
enum  GT_Parameterization {
  GT_PARAMETERIZATION_INVALID = -1, GT_PARAMETERIZATION_UNIFORM, GT_PARAMETERIZATION_CHORD, GT_PARAMETERIZATION_CENTRIPETAL,
  GT_PARAMETERIZATION_APPROXARC
}
 
enum  GT_Scheme { GT_SCHEME_INVALID = -1, GT_CATMULL_CLARK, GT_LOOP, GT_BILINEAR }
 Subdivision schemes. More...
 
enum  GT_Owner {
  GT_OWNER_INVALID = -1, GT_OWNER_VERTEX, GT_OWNER_POINT, GT_OWNER_UNIFORM,
  GT_OWNER_DETAIL, GT_OWNER_SHARED = GT_OWNER_POINT, GT_OWNER_PRIMITIVE = GT_OWNER_UNIFORM, GT_OWNER_CONSTANT = GT_OWNER_DETAIL,
  GT_OWNER_MAX
}
 
enum  GT_IndexingMode { GT_INDEXING_SMALL, GT_INDEXING_LARGE, GT_INDEXING_QUICK, GT_INDEXING_CHECK }
 
enum  GT_CacheEventType {
  GT_CACHE_DETAIL_DELETE, GT_CACHE_ATTRIBUTE_CHANGE, GT_CACHE_ATTRIBUTE_CREATE, GT_CACHE_ATTRIBUTE_DELETE,
  GT_CACHE_INDEXMAP_CHANGE, GT_CACHE_GROUP_CHANGE, GT_CACHE_GROUP_CREATE, GT_CACHE_GROUP_DELETE
}
 

Functions

template<typename T >
constexpr GT_Storage GTstorage ()
 
template<>
constexpr GT_Storage GTstorage< uint8 > ()
 
template<>
constexpr GT_Storage GTstorage< int8 > ()
 
template<>
constexpr GT_Storage GTstorage< int16 > ()
 
template<>
constexpr GT_Storage GTstorage< int32 > ()
 
template<>
constexpr GT_Storage GTstorage< int64 > ()
 
template<>
constexpr GT_Storage GTstorage< fpreal16 > ()
 
template<>
constexpr GT_Storage GTstorage< fpreal32 > ()
 
template<>
constexpr GT_Storage GTstorage< fpreal64 > ()
 
template<>
constexpr GT_Storage GTstorage< GT_String > ()
 
template<>
constexpr GT_Storage GTstorage< GT_Dict > ()
 
GT_API GT_Size GTbasisSpans (GT_Basis basis, GT_Size count, bool wrapped, int order=4)
 
GT_API GT_Size GTbasisStep (GT_Basis basis, int order=4)
 
GT_API int GTsizeof (GT_Storage storage)
 
GT_API const char * GTstorage (GT_Storage storage)
 
GT_API GT_Storage GTstorage (const char *storage)
 
GT_API const char * GTtype (GT_Type type)
 
GT_API GT_Type GTtype (const char *type)
 
GT_API const char * GTbasis (GT_Basis basis)
 
GT_API GT_Basis GTbasis (const char *basis)
 
GT_API const char * GTscheme (GT_Scheme scheme)
 
GT_API GT_Scheme GTscheme (const char *scheme, GT_Scheme def=GT_CATMULL_CLARK)
 
GT_API const char * GTowner (GT_Owner owner)
 
GT_API GT_Owner GTowner (const char *owner)
 

Typedef Documentation

Definition at line 127 of file GT_Types.h.

using GT_Offset = int64

Definition at line 129 of file GT_Types.h.

using GT_Size = int64

Definition at line 128 of file GT_Types.h.

Definition at line 126 of file GT_Types.h.

Enumeration Type Documentation

enum GT_Basis
Enumerator
GT_BASIS_INVALID 
GT_BASIS_LINEAR 
GT_BASIS_BEZIER 
GT_BASIS_BSPLINE 
GT_BASIS_CATMULLROM 
GT_BASIS_CATMULL_ROM 
GT_BASIS_HERMITE 
GT_BASIS_POWER 
GT_NUM_BASIS_TYPES 

Definition at line 55 of file GT_Types.h.

Enumerator
GT_CACHE_DETAIL_DELETE 
GT_CACHE_ATTRIBUTE_CHANGE 
GT_CACHE_ATTRIBUTE_CREATE 
GT_CACHE_ATTRIBUTE_DELETE 
GT_CACHE_INDEXMAP_CHANGE 
GT_CACHE_GROUP_CHANGE 
GT_CACHE_GROUP_CREATE 
GT_CACHE_GROUP_DELETE 

Definition at line 114 of file GT_Types.h.

Enumerator
GT_INDEXING_SMALL 
GT_INDEXING_LARGE 
GT_INDEXING_QUICK 
GT_INDEXING_CHECK 

Definition at line 106 of file GT_Types.h.

enum GT_Owner
Enumerator
GT_OWNER_INVALID 
GT_OWNER_VERTEX 
GT_OWNER_POINT 
GT_OWNER_UNIFORM 
GT_OWNER_DETAIL 
GT_OWNER_SHARED 
GT_OWNER_PRIMITIVE 
GT_OWNER_CONSTANT 
GT_OWNER_MAX 

Definition at line 90 of file GT_Types.h.

Enumerator
GT_PARAMETERIZATION_INVALID 
GT_PARAMETERIZATION_UNIFORM 
GT_PARAMETERIZATION_CHORD 
GT_PARAMETERIZATION_CENTRIPETAL 
GT_PARAMETERIZATION_APPROXARC 

Definition at line 71 of file GT_Types.h.

enum GT_Scheme

Subdivision schemes.

Enumerator
GT_SCHEME_INVALID 
GT_CATMULL_CLARK 
GT_LOOP 
GT_BILINEAR 

Definition at line 81 of file GT_Types.h.

enum GT_Storage
Enumerator
GT_STORE_INVALID 
GT_STORE_UINT8 
GT_STORE_INT8 
GT_STORE_INT16 
GT_STORE_INT32 
GT_STORE_INT64 
GT_STORE_REAL16 
GT_STORE_FPREAL16 
GT_STORE_REAL32 
GT_STORE_FPREAL32 
GT_STORE_REAL64 
GT_STORE_FPREAL64 
GT_STORE_STRING 
GT_STORE_DICT 
GT_NUM_STORAGE_TYPES 

Definition at line 19 of file GT_Types.h.

enum GT_Type
Enumerator
GT_TYPE_NONE 
GT_TYPE_POINT 
GT_TYPE_HPOINT 
GT_TYPE_VECTOR 
GT_TYPE_NORMAL 
GT_TYPE_COLOR 
GT_TYPE_QUATERNION 
GT_TYPE_MATRIX3 
GT_TYPE_MATRIX 
GT_TYPE_ST 
GT_TYPE_HIDDEN 
GT_TYPE_BOX2 
GT_TYPE_BOX 
GT_TYPE_TEXTURE 
GT_TYPE_INDEXPAIR 

Definition at line 36 of file GT_Types.h.

Function Documentation

GT_API const char* GTbasis ( GT_Basis  basis)

Perform mapping between enum and string name

GT_API GT_Basis GTbasis ( const char *  basis)

Perform mapping between enum and string name

GT_API GT_Size GTbasisSpans ( GT_Basis  basis,
GT_Size  count,
bool  wrapped,
int  order = 4 
)

Compute the number of spans for a given basis and cv count. For basis types other than linear, the order is assumed to be 4.

GT_API GT_Size GTbasisStep ( GT_Basis  basis,
int  order = 4 
)
GT_API const char* GTowner ( GT_Owner  owner)

Perform mapping between enum and string name

GT_API GT_Owner GTowner ( const char *  owner)

Perform mapping between enum and string name

GT_API const char* GTscheme ( GT_Scheme  scheme)

Perform mapping between enum and string name

GT_API GT_Scheme GTscheme ( const char *  scheme,
GT_Scheme  def = GT_CATMULL_CLARK 
)

Perform mapping between enum and string name

GT_API int GTsizeof ( GT_Storage  storage)

Perform mapping between enum and string name

template<typename T >
constexpr GT_Storage GTstorage ( )
Examples:
packedsphere/packedsphere.C.

Definition at line 132 of file GT_Types.h.

GT_API const char* GTstorage ( GT_Storage  storage)

Perform mapping between enum and string name

GT_API GT_Storage GTstorage ( const char *  storage)

Perform mapping between enum and string name

template<>
constexpr GT_Storage GTstorage< fpreal16 > ( )

Definition at line 139 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< fpreal32 > ( )

Definition at line 140 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< fpreal64 > ( )

Definition at line 141 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< GT_Dict > ( )

Definition at line 143 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< GT_String > ( )

Definition at line 142 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int16 > ( )

Definition at line 136 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int32 > ( )

Definition at line 137 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int64 > ( )

Definition at line 138 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int8 > ( )

Definition at line 135 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< uint8 > ( )

Definition at line 134 of file GT_Types.h.

GT_API const char* GTtype ( GT_Type  type)

Perform mapping between enum and string name

GT_API GT_Type GTtype ( const char *  type)

Perform mapping between enum and string name