HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_Types.h File Reference
#include "GT_API.h"
#include <SYS/SYS_Types.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

typedef const char * GT_String
 
typedef int64 GT_Size
 
typedef int64 GT_Offset
 

Enumerations

enum  GT_Storage {
  GT_STORE_INVALID =-1, GT_STORE_UINT8, 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_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
}
 
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_Scheme { 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< 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 > ()
 
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

typedef int64 GT_Offset

Definition at line 110 of file GT_Types.h.

typedef int64 GT_Size

Definition at line 109 of file GT_Types.h.

typedef const char* GT_String

Definition at line 108 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 49 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 96 of file GT_Types.h.

Enumerator
GT_INDEXING_SMALL 
GT_INDEXING_LARGE 
GT_INDEXING_QUICK 
GT_INDEXING_CHECK 

Definition at line 88 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 72 of file GT_Types.h.

enum GT_Scheme

Subdivision schemes.

Enumerator
GT_CATMULL_CLARK 
GT_LOOP 
GT_BILINEAR 

Definition at line 65 of file GT_Types.h.

enum GT_Storage
Enumerator
GT_STORE_INVALID 
GT_STORE_UINT8 
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_NUM_STORAGE_TYPES 

Definition at line 17 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 

Definition at line 31 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 ( )

Definition at line 113 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 118 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< fpreal32 > ( )

Definition at line 119 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< fpreal64 > ( )

Definition at line 120 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< GT_String > ( )

Definition at line 121 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int32 > ( )

Definition at line 116 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< int64 > ( )

Definition at line 117 of file GT_Types.h.

template<>
constexpr GT_Storage GTstorage< uint8 > ( )

Definition at line 115 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