MCPcopy Create free account
hub / github.com/BehaviorTree/Groot / AbstractTreeNode

Class AbstractTreeNode

bt_editor/bt_editor_base.h:61–87  ·  view source on GitHub ↗

--------------------------------

Source from the content-addressed store, hash-verified

59
60//--------------------------------
61struct AbstractTreeNode
62{
63 AbstractTreeNode() :
64 index(-1),
65 status(NodeStatus::IDLE),
66 graphic_node(nullptr)
67 {
68 model.type = NodeType::UNDEFINED;
69 }
70
71 NodeModel model;
72 PortsMapping ports_mapping;
73 int index;
74 QString instance_name;
75 BT::NodeStatus status;
76 QSizeF size;
77 QPointF pos; // top left corner
78 std::vector<int> children_index;
79 QtNodes::Node* graphic_node;
80
81 bool operator ==(const AbstractTreeNode& other) const;
82
83 bool operator !=(const AbstractTreeNode& other) const
84 {
85 return !(*this == other);
86 }
87};
88
89class AbsBehaviorTree
90{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected