Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Olympe::PropertyEditorPanel Class Reference

#include <PropertyEditorPanel.h>

+ Collaboration diagram for Olympe::PropertyEditorPanel:

Public Member Functions

 PropertyEditorPanel ()
 
 ~PropertyEditorPanel ()
 
void Initialize ()
 
void Render (EntityPrefabGraphDocument *document)
 
void SetSelectedNode (NodeId nodeId)
 
NodeId GetSelectedNode () const
 
void ClearSelection ()
 
bool HasSelectedNode () const
 
void ApplyChanges ()
 

Private Member Functions

void RenderNodeInfo ()
 
void RenderNodeProperties ()
 

Private Attributes

NodeId m_selectedNodeId = InvalidNodeId
 
EntityPrefabGraphDocumentm_document = nullptr
 
std::unique_ptr< Olympe::BehaviorTreeFilePickerModalm_behaviorTreeModal
 

Detailed Description

Definition at line 15 of file PropertyEditorPanel.h.

Constructor & Destructor Documentation

◆ PropertyEditorPanel()

Olympe::PropertyEditorPanel::PropertyEditorPanel ( )

Definition at line 8 of file PropertyEditorPanel.cpp.

References m_behaviorTreeModal.

◆ ~PropertyEditorPanel()

Olympe::PropertyEditorPanel::~PropertyEditorPanel ( )

Definition at line 13 of file PropertyEditorPanel.cpp.

Member Function Documentation

◆ ApplyChanges()

void Olympe::PropertyEditorPanel::ApplyChanges ( )

Definition at line 68 of file PropertyEditorPanel.cpp.

References Olympe::InvalidNodeId, m_document, m_selectedNodeId, and Olympe::EntityPrefabGraphDocument::SetDirty().

Referenced by RenderNodeProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearSelection()

void Olympe::PropertyEditorPanel::ClearSelection ( )

Definition at line 58 of file PropertyEditorPanel.cpp.

References Olympe::InvalidNodeId, and m_selectedNodeId.

◆ GetSelectedNode()

NodeId Olympe::PropertyEditorPanel::GetSelectedNode ( ) const

Definition at line 53 of file PropertyEditorPanel.cpp.

References m_selectedNodeId.

◆ HasSelectedNode()

bool Olympe::PropertyEditorPanel::HasSelectedNode ( ) const

Definition at line 63 of file PropertyEditorPanel.cpp.

References Olympe::InvalidNodeId, and m_selectedNodeId.

◆ Initialize()

void Olympe::PropertyEditorPanel::Initialize ( )

Definition at line 15 of file PropertyEditorPanel.cpp.

References SYSTEM_LOG.

◆ Render()

void Olympe::PropertyEditorPanel::Render ( EntityPrefabGraphDocument document)

Definition at line 20 of file PropertyEditorPanel.cpp.

References GetComponentTypeID_Static(), Olympe::InvalidNodeId, m_document, m_selectedNodeId, RenderNodeInfo(), and RenderNodeProperties().

Referenced by Olympe::EntityPrefabRenderer::RenderRightPanelTabs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderNodeInfo()

void Olympe::PropertyEditorPanel::RenderNodeInfo ( )
private

Definition at line 76 of file PropertyEditorPanel.cpp.

References GetComponentTypeID_Static(), Olympe::EntityPrefabGraphDocument::GetNode(), m_document, and m_selectedNodeId.

Referenced by Render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RenderNodeProperties()

void Olympe::PropertyEditorPanel::RenderNodeProperties ( )
private

Definition at line 88 of file PropertyEditorPanel.cpp.

References ApplyChanges(), GetComponentTypeID_Static(), Olympe::EntityPrefabGraphDocument::GetNode(), m_behaviorTreeModal, m_document, m_selectedNodeId, and SYSTEM_LOG.

Referenced by Render().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSelectedNode()

void Olympe::PropertyEditorPanel::SetSelectedNode ( NodeId  nodeId)

Definition at line 47 of file PropertyEditorPanel.cpp.

References m_selectedNodeId.

Referenced by Olympe::EntityPrefabRenderer::RenderRightPanelTabs().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_behaviorTreeModal

std::unique_ptr<Olympe::BehaviorTreeFilePickerModal> Olympe::PropertyEditorPanel::m_behaviorTreeModal
private

Definition at line 36 of file PropertyEditorPanel.h.

Referenced by PropertyEditorPanel(), and RenderNodeProperties().

◆ m_document

EntityPrefabGraphDocument* Olympe::PropertyEditorPanel::m_document = nullptr
private

Definition at line 35 of file PropertyEditorPanel.h.

Referenced by ApplyChanges(), Render(), RenderNodeInfo(), and RenderNodeProperties().

◆ m_selectedNodeId

NodeId Olympe::PropertyEditorPanel::m_selectedNodeId = InvalidNodeId
private

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