![]() |
Ember
|
Abstract interface for tree nodes that can be visualized. More...
#include <ITreeNode.h>
Public Types | |
| enum class | NodeType { Unknown , Action , Control , Condition , Decorator , BehaviorTree } |
| Node types for visualization categorization. More... | |
| enum class | NodeStatus { Idle , Running , Success , Failure } |
| Node status for runtime visualization. More... | |
| enum class | VisualState { Normal , Selected , Hovered , Highlighted } |
| Visual state for UI rendering. More... | |
Public Member Functions | |
| virtual | ~ITreeNode ()=default |
| virtual const String & | GetName () const =0 |
| virtual NodeType | GetType () const =0 |
| virtual NodeStatus | GetStatus () const =0 |
| virtual size_t | GetId () const =0 |
| virtual size_t | GetChildCount () const =0 |
| virtual ITreeNode * | GetChild (size_t index) const =0 |
| virtual ITreeNode * | GetParent () const =0 |
| virtual bool | HasChildren () const |
| virtual const Point & | GetPosition () const =0 |
| virtual void | SetPosition (const Point &position)=0 |
| virtual VisualState | GetVisualState () const =0 |
| virtual void | SetVisualState (VisualState state)=0 |
| virtual bool | AreChildrenVisible () const =0 |
| virtual void | SetChildrenVisible (bool visible)=0 |
| virtual void | ToggleChildrenVisibility () |
| virtual int | GetChildrenWidth () const =0 |
| virtual void | SetChildrenWidth (int width)=0 |
| virtual int | CalculateSubtreeWidth (int node_width, int horizontal_spacing) const =0 |
| virtual size_t | GetDepth () const =0 |
| virtual size_t | GetSubtreeNodeCount () const =0 |
| virtual bool | IsSubTreeReference () const |
| Check if this node is a SubTree reference. | |
| virtual bool | IsUnimplementedReference () const |
| Check if this node references an unimplemented tree. | |
| virtual String | GetSubTreeReference () const |
| Get the ID of the referenced SubTree (if this is a SubTree node) | |
| virtual String | GetTypeString () const |
| virtual String | GetStatusString () const |
| virtual void | Accept (std::function< void(ITreeNode *)> visitor)=0 |
| virtual void | Accept (std::function< void(const ITreeNode *)> visitor) const =0 |
Abstract interface for tree nodes that can be visualized.
This interface abstracts away the specific implementation details of behavior tree nodes, allowing the visualization system to work with any tree structure that implements these basic properties and operations.
Definition at line 31 of file ITreeNode.h.
|
strong |
Node status for runtime visualization.
| Enumerator | |
|---|---|
| Idle | |
| Running | |
| Success | |
| Failure | |
Definition at line 48 of file ITreeNode.h.
|
strong |
Node types for visualization categorization.
| Enumerator | |
|---|---|
| Unknown | |
| Action | |
| Control | |
| Condition | |
| Decorator | |
| BehaviorTree | |
Definition at line 36 of file ITreeNode.h.
|
strong |
Visual state for UI rendering.
| Enumerator | |
|---|---|
| Normal | |
| Selected | |
| Hovered | |
| Highlighted | |
Definition at line 58 of file ITreeNode.h.
|
virtualdefault |
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
inlinevirtual |
Definition at line 132 of file ITreeNode.h.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
inlinevirtual |
Get the ID of the referenced SubTree (if this is a SubTree node)
Reimplemented in EmberCore::NodeAdapter.
Definition at line 112 of file ITreeNode.h.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
inlinevirtual |
Definition at line 115 of file ITreeNode.h.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
inlinevirtual |
Definition at line 73 of file ITreeNode.h.
|
inlinevirtual |
Check if this node is a SubTree reference.
Reimplemented in EmberCore::NodeAdapter.
Definition at line 100 of file ITreeNode.h.
|
inlinevirtual |
Check if this node references an unimplemented tree.
Reimplemented in EmberCore::NodeAdapter.
Definition at line 106 of file ITreeNode.h.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
pure virtual |
Implemented in EmberCore::NodeAdapter.
|
inlinevirtual |
Definition at line 84 of file ITreeNode.h.