85 void SetTitle(
const wxString &title);
NodeSelectionCallback m_nodeSelectionCallback
EmberCore::ITreeStructure * GetAbstractedTree() const
Get the abstracted tree structure.
EmberCore::TreeVisualization * GetTreeVisualization() const
Get the tree visualization component.
BehaviorTreeScene(wxWindow *parent, const wxString &title="Behavior Tree")
Construct a new BehaviorTreeScene.
std::shared_ptr< EmberCore::ITreeStructure > m_treeAdapter
wxString GetTitle() const override
Get the display title for this scene.
wxPanel * GetPanel() override
Get the main panel widget for this scene.
void OnDeactivated() override
Called when this scene is no longer the active tab.
void CreateSampleBehaviorTree()
Create a sample behavior tree for testing/demo purposes.
std::shared_ptr< EmberCore::Node > m_behaviorTreeRoot
BehaviorTreeScene(const BehaviorTreeScene &)=delete
void Refresh() override
Called when the scene should refresh its display.
virtual ~BehaviorTreeScene()
EmberCore::Node * GetBehaviorTree() const
Get the behavior tree root node (legacy interface)
bool HasUnsavedChanges() const override
Check if this scene has unsaved changes.
void SetNodeSelectionCallback(NodeSelectionCallback callback)
Set callback for node selection events.
void OnActivated() override
Called when this scene becomes the active tab.
void SetTitle(const wxString &title)
Set the title of this scene.
BehaviorTreeScene & operator=(const BehaviorTreeScene &)=delete
void SetCanvasBackgroundColor(const wxColour &color)
Set the canvas background color.
EmberCore::TreeVisualization * m_treeVisualization
void SetBehaviorTree(std::shared_ptr< EmberCore::Node > root)
Set the behavior tree for this scene using legacy Node interface.
wxString GetSceneType() const override
Get a unique identifier for this scene type.
bool Save() override
Save the scene (if applicable)
std::function< void(EmberCore::ITreeNode *)> NodeSelectionCallback
Abstract interface for tree nodes that can be visualized.
Abstract interface for tree structures that can be visualized.
Represents a node in a behavior tree structure.
Tree visualization panel that renders behavior trees in a grid-based layout.
Abstract interface for different scene types in the MainPanel.