A node with two children that linearly blends the results of each child node together.
More...
#include <LinearBlendNode.h>
|
enum class | ChildNodes { First = 0
, Second = 1
} |
|
|
| LinearBlendNode (string const &name, NodeBase const *parent, AnimationBlendTree &animationBlendTree) |
|
| LinearBlendNode (string const &name, NodeBase const *parent, AnimationBlendTree &animationBlendTree, std::unique_ptr< DataBlock > data) |
|
ValueResult< gef::SkeletonPose > | Update (float const deltaTime, vector< gef::SkeletonPose > &&childPoseResults) override |
|
| RegularNode (string const &name, NodeBase const *parent, AnimationBlendTree &animationBlendTree, unique_ptr< DataBlockBase > dataBlock) |
|
virtual ValueResult< gef::SkeletonPose > | Update (float deltaTime, vector< gef::SkeletonPose > &&childPoseResults)=0 |
|
template<typename T > |
ValueResult< std::reference_wrapper< T > > | CreateAndSetChild (NodeBase &parent, int index, string const &name) |
|
virtual PureResult | SetChild (int const index, std::unique_ptr< NodeBase > &&node) |
|
template<typename T > |
ValueResult< std::reference_wrapper< T > > | GetChild (int index) |
|
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) |
|
A node with two children that linearly blends the results of each child node together.
◆ CreateOrReplaceFirstChild()
template<typename T >
ValueResult< std::reference_wrapper< T > > AnimationSystem::Mesh::BlendTree::LinearBlendNode::CreateOrReplaceFirstChild |
( |
string const & |
name | ) |
|
|
inline |
Creates a new node of type T in the tree with the name provided, this will become the first of two children.
- Template Parameters
-
T | The type of node being created, T must inherit from BaseNode or it's derivatives |
◆ CreateOrReplaceSecondChild()
template<typename T >
ValueResult< std::reference_wrapper< T > > AnimationSystem::Mesh::BlendTree::LinearBlendNode::CreateOrReplaceSecondChild |
( |
string const & |
name | ) |
|
|
inline |
Creates a new node of type T in the tree with the name provided, this will become the second of two children.
- Template Parameters
-
T | The type of node being created, T must inherit from BaseNode or it's derivatives |
◆ InvertAnimatorBlend()
virtual void AnimationSystem::Mesh::BlendTree::LinearBlendNode::InvertAnimatorBlend |
( |
| ) |
|
|
inlinevirtual |
◆ Update()
ValueResult< gef::SkeletonPose > AnimationSystem::Mesh::BlendTree::LinearBlendNode::Update |
( |
float const |
deltaTime, |
|
|
vector< gef::SkeletonPose > && |
childPoseResults |
|
) |
| |
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file:
- C:/Users/Jay Bretherton/Documents/GitHub/418/Projects/animated_mesh/build/vs2017/AnimationSystemMesh/BlendTree/LinearBlendNode.h