All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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::TriggerEntry
 Object node trigger entry. More...
 
struct  kanzi::Node::MessageSubscription::LessFunctor
 

Namespaces

 kanzi
 

Typedefs

typedef shared_ptr< Trigger > kanzi::TriggerSharedPtr
 
typedef shared_ptr< Trigger
const > 
kanzi::TriggerConstSharedPtr
 
typedef shared_ptr
< ResourceDictionary > 
kanzi::ResourceDictionarySharedPtr
 Resource dictionary shared pointer. More...
 
typedef weak_ptr< Node > kanzi::NodeWeakPtr
 
typedef shared_ptr< Node const > kanzi::NodeConstSharedPtr
 
typedef shared_ptr< void > kanzi::ScriptingContextSharedPtr
 

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< string > kanzi::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...
 
KANZI_API float kanzi::unboundedLayout ()
 Returns a value to initialize an unbounded layout dimension. More...
 
KANZI_API bool kanzi::isUnboundedLayout (float value)
 Checks whether a value is an unbounded layout dimension. More...
 
KANZI_API float kanzi::resetUnboundedToZero (float value)
 
KANZI_API Vector2 kanzi::resetUnboundedToZero (const Vector2 &value)
 
KANZI_API Vector3 kanzi::resetUnboundedToZero (const Vector3 &value)
 

Variables

const void *const KZU_OBJECT_TYPE_RENDERABLE
 Object type identifier for all renderable object types. More...
 

Variable Documentation

const void* const KZU_OBJECT_TYPE_RENDERABLE

Object type identifier for all renderable object types.