MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getPath

Method getPath

libs/scene/Node.cpp:358–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358Path Node::getPath()
359{
360 Path result;
361
362 INodePtr parent = getParent();
363 if (parent != NULL) {
364 // We have a parent, walk up the ancestry
365 std::dynamic_pointer_cast<Node>(parent)->getPathRecursively(result);
366 }
367
368 // Finally, add "self" to the path
369 result.push(shared_from_this());
370
371 return result;
372}
373
374const AABB& Node::worldAABB() const {
375 evaluateBounds();

Callers 2

createPagesMethod · 0.80
PreferencePageMethod · 0.80

Calls 2

getPathRecursivelyMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected