node.hpp File Reference

Classes

class  kanzi::Node
 Base class for scene graph nodes in Kanzi. More...
 
struct  kanzi::Node::BindingEntry
 binding entry. More...
 
struct  kanzi::Node::NodeComponentEntry
 Object node component entry. More...
 
struct  kanzi::Node::MessageSubscription::LessFunctor
 

Namespaces

 kanzi
 

Typedefs

typedef shared_ptr< ResourceDictionary > kanzi::ResourceDictionarySharedPtr
 Resource dictionary shared pointer. More...
 
typedef shared_ptr< voidkanzi::ScriptingContextSharedPtr
 
typedef shared_ptr< NodeComponent > kanzi::NodeComponentSharedPtr
 
typedef shared_ptr< NodeComponent const > kanzi::NodeComponentConstSharedPtr
 
typedef shared_ptr< Node const > kanzi::NodeConstSharedPtr
 
typedef weak_ptr< Node > kanzi::NodeWeakPtr
 

Functions

KANZI_API unsigned int kanzi::getTreeHeight (const Node &node)
 Gets tree height from the object node to the parent, if no parents, height = 1, if single parent, and parent's parent = NULL, height = 2 and so on. More...
 
KANZI_API optional< stringkanzi::getRelativePath (const Node &targetNode, const Node &baseNode)
 Returns the relative path from base object node to target object node, KZ_NULL if not found. More...
 
KANZI_API Node * kanzi::findCommonParent (const Node &nodeA, const Node &nodeB)
 Returns first common parent from nodeA and nodeB, KZ_NULL if not found. More...
 
KANZI_API Node * kanzi::getRoot (Node &node)
 Returns the root of the scene graph. More...
 
KANZI_API const Node * kanzi::getRoot (const Node &node)
 Returns the root of the scene graph. More...
 
KANZI_API bool kanzi::isParentOf (const Node &child, const Node &parent)
 
KANZI_API bool kanzi::isAncestorOf (const Node &node, const Node &ancestor)
 Returns whether the parent node is the parent of the child node at any level in the scene graph hierarchy. More...
 
template<typename Type >
shared_ptr< Type > kanzi::findParent (const Node &node)
 Returns nearest parent of specified type. More...