MCPcopy Create free account
hub / github.com/SpartanJ/eepp / findSceneNode

Method findSceneNode

src/eepp/scene/node.cpp:1349–1357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347}
1348
1349SceneNode* Node::findSceneNode() {
1350 Node* node = mParentNode;
1351 while ( node != NULL ) {
1352 if ( node->isSceneNode() )
1353 return static_cast<SceneNode*>( node );
1354 node = node->getParent();
1355 }
1356 return isSceneNode() ? reinterpret_cast<SceneNode*>( this ) : NULL;
1357}
1358
1359EventDispatcher* Node::getEventDispatcher() const {
1360 return NULL != mSceneNode ? mSceneNode->getEventDispatcher() : NULL;

Callers 1

childAddAtMethod · 0.80

Calls 2

isSceneNodeMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected