MCPcopy Create free account
hub / github.com/OGRECave/ogre / processNodes

Method processNodes

PlugIns/DotScene/src/DotSceneLoader.cpp:224–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void DotSceneLoader::processNodes(pugi::xml_node& XMLNode)
225{
226 LogManager::getSingleton().logMessage("[DotSceneLoader] Processing Nodes...", LML_TRIVIAL);
227
228 // Process node (*)
229 for (auto pElement : XMLNode.children("node"))
230 {
231 processNode(pElement);
232 }
233
234 // Process position (?)
235 if (auto pElement = XMLNode.child("position"))
236 {
237 mAttachNode->setPosition(parseVector3(pElement));
238 }
239
240 // Process rotation (?)
241 if (auto pElement = XMLNode.child("rotation"))
242 {
243 mAttachNode->setOrientation(parseQuaternion(pElement));
244 }
245
246 // Process scale (?)
247 if (auto pElement = XMLNode.child("scale"))
248 {
249 mAttachNode->setScale(parseVector3(pElement));
250 }
251}
252
253void DotSceneLoader::processExternals(pugi::xml_node& XMLNode)
254{

Callers

nothing calls this directly

Calls 6

parseVector3Function · 0.70
parseQuaternionFunction · 0.70
logMessageMethod · 0.45
setPositionMethod · 0.45
setOrientationMethod · 0.45
setScaleMethod · 0.45

Tested by

no test coverage detected