HDK
|
#include <HUSD_CvexBindingMap.h>
Public Member Functions | |
void | addBinding (const UT_StringHolder &parm_name, const UT_StringHolder &attrib_name, const UT_StringHolder &attrib_type=UT_StringHolder()) |
Add an entry to the map. More... | |
void | setDefaultToIdentity (bool do_identity) |
Specify if attrib name can be used as parm name. More... | |
void | setBoundOutputMask (const UT_StringRef &mask) |
Specify the mask for bound output parms. More... | |
void | clearBoundOutputMask () |
UT_StringHolder | getAttribFromParm (const UT_StringRef &parm) const |
Obtain the attribute name for the given cvex parameter name. More... | |
UT_StringHolder | getAttribTypeFromParm (const UT_StringRef &parm) const |
Obtain the requested attribute type for the given cvex parameter name. More... | |
bool | isOutBoundParm (const UT_StringRef &parm) const |
Static Public Member Functions | |
static HUSD_CvexBindingMap | constructBindingsMap (const OP_Node &node, const char *bindings_num_parm, const char *cvex_parm_name_parm, const char *usd_attrib_name_parm, const char *usd_attrib_type_parm, const char *auto_bind_parm, const char *bound_output_mask_parm) |
Definition at line 25 of file HUSD_CvexBindingMap.h.
void HUSD_CvexBindingMap::addBinding | ( | const UT_StringHolder & | parm_name, |
const UT_StringHolder & | attrib_name, | ||
const UT_StringHolder & | attrib_type = UT_StringHolder() |
||
) |
Add an entry to the map.
void HUSD_CvexBindingMap::clearBoundOutputMask | ( | ) |
|
static |
Convenience function for building the map from node's parameters. The parameters are assumed to have 1-base index (ie, default).
UT_StringHolder HUSD_CvexBindingMap::getAttribFromParm | ( | const UT_StringRef & | parm | ) | const |
Obtain the attribute name for the given cvex parameter name.
UT_StringHolder HUSD_CvexBindingMap::getAttribTypeFromParm | ( | const UT_StringRef & | parm | ) | const |
Obtain the requested attribute type for the given cvex parameter name.
bool HUSD_CvexBindingMap::isOutBoundParm | ( | const UT_StringRef & | parm | ) | const |
Returns true if the given parameter is allowed to be bound for output. Ie, whether the computed VEX export parameter value should be actually transfered to the bound attribute on the USD primitive.
void HUSD_CvexBindingMap::setBoundOutputMask | ( | const UT_StringRef & | mask | ) |
Specify the mask for bound output parms.
void HUSD_CvexBindingMap::setDefaultToIdentity | ( | bool | do_identity | ) |
Specify if attrib name can be used as parm name.