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... | |
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... | |
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) |
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.
|
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.
void HUSD_CvexBindingMap::setDefaultToIdentity | ( | bool | do_identity | ) |
Specify if attrib name can be used as parm name.