Map to translate from Alembic attribute names to Houdini names.
More...
#include <GEO_PackedNameMap.h>
Map to translate from Alembic attribute names to Houdini names.
Definition at line 30 of file GEO_PackedNameMap.h.
GEO_PackedNameMap::GEO_PackedNameMap |
( |
| ) |
|
GEO_PackedNameMap::~GEO_PackedNameMap |
( |
| ) |
|
void GEO_PackedNameMap::addMap |
( |
const char * |
abcName, |
|
|
const char * |
houdiniName |
|
) |
| |
Add a translation from the abcName to the houdini attribute name.
void GEO_PackedNameMap::addTypeInfo |
( |
const char * |
abcName, |
|
|
const char * |
typeInfo |
|
) |
| |
Add a translation from the abcName to the attribute's type info.
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly.
void GEO_PackedNameMap::dump |
( |
| ) |
const |
int64 GEO_PackedNameMap::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
Report memory usage (includes all shared memory)
const char* GEO_PackedNameMap::getName |
( |
const char * |
name | ) |
const |
Get the name mapping. If the name isn't mapped, the original name will be returned. If the attribute should be skipped, a NULL pointer will be returned.
const char* GEO_PackedNameMap::getName |
( |
const std::string & |
name | ) |
const |
|
inline |
const char* GEO_PackedNameMap::getTypeInfo |
( |
const char * |
name | ) |
const |
Get the typeinfo mapping. If the name isn't mapped, nullptr will be returned.
const char* GEO_PackedNameMap::getTypeInfo |
( |
const std::string & |
name | ) |
const |
|
inline |
uint GEO_PackedNameMap::hash |
( |
| ) |
const |
Compute a hash for the name map.
bool GEO_PackedNameMap::isDefault |
( |
| ) |
const |
|
inline |
Is the name map default (allow all attributes and no renaming)
Definition at line 61 of file GEO_PackedNameMap.h.
JSON I/O. It's up to the caller to determine which version of the name map to load. This is typically done by using a different keyword when loading/saving.
- Version 1:
Saves a single map for the attribute name map
- Version 2:
Saves a keyword map with different components. The name map along with the patterns.
bool GEO_PackedNameMap::matchPattern |
( |
GA_AttributeOwner |
owner, |
|
|
const char * |
name |
|
) |
| const |
Check to see whether an attribute can be added. This matches the pattern for the given owner.
JSON I/O. It's up to the caller to determine which version of the name map to load. This is typically done by using a different keyword when loading/saving.
- Version 1:
Saves a single map for the attribute name map
- Version 2:
Saves a keyword map with different components. The name map along with the patterns.
Set a pattern for load attributes. Only attributes which match the given pattern should be created. The default pattern is "*" (allowing all attributes).
void GEO_PackedNameMap::skip |
( |
const char * |
abcName | ) |
|
|
inline |
Avoid adding an attribute of the given name. This is done by.
Definition at line 96 of file GEO_PackedNameMap.h.
The documentation for this class was generated from the following file: