Ember
Loading...
Searching...
No Matches
IScene Class Referenceabstract

Abstract interface for different scene types in the MainPanel. More...

#include <IScene.h>

Inheritance diagram for IScene:
BehaviorTreeScene

Public Member Functions

virtual ~IScene ()=default
virtual wxPanel * GetPanel ()=0
 Get the main panel widget for this scene.
virtual wxString GetTitle () const =0
 Get the display title for this scene.
virtual wxString GetSceneType () const =0
 Get a unique identifier for this scene type.
virtual void OnActivated ()
 Called when this scene becomes the active tab.
virtual void OnDeactivated ()
 Called when this scene is no longer the active tab.
virtual void Refresh ()
 Called when the scene should refresh its display.
virtual bool HasUnsavedChanges () const
 Check if this scene has unsaved changes.
virtual bool Save ()
 Save the scene (if applicable)

Detailed Description

Abstract interface for different scene types in the MainPanel.

This interface allows MainPanel to manage different types of visualizations (behavior trees, state machines, 2D worlds, etc.) without being tightly coupled to any specific implementation.

Definition at line 25 of file IScene.h.

Constructor & Destructor Documentation

◆ ~IScene()

virtual IScene::~IScene ( )
virtualdefault

Member Function Documentation

◆ GetPanel()

virtual wxPanel * IScene::GetPanel ( )
pure virtual

Get the main panel widget for this scene.

Returns
wxPanel* The panel to be displayed in the MainPanel tab

Implemented in BehaviorTreeScene.

◆ GetSceneType()

virtual wxString IScene::GetSceneType ( ) const
pure virtual

Get a unique identifier for this scene type.

Returns
wxString Identifier like "BehaviorTree", "StateMachine", etc.

Implemented in BehaviorTreeScene.

◆ GetTitle()

virtual wxString IScene::GetTitle ( ) const
pure virtual

Get the display title for this scene.

Returns
wxString The title to show in the tab

Implemented in BehaviorTreeScene.

◆ HasUnsavedChanges()

virtual bool IScene::HasUnsavedChanges ( ) const
inlinevirtual

Check if this scene has unsaved changes.

Returns
bool True if the scene has been modified

Reimplemented in BehaviorTreeScene.

Definition at line 66 of file IScene.h.

◆ OnActivated()

virtual void IScene::OnActivated ( )
inlinevirtual

Called when this scene becomes the active tab.

Reimplemented in BehaviorTreeScene.

Definition at line 50 of file IScene.h.

◆ OnDeactivated()

virtual void IScene::OnDeactivated ( )
inlinevirtual

Called when this scene is no longer the active tab.

Reimplemented in BehaviorTreeScene.

Definition at line 55 of file IScene.h.

◆ Refresh()

virtual void IScene::Refresh ( )
inlinevirtual

Called when the scene should refresh its display.

Reimplemented in BehaviorTreeScene.

Definition at line 60 of file IScene.h.

◆ Save()

virtual bool IScene::Save ( )
inlinevirtual

Save the scene (if applicable)

Returns
bool True if save was successful

Reimplemented in BehaviorTreeScene.

Definition at line 72 of file IScene.h.


The documentation for this class was generated from the following file: