|
HDK
|
#include <primvarUtils.h>
Public Member Functions | |
| operator bool () const | |
Public Attributes | |
| SdfPath | myPrimPath |
| Path of the associated prim, used for error reporting. More... | |
| UT_StringHolder | myName |
The attribute name to use in Houdini (e.g. P rather than points). More... | |
| TfToken | myOrigName |
| The original USD name for the primvar. More... | |
| VtValue | myFlattenedValue |
| Flattened value of the primvar. More... | |
| bool | myIsIndexed = false |
| Records whether the primvar was an indexed primvar. More... | |
| int | myElementSize = 1 |
| The primvar's element size. More... | |
| GT_Owner | myOwner = GT_OWNER_INVALID |
| The GT equivalent of the primvar's interpolation mode. More... | |
| GT_Type | myTypeInfo = GT_TYPE_NONE |
| The GT equivalent of the primvar's role, e.g. normal or color. More... | |
| UT_Optional< fpreal > | myValueScale |
Contains the primvar's name, value, and related metadata. This can be populated from various sources (e.g. USD or Hydra prims) to share common code for converting primvars to GT attributes.
Definition at line 26 of file primvarUtils.h.
|
inlineexplicit |
Definition at line 28 of file primvarUtils.h.
| int GusdPrimvarInfo::myElementSize = 1 |
The primvar's element size.
Definition at line 41 of file primvarUtils.h.
| VtValue GusdPrimvarInfo::myFlattenedValue |
Flattened value of the primvar.
Definition at line 37 of file primvarUtils.h.
| bool GusdPrimvarInfo::myIsIndexed = false |
Records whether the primvar was an indexed primvar.
Definition at line 39 of file primvarUtils.h.
| UT_StringHolder GusdPrimvarInfo::myName |
The attribute name to use in Houdini (e.g. P rather than points).
Definition at line 33 of file primvarUtils.h.
| TfToken GusdPrimvarInfo::myOrigName |
The original USD name for the primvar.
Definition at line 35 of file primvarUtils.h.
| GT_Owner GusdPrimvarInfo::myOwner = GT_OWNER_INVALID |
The GT equivalent of the primvar's interpolation mode.
Definition at line 43 of file primvarUtils.h.
| SdfPath GusdPrimvarInfo::myPrimPath |
Path of the associated prim, used for error reporting.
Definition at line 31 of file primvarUtils.h.
| GT_Type GusdPrimvarInfo::myTypeInfo = GT_TYPE_NONE |
The GT equivalent of the primvar's role, e.g. normal or color.
Definition at line 45 of file primvarUtils.h.
| UT_Optional<fpreal> GusdPrimvarInfo::myValueScale |
Scale to apply when translating the values to Houdini. This can be used for converting diameter to radius, radians to degrees, etc.
Definition at line 48 of file primvarUtils.h.