Anim 0.1
|
Base class for nodes in the blend tree. More...
#include <NodeBase.h>
Classes | |
struct | DataBlockBase |
Base class for data blocks, allowing nodes to hold state that can be safely accessed from outside the tree. More... | |
Public Member Functions | |
NodeBase (NodeBase const &other)=delete | |
NodeBase & | operator= (NodeBase const &other)=delete |
template<typename T > | |
ValueResult< std::reference_wrapper< T > > | ModifyData () const |
Gets the DataBlock of this node allowing the data to be queried / modified. More... | |
Public Attributes | |
std::string const | Name |
Protected Member Functions | |
template<typename T > | |
T & | GetData () const |
Gets the DataBlock of this node. | |
PureResult | RegisterSelf () |
NodeBase (string name, NodeBase const *parent, AnimationBlendTree &blendTree, unique_ptr< DataBlockBase > dataBlock) | |
Static Protected Member Functions | |
static AnimatedMesh const & | GetMeshObject (AnimationBlendTree const &blendTree) |
Protected Attributes | |
NodeBase const *const | parent_ {} |
AnimationBlendTree & | blend_tree_ |
AnimatedMesh const & | mesh_object_ref_ |
Friends | |
class | RegularNode |
Base class for nodes in the blend tree.
|
inline |
Gets the DataBlock of this node allowing the data to be queried / modified.
T | The type of the DataBlock. Note this must inherit from DataBlockBase |