Transform_ConnectorI.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../Defs.hpp"
4 #include "../Animation/AnimNode.hpp"
6 
7 namespace iv
8 {
9 
14 template< class TParent, class TChild >
16 {
17 public:
20 
21 //----------------------------- Transform_ConnectorI -------------------------------------------------------------------
24 
25  //------------------------- AnimConnector ------------------------------------------------------
26  virtual void anim_eachChild( std::function< void( AnimNodeI * ) > const & ) override;
27  virtual void anim_childDisconnect( AnimNodeI * node ) override;
28 
29  virtual void anim_eachParent( std::function< void( AnimNodeI * ) > const & ) override;
30  virtual void anim_parentDisconnect( AnimNodeI * node ) override;
31 
32  //------------------------- structure ------------------------------------------------------
35  void SetParent( AnimNode< TParent > * node );
36 
39  void SetChild( AnimNode< TChild > * node );
40 
41 protected:
42  bool treeChanged_Get();
43  void treeChanged_Clear();
44 
45 protected:
48 
49 private:
50  bool _treeChanged;
51 };
52 
53 }
54 
55 #include "Transform_ConnectorI.inl"