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::PropertyInspectorPrefab Class Reference

#include <PropertyInspectorPrefab.h>

+ Collaboration diagram for Olympe::PropertyInspectorPrefab:

Public Member Functions

 PropertyInspectorPrefab ()
 
 ~PropertyInspectorPrefab ()
 
void Initialize (EntityPrefabGraphDocument *document)
 
void Render ()
 
void Update (float deltaTime)
 
void SelectNode (NodeId nodeId)
 
void DeselectNode ()
 
NodeId GetSelectedNode () const
 
void SetPanelWidth (float width)
 
float GetPanelWidth () const
 
void SetPanelHeight (float height)
 
float GetPanelHeight () const
 
void SetPanelPosition (float x, float y)
 
void GetPanelPosition (float &outX, float &outY) const
 
void SetShowComponentInfo (bool show)
 
bool GetShowComponentInfo () const
 
void SetShowPropertyGrid (bool show)
 
bool GetShowPropertyGrid () const
 
void SetShowAddPropertyButton (bool show)
 
bool GetShowAddPropertyButton () const
 
void SetReadOnly (bool readOnly)
 
bool IsReadOnly () const
 
void AddProperty (const std::string &key, const std::string &value)
 
void RemoveProperty (const std::string &key)
 
void SetProperty (const std::string &key, const std::string &value)
 
std::string GetProperty (const std::string &key) const
 
void AddComponent (const std::string &componentType)
 
void RemoveComponent (const std::string &componentType)
 
void EnableComponent (const std::string &componentType, bool enabled)
 
bool ValidatePropertyValue (const std::string &propertyName, const std::string &value) const
 
bool ValidateAllProperties () const
 

Private Member Functions

void RenderComponentInfo ()
 
void RenderPropertyGrid ()
 
void RenderAddPropertyPanel ()
 
void RenderComponentList ()
 
void OnPropertyChanged (const std::string &key, const std::string &value)
 
void OnComponentAdded (const std::string &componentType)
 
void OnComponentRemoved (const std::string &componentType)
 

Private Attributes

EntityPrefabGraphDocumentm_document = nullptr
 
NodeId m_selectedNodeId = InvalidNodeId
 
float m_panelWidth = 400.0f
 
float m_panelHeight = 600.0f
 
float m_panelX = 0.0f
 
float m_panelY = 0.0f
 
bool m_showComponentInfo = true
 
bool m_showPropertyGrid = true
 
bool m_showAddPropertyButton = true
 
bool m_readOnly = false
 

Detailed Description

Definition at line 10 of file PropertyInspectorPrefab.h.

Constructor & Destructor Documentation

◆ PropertyInspectorPrefab()

Olympe::PropertyInspectorPrefab::PropertyInspectorPrefab ( )

Definition at line 6 of file PropertyInspectorPrefab.cpp.

◆ ~PropertyInspectorPrefab()

Olympe::PropertyInspectorPrefab::~PropertyInspectorPrefab ( )

Definition at line 7 of file PropertyInspectorPrefab.cpp.

Member Function Documentation

◆ AddComponent()

void Olympe::PropertyInspectorPrefab::AddComponent ( const std::string &  componentType)

Definition at line 40 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ AddProperty()

void Olympe::PropertyInspectorPrefab::AddProperty ( const std::string &  key,
const std::string &  value 
)

Definition at line 35 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ DeselectNode()

void Olympe::PropertyInspectorPrefab::DeselectNode ( )

Definition at line 14 of file PropertyInspectorPrefab.cpp.

References Olympe::InvalidNodeId, and m_selectedNodeId.

◆ EnableComponent()

void Olympe::PropertyInspectorPrefab::EnableComponent ( const std::string &  componentType,
bool  enabled 
)

Definition at line 42 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ GetPanelHeight()

float Olympe::PropertyInspectorPrefab::GetPanelHeight ( ) const

Definition at line 20 of file PropertyInspectorPrefab.cpp.

References m_panelHeight.

◆ GetPanelPosition()

void Olympe::PropertyInspectorPrefab::GetPanelPosition ( float outX,
float outY 
) const

Definition at line 23 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static(), m_panelX, and m_panelY.

+ Here is the call graph for this function:

◆ GetPanelWidth()

float Olympe::PropertyInspectorPrefab::GetPanelWidth ( ) const

Definition at line 18 of file PropertyInspectorPrefab.cpp.

References m_panelWidth.

◆ GetProperty()

std::string Olympe::PropertyInspectorPrefab::GetProperty ( const std::string &  key) const

Definition at line 38 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ GetSelectedNode()

NodeId Olympe::PropertyInspectorPrefab::GetSelectedNode ( ) const

Definition at line 15 of file PropertyInspectorPrefab.cpp.

References m_selectedNodeId.

◆ GetShowAddPropertyButton()

bool Olympe::PropertyInspectorPrefab::GetShowAddPropertyButton ( ) const

Definition at line 30 of file PropertyInspectorPrefab.cpp.

References m_showAddPropertyButton.

◆ GetShowComponentInfo()

bool Olympe::PropertyInspectorPrefab::GetShowComponentInfo ( ) const

Definition at line 26 of file PropertyInspectorPrefab.cpp.

References m_showComponentInfo.

◆ GetShowPropertyGrid()

bool Olympe::PropertyInspectorPrefab::GetShowPropertyGrid ( ) const

Definition at line 28 of file PropertyInspectorPrefab.cpp.

References m_showPropertyGrid.

◆ Initialize()

void Olympe::PropertyInspectorPrefab::Initialize ( EntityPrefabGraphDocument document)

Definition at line 9 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static(), and m_document.

+ Here is the call graph for this function:

◆ IsReadOnly()

bool Olympe::PropertyInspectorPrefab::IsReadOnly ( ) const

Definition at line 33 of file PropertyInspectorPrefab.cpp.

References m_readOnly.

◆ OnComponentAdded()

void Olympe::PropertyInspectorPrefab::OnComponentAdded ( const std::string &  componentType)
private

Definition at line 53 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ OnComponentRemoved()

void Olympe::PropertyInspectorPrefab::OnComponentRemoved ( const std::string &  componentType)
private

Definition at line 54 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ OnPropertyChanged()

void Olympe::PropertyInspectorPrefab::OnPropertyChanged ( const std::string &  key,
const std::string &  value 
)
private

Definition at line 52 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ RemoveComponent()

void Olympe::PropertyInspectorPrefab::RemoveComponent ( const std::string &  componentType)

Definition at line 41 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ RemoveProperty()

void Olympe::PropertyInspectorPrefab::RemoveProperty ( const std::string &  key)

Definition at line 36 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ Render()

void Olympe::PropertyInspectorPrefab::Render ( )

Definition at line 10 of file PropertyInspectorPrefab.cpp.

References m_document.

◆ RenderAddPropertyPanel()

void Olympe::PropertyInspectorPrefab::RenderAddPropertyPanel ( )
private

Definition at line 49 of file PropertyInspectorPrefab.cpp.

◆ RenderComponentInfo()

void Olympe::PropertyInspectorPrefab::RenderComponentInfo ( )
private

Definition at line 47 of file PropertyInspectorPrefab.cpp.

◆ RenderComponentList()

void Olympe::PropertyInspectorPrefab::RenderComponentList ( )
private

Definition at line 50 of file PropertyInspectorPrefab.cpp.

◆ RenderPropertyGrid()

void Olympe::PropertyInspectorPrefab::RenderPropertyGrid ( )
private

Definition at line 48 of file PropertyInspectorPrefab.cpp.

◆ SelectNode()

void Olympe::PropertyInspectorPrefab::SelectNode ( NodeId  nodeId)

Definition at line 13 of file PropertyInspectorPrefab.cpp.

References m_selectedNodeId.

◆ SetPanelHeight()

void Olympe::PropertyInspectorPrefab::SetPanelHeight ( float  height)

Definition at line 19 of file PropertyInspectorPrefab.cpp.

References m_panelHeight.

◆ SetPanelPosition()

void Olympe::PropertyInspectorPrefab::SetPanelPosition ( float  x,
float  y 
)

Definition at line 22 of file PropertyInspectorPrefab.cpp.

References m_panelX, and m_panelY.

◆ SetPanelWidth()

void Olympe::PropertyInspectorPrefab::SetPanelWidth ( float  width)

Definition at line 17 of file PropertyInspectorPrefab.cpp.

References m_panelWidth.

◆ SetProperty()

void Olympe::PropertyInspectorPrefab::SetProperty ( const std::string &  key,
const std::string &  value 
)

Definition at line 37 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ SetReadOnly()

void Olympe::PropertyInspectorPrefab::SetReadOnly ( bool  readOnly)

Definition at line 32 of file PropertyInspectorPrefab.cpp.

References m_readOnly.

◆ SetShowAddPropertyButton()

void Olympe::PropertyInspectorPrefab::SetShowAddPropertyButton ( bool  show)

Definition at line 29 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static(), and m_showAddPropertyButton.

+ Here is the call graph for this function:

◆ SetShowComponentInfo()

void Olympe::PropertyInspectorPrefab::SetShowComponentInfo ( bool  show)

Definition at line 25 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static(), and m_showComponentInfo.

+ Here is the call graph for this function:

◆ SetShowPropertyGrid()

void Olympe::PropertyInspectorPrefab::SetShowPropertyGrid ( bool  show)

Definition at line 27 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static(), and m_showPropertyGrid.

+ Here is the call graph for this function:

◆ Update()

void Olympe::PropertyInspectorPrefab::Update ( float  deltaTime)

Definition at line 11 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ ValidateAllProperties()

bool Olympe::PropertyInspectorPrefab::ValidateAllProperties ( ) const

Definition at line 45 of file PropertyInspectorPrefab.cpp.

◆ ValidatePropertyValue()

bool Olympe::PropertyInspectorPrefab::ValidatePropertyValue ( const std::string &  propertyName,
const std::string &  value 
) const

Definition at line 44 of file PropertyInspectorPrefab.cpp.

References GetComponentTypeID_Static().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_document

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

Definition at line 64 of file PropertyInspectorPrefab.h.

Referenced by Initialize(), and Render().

◆ m_panelHeight

float Olympe::PropertyInspectorPrefab::m_panelHeight = 600.0f
private

Definition at line 67 of file PropertyInspectorPrefab.h.

Referenced by GetPanelHeight(), and SetPanelHeight().

◆ m_panelWidth

float Olympe::PropertyInspectorPrefab::m_panelWidth = 400.0f
private

Definition at line 66 of file PropertyInspectorPrefab.h.

Referenced by GetPanelWidth(), and SetPanelWidth().

◆ m_panelX

float Olympe::PropertyInspectorPrefab::m_panelX = 0.0f
private

Definition at line 68 of file PropertyInspectorPrefab.h.

Referenced by GetPanelPosition(), and SetPanelPosition().

◆ m_panelY

float Olympe::PropertyInspectorPrefab::m_panelY = 0.0f
private

Definition at line 69 of file PropertyInspectorPrefab.h.

Referenced by GetPanelPosition(), and SetPanelPosition().

◆ m_readOnly

bool Olympe::PropertyInspectorPrefab::m_readOnly = false
private

Definition at line 73 of file PropertyInspectorPrefab.h.

Referenced by IsReadOnly(), and SetReadOnly().

◆ m_selectedNodeId

NodeId Olympe::PropertyInspectorPrefab::m_selectedNodeId = InvalidNodeId
private

Definition at line 65 of file PropertyInspectorPrefab.h.

Referenced by DeselectNode(), GetSelectedNode(), and SelectNode().

◆ m_showAddPropertyButton

bool Olympe::PropertyInspectorPrefab::m_showAddPropertyButton = true
private

Definition at line 72 of file PropertyInspectorPrefab.h.

Referenced by GetShowAddPropertyButton(), and SetShowAddPropertyButton().

◆ m_showComponentInfo

bool Olympe::PropertyInspectorPrefab::m_showComponentInfo = true
private

Definition at line 70 of file PropertyInspectorPrefab.h.

Referenced by GetShowComponentInfo(), and SetShowComponentInfo().

◆ m_showPropertyGrid

bool Olympe::PropertyInspectorPrefab::m_showPropertyGrid = true
private

Definition at line 71 of file PropertyInspectorPrefab.h.

Referenced by GetShowPropertyGrid(), and SetShowPropertyGrid().


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