MCPcopy Create free account
hub / github.com/assimp/assimp / NodeAttribute

Method NodeAttribute

code/AssetLib/FBX/FBXNodeAttribute.cpp:59–70  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

57
58// ------------------------------------------------------------------------------------------------
59NodeAttribute::NodeAttribute(uint64_t id, const Element &element, const Document &doc, const std::string &name) :
60 Object(id, element, name), props() {
61 const Scope &sc = GetRequiredScope(element);
62
63 const std::string &classname = ParseTokenAsString(GetRequiredToken(element, 2));
64
65 // hack on the deriving type but Null/LimbNode attributes are the only case in which
66 // the property table is by design absent and no warning should be generated
67 // for it.
68 const bool is_null_or_limb = !strcmp(classname.c_str(), "Null") || !strcmp(classname.c_str(), "LimbNode");
69 props = GetPropertyTable(doc, "NodeAttribute.Fbx" + classname, element, sc, is_null_or_limb);
70}
71
72// ------------------------------------------------------------------------------------------------
73CameraSwitcher::CameraSwitcher(uint64_t id, const Element &element, const Document &doc, const std::string &name) :

Callers

nothing calls this directly

Calls 2

ParseTokenAsStringFunction · 0.85
GetPropertyTableFunction · 0.85

Tested by

no test coverage detected