Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
AnimationSystem::Mesh::BlendTree::Tree Class Reference

Isolates the tree interface. More...

#include <Tree.h>

Collaboration diagram for AnimationSystem::Mesh::BlendTree::Tree:

Public Member Functions

 Tree (AnimationBlendTree &blendTree)
 
RootNodeGetRoot () const
 
template<typename T >
ValueResult< std::reference_wrapper< T > > GetNode (string const &name)
 Get a node of type T with the name provided from the tree. Returns ERROR if such a node does not exist. More...
 
template<typename T >
ValueResult< std::reference_wrapper< T > > ModifyData (string const &owningNodeName)
 Gets the DataBlock of a node allowing the data to be queried / modified. More...
 

Friends

class AnimationSystem::Mesh::AnimationBlendTree
 

Detailed Description

Isolates the tree interface.

Remarks
Is not an abstract interface to AnimationBlendTree to allow template functions

Member Function Documentation

◆ GetNode()

template<typename T >
ValueResult< std::reference_wrapper< T > > AnimationSystem::Mesh::BlendTree::Tree::GetNode ( string const &  name)
inline

Get a node of type T with the name provided from the tree. Returns ERROR if such a node does not exist.

Template Parameters
TT must inherit from BaseNode or it's derivatives

◆ GetRoot()

RootNode & AnimationSystem::Mesh::BlendTree::Tree::GetRoot ( ) const
inline
Returns
The root node of the tree, can be used to create child nodes within the tree

◆ ModifyData()

template<typename T >
ValueResult< std::reference_wrapper< T > > AnimationSystem::Mesh::BlendTree::Tree::ModifyData ( string const &  owningNodeName)
inline

Gets the DataBlock of a node allowing the data to be queried / modified.

Template Parameters
TThe type of the DataBlock. Note this must inherit from DataBlockBase
Parameters
owningNodeNameThe name of the node that contains the data block

The documentation for this class was generated from the following file: