MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / handleNode

Method handleNode

dae23ds_lib3ds/src/DAE23dsSceneGraphHandler.cpp:51–68  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

49
50 //------------------------------
51 bool SceneGraphHandler::handleNode(const COLLADAFW::Node* nodeToWriter)
52 {
53 const NodeInfo& parentNodeInfo = mNodeInfoStack.top();
54 const COLLADABU::Math::Matrix4& parentWorldMatrix = parentNodeInfo.worldTransformation;
55 COLLADABU::Math::Matrix4 worldMatrix = parentWorldMatrix * nodeToWriter->getTransformationMatrix();
56 NodeInfo nodeInfo( worldMatrix );
57 mNodeInfoStack.push(nodeInfo);
58
59 handleInstanceGeometries( nodeToWriter, worldMatrix );
60 handleInstanceLights( nodeToWriter, worldMatrix );
61
62 handleNodes(nodeToWriter->getChildNodes());
63
64 handleInstanceNodes( nodeToWriter->getInstanceNodes() );
65
66 mNodeInfoStack.pop();
67 return true;
68 }
69
70 //------------------------------
71 void SceneGraphHandler::handleInstanceGeometries( const COLLADAFW::Node* node, const COLLADABU::Math::Matrix4& matrix )

Callers

nothing calls this directly

Calls 3

topMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected