8 #ifndef __HAPI_COMMON_h__
9 #define __HAPI_COMMON_h__
16 #define HAPI_POSITION_VECTOR_SIZE 3
17 #define HAPI_SCALE_VECTOR_SIZE 3
18 #define HAPI_SHEAR_VECTOR_SIZE 3
19 #define HAPI_NORMAL_VECTOR_SIZE 3
20 #define HAPI_QUATERNION_VECTOR_SIZE 4
21 #define HAPI_EULER_VECTOR_SIZE 3
22 #define HAPI_UV_VECTOR_SIZE 2
23 #define HAPI_COLOR_VECTOR_SIZE 4
24 #define HAPI_CV_VECTOR_SIZE 4
26 #define HAPI_PRIM_MIN_VERTEX_COUNT 1
27 #define HAPI_PRIM_MAX_VERTEX_COUNT 16
29 #define HAPI_INVALID_PARM_ID -1
31 #define HAPI_MAX_NUM_CONNECTIONS 128
35 #define HAPI_ATTRIB_POSITION "P"
36 #define HAPI_ATTRIB_UV "uv"
37 #define HAPI_ATTRIB_UV2 "uv2"
38 #define HAPI_ATTRIB_NORMAL "N"
39 #define HAPI_ATTRIB_TANGENT "tangentu"
40 #define HAPI_ATTRIB_TANGENT2 "tangentv"
41 #define HAPI_ATTRIB_COLOR "Cd"
42 #define HAPI_ATTRIB_NAME "name"
43 #define HAPI_ATTRIB_INSTANCE "instance"
44 #define HAPI_ATTRIB_ROT "rot"
45 #define HAPI_ATTRIB_SCALE "scale"
53 #define HAPI_UNGROUPED_GROUP_NAME "__ungrouped_group"
61 #define HAPI_RAW_FORMAT_NAME "HAPI_RAW" // HAPI-only Raw Format
62 #define HAPI_PNG_FORMAT_NAME "PNG"
63 #define HAPI_JPEG_FORMAT_NAME "JPEG"
64 #define HAPI_BMP_FORMAT_NAME "Bitmap"
65 #define HAPI_TIFF_FORMAT_NAME "TIFF"
66 #define HAPI_TGA_FORMAT_NAME "Targa"
72 #define HAPI_DEFAULT_IMAGE_FORMAT_NAME HAPI_PNG_FORMAT_NAME
75 #define HAPI_GLOBAL_NODES_NODE_NAME "GlobalNodes"
78 #define HAPI_ENV_HIP "HIP"
79 #define HAPI_ENV_JOB "JOB"
80 #define HAPI_ENV_CLIENT_NAME "HAPI_CLIENT_NAME"
85 #define HAPI_CACHE_COP2_COOK "COP Cook Cache"
86 #define HAPI_CACHE_COP2_FLIPBOOK "COP Flipbook Cache"
87 #define HAPI_CACHE_IMAGE "Image Cache"
88 #define HAPI_CACHE_OBJ "Object Transform Cache"
89 #define HAPI_CACHE_GL_TEXTURE "OpenGL Texture Cache"
90 #define HAPI_CACHE_GL_VERTEX "OpenGL Vertex Cache"
91 #define HAPI_CACHE_SOP "SOP Cache"
92 #define HAPI_CACHE_VEX "VEX File Cache"
97 #define HAPI_ATTRIB_INPUT_CURVE_COORDS "hapi_input_curve_coords"
103 #define HAPI_C_ENUM_TYPEDEF( enum_name )
104 #define HAPI_C_STRUCT_TYPEDEF( struct_name )
106 #define HAPI_C_ENUM_TYPEDEF( enum_name ) \
107 typedef enum enum_name enum_name;
108 #define HAPI_C_STRUCT_TYPEDEF( struct_name ) \
109 typedef struct struct_name struct_name;
110 #endif // __cplusplus
120 #endif // __cplusplus
126 typedef signed char int8_t;
127 typedef short int16_t;
128 typedef long long int64_t;
132 #ifdef HAPI_THRIFT_ABI
149 #if ( defined _WIN32 || defined WIN32 )
2161 #endif // __HAPI_COMMON_h__
#define HAPI_QUATERNION_VECTOR_SIZE
Min cache memory limit in MB.
A event indicating that the entire graph is about to be dirtied.
HAPI_StringHandle disabledConditionSH
Sent when a dependency is removed from a work item.
Sent when an output file is added to a work item.
int maximumResolutionX
Specifies the maximum allowed width of an image in the compositor.
HAPI_NodeId nodeId
id of related node.
Data for an image, used with HAPI_GetImageInfo() and HAPI_SetImageInfo()
HAPI_StringHandle labelSH
Instance name (the label + a number).
HAPI_StringHandle nameSH
String handle for the name of the part.
HAPI_Bool isInstancer
See HAPI_Instancing.
Sent for each node in the graph, when a cook completes.
Sent when an error is issued by the node.
HAPI_ImageDataFormat dataFormat
HAPI_Bool clearErrorsAndWarnings
A work item event that indicates the item has been selected in the TOPs UI.
HAPI_ChoiceListType choiceListType
HAPI_PDG_WorkItemId HAPI_PDG_WorkitemId
Backwards compatibility for HAPI_PDG_WorkitemId.
Data for a PDG output file.
Sent when a node finished generating.
HAPI_NodeId objectToInstanceId
HAPI_PDG_WorkItemId dependencyId
id of related work item dependency.
HAPI_Bool refineCurveToLinear
HAPI_StatusVerbosity verbosity
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_1.
int HAPI_PDG_WorkItemId
Use this with PDG functions.
Just the presets binary blob.
int intValuesIndex
Whether the label should be displayed.
int HAPI_PDG_GraphContextId
Use this with PDG functions.
#define HAPI_POSITION_VECTOR_SIZE
int floatValuesIndex
Whether the label should be displayed.
MatType shear(Axis axis0, Axis axis1, typename MatType::value_type shear)
Set the matrix to a shear along axis0 by a fraction of axis1.
HAPI_PackedPrimInstancingMode packedPrimInstancingMode
A special enum that represents the OR of all event types.
int instanceCount
The number of parms in a multiparm instance.
HAPI_StringHandle visibilityConditionSH
int eventType
HAPI_PDG_EventType event type.
HAPI_Bool haveMaterialsChanged
HAPI_NodeType inputNodeType
HAPI_StringHandle typeNameSH
HAPI_Bool isPeriodic
Whether the curves in this curve mesh are periodic (closed by appending a new point) ...
"intvector", "intvector3"
HAPI_PDG_State
Used with PDG functions.
HAPI_AttributeOwner owner
Sent when a work item has a dependency added.
Sent when a node cooks for the first time.
int handleCount
See HAPI_Objects.
Sent when a new node is created.
int currentState
HAPI_PDG_WorkItemState value of current state for state change.
HAPI_Bool isRational
Whether the curves in this curve mesh are rational.
int choiceIndex
Whether the label should be displayed.
Sent when the parent item for a work item is deleted.
HAPI_PackedPrimInstancingMode
HAPI_StringHandle labelSH
The label string for the parameter.
True if it actually has a maximum size.
Sent when a node is disconnected from another node.
Info for a PDG work item.
#define HAPI_SHEAR_VECTOR_SIZE
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_2.
HAPI_Bool cookTemplatedGeos
Decide whether to recursively cook all templated geos or not.
HAPI_StringHandle helpSH
The help string for this parameter.
HAPI_VolumeVisualType type
HAPI_Bool autoClose
Close the server automatically when all clients disconnect from it.
HAPI_ThriftSharedMemoryBufferType
HAPI_StringHandle templateNameSH
Meta-data about an HDA, returned by HAPI_GetAssetInfo()
int stringValuesIndex
Whether the label should be displayed.
HAPI_InputCurveParameterization
HAPI_StringHandle fullOpNameSH
User-defined asset version.
Only some objects failed.
HAPI_Bool createdPostAssetLoad
HAPI_Bool splitGeosByAttribute
Meta-data for an OBJ Node.
int knotCount
The number of knots for all curves.
Sent when a work item is deleted from a node.
HAPI_StringHandle handleParmNameSH
Sent when a node finishes cooking.
HAPI_AttributeOwner originalOwner
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_0.
HAPI_ThriftSharedMemoryBufferType sharedMemoryBufferType
int minPort
Specifies a range of port numbers, [minPort, maxPort].
Options to configure a Thrift server being started from HARC.
Total number of supported parameter types.
GA_API const UT_StringHolder scale
Everything cook successfully without errors.
Menu Only, Single Selection.
int index
The work item's index.
int curveCount
The number of curves contained in this curve mesh.
HAPI_Bool cacheMeshTopology
A node event indicating that the node has finished dirtying items.
HAPI_Bool hasKnots
Whether the curve has knots.
HAPI_STATIC_ASSERT(sizeof(HAPI_UInt8)==1, unsupported_size_of_uint8)
Data associated with a PDG Event.
int tagSH
The file tag of the output.
HAPI_ParmId parentId
Parameter id of the parent of this parameter.
Meta-data describing a Geo Part.
HAPI_AttributeTypeInfo typeInfo
int order
Order of 1 is invalid. 0 means there is a varying order.
int tagCount
Number of tags on this paramter.
int transformInputCount
See HAPI_Handles.
int outputCount
The number of outputs this specific node has.
HAPI_TCP_PortType portType
Specification for the port numbers.
HAPI_Bool handleSpherePartTypes
HAPI_PDG_WorkItemState
Used with PDG functions.
int instanceStartOffset
The number of instances in a multiparm.
int childIndex
Child index within its immediate parent parameter.
Meta-data for a Houdini Node.
int connectionCount
The number of subconnections in this session.
HAPI_PDG_EventType
Used with PDG functions.
Presets blob within an .idx file format.
int instanceLength
The index of the instance in the multiparm.
int lastState
HAPI_PDG_WorkItemState value of last state for state change.
HAPI_Permissions permissions
Configuration options for Houdini's compositing context.
HAPI_ParmType type
The HAPI type of the parm.
HAPI_Int64 sharedMemoryBufferSize
License Type. See HAPI_License.
SIM_API const UT_StringHolder rotation
HAPI_HeightFieldSampling
Type of sampling for heightfield.
Field + Multiple Selection Menu.
HAPI_ImagePacking packing
ex: true = RGBRGBRGB, false = RRRGGGBBB
HAPI_Int64 HAPI_SessionId
Has to be 64-bit.
#define HAPI_SCALE_VECTOR_SIZE
HAPI_Bool labelNone
the next parm.
Configurations for sessions.
Options which affect how nodes are cooked.
HAPI_Bool useMenuItemTokenAsValue
Whether or not the "Use Menu Item Token As Value" checkbox was checked in a integer menu item...
A node event that indicates that node is about to have all its work items cleared.
HAPI_StringHandle splitAttrSH
Sent when a new scheduler is added to the graph.
#define HAPI_MAX_NUM_CONNECTIONS
HAPI_StringHandle valueSH
HAPI_Bool haveGeosChanged
HAPI_StringHandle versionSH
Path to the .otl library file.
HAPI_ThriftSharedMemoryBufferType sharedMemoryBufferType
int maximumResolutionY
Specifies the maximum allowed height of an image in the compositor.
Sent when a node was renamed.
HAPI_StringHandle assetParmNameSH
Meta-data for a SOP Node.
HAPI_Bool isDisplayGeo
Final Result (Display SOP).
HAPI_Bool isTimeDependent
Indicates if this node will change over time.
Sent from dynamic work items that generate from a cooked item.
HAPI_Bool hasGeoChanged
For incremental updates.
Sent when a work item's state changes.
int vertexCount
The number of control vertices (CVs) for all curves.
HAPI_StringHandle imageFileFormatNameSH
Data for global timeline, used with HAPI_SetTimelineOptions()
HAPI_Bool hasMaterialChanged
A node event indicating that one more items in the node will be dirtied.
Sent when a new work item is added by a node.
True if it actually has a minimum size.
HAPI_Bool isTemplated
Has the templated flag turned on which means "expose as read-only".
Looks for Guide Geometry.
int totalCookCount
Total number of cooks of this node.
HAPI_StringHandle filePathSH
This is what any end user should be shown.
HAPI_Bool checkPartChanges
SIM_API const UT_StringHolder position
HAPI_StringHandle typeInfoSH
HAPI_PDG_WorkItemId workItemId
id of related work item.
int extraFlags
For internal use only. :)
HAPI_StringHandle splitGroupSH
HAPI_StringHandle labelSH
int inputCount
The number of inputs this specific node has.
HAPI_StringHandle helpURLSH
Asset help marked-up text.
int outputFileCount
The number of output files reported by the work item.
Max cache memory limit in MB.
HAPI_StringHandle nameSH
Name of the work item.
HAPI_Bool splitGeosByGroup
Sent for each node in the graph, when a cook starts.
int objectCount
Asset help URL.
HAPI_StringHandle helpTextSH
Full asset name and namespace.
Implicit type based on data.
Sent when a scheduler is removed from the graph.
HAPI_Bool splitPointsByVertexAttributes
HAPI_StorageType storage
Can be either HAPI_STORAGETYPE_INT or HAPI_STORAGETYPE_FLOAT.
Used for Results. Equivalent to HAPI_STATUSVERBOSITY_2.
Sent when a node was removed from the graph.
HAPI_Bool haveObjectsChanged
#define HAPI_EULER_VECTOR_SIZE
HAPI_Bool cookUsingHoudiniTime
HAPI_Int64 sharedMemoryBufferSize
#define HAPI_C_STRUCT_TYPEDEF(struct_name)
Field + Single Selection Menu.
Sent when an warning is issued by the node.
int HAPI_NodeId
See HAPI_Nodes_Basics.
HAPI_PartId id
Id to identify this part relative to it's Geo.
HAPI_CacheProperty
Identifies a memory cache.
You should abort the cook.
Sent when a node was connected to another node.
HAPI_PrmScriptType scriptType
The Houdini script-type of the parm.
Data for a single Key Frame.
HAPI_Int64 totalArrayElements
Mini Menu Only, Single Selection.
HAPI_Bool isClosed
Similar to isPeriodic, but creates a polygon instead of a separate point.
A special enum that represents the OR of both the CookError and CookWarning events.
#define HAPI_C_ENUM_TYPEDEF(enum_name)
[HAPI_InputCurve]
int filePathSH
The file path of the output.
HAPI_Bool hasTransformChanged
HAPI_StringHandle objectInstancePathSH
HAPI_StringHandle internalNodePathSH
An empty, undefined event. Should be ignored.
HAPI_Bool preferOutputNodes
HAPI_Bool disabled
Whether this parm should appear enabled or disabled.
HAPI_Bool handleBoxPartTypes
HAPI_StringHandle msgSH
String handle of the event message (> 0 if there is a message).
Meta-data for a combo-box / choice parm.
HAPI_NodeFlags inputNodeFlag
int maxVerticesPerPrimitive
HAPI_Bool isChildOfMultiParm