--------------------------------
| 59 | |
| 60 | //-------------------------------- |
| 61 | struct 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 | |
| 89 | class AbsBehaviorTree |
| 90 | { |
nothing calls this directly
no outgoing calls
no test coverage detected