![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
InspectorPanel - Adaptive inspector panel Displays properties based on current selection context. More...
#include <InspectorPanel.h>
Collaboration diagram for Olympe::InspectorPanel:Public Member Functions | |
| InspectorPanel () | |
| ~InspectorPanel () | |
| void | Initialize () |
| void | Shutdown () |
| void | Render () |
| void | RenderContent () |
| void | SetSelectedActionNode (const std::string &taskID, const std::string &nodeName, const std::unordered_map< std::string, std::string > ¶meters) |
| Set the currently selected action node for parameter editing. | |
| void | ClearSelectedActionNode () |
| Clear the current action node selection. | |
| ActionParametersPanel * | GetActionPanel () |
| Get the action parameters panel (for direct access if needed). | |
Static Public Member Functions | |
| static void | SetDebugBlackboard (const LocalBlackboard *bb) |
| Register a live LocalBlackboard to display in the inspector. | |
| static InspectorPanel * | GetInstance () |
| Get the active InspectorPanel instance (singleton access). | |
| static void | SetInstance (InspectorPanel *instance) |
| Set the active InspectorPanel instance. | |
Private Member Functions | |
| void | RenderNodeInspector () |
| void | RenderEntityInspector () |
| void | RenderAssetFileInspector () |
| void | RenderActionNodeInspector () |
| void | RenderDebugBlackboard () |
| void | RenderComponentProperties (uint64_t entityId, const std::string &componentType) |
| InspectorContext | DetermineContext () |
Private Attributes | |
| std::unique_ptr< ActionParametersPanel > | m_actionPanel |
| bool | m_hasSelectedAction = false |
Static Private Attributes | |
| static const LocalBlackboard * | s_DebugBlackboard = nullptr |
| static InspectorPanel * | s_Instance = nullptr |
InspectorPanel - Adaptive inspector panel Displays properties based on current selection context.
Runtime debug overlay: Call SetDebugBlackboard() with a pointer to the live LocalBlackboard of the currently executing task graph to make InspectorPanel show its values as an overlay section. Pass nullptr to hide the section. The pointer is not owned and must remain valid for the frame duration.
Definition at line 40 of file InspectorPanel.h.
| Olympe::InspectorPanel::InspectorPanel | ( | ) |
Definition at line 29 of file InspectorPanel.cpp.
| Olympe::InspectorPanel::~InspectorPanel | ( | ) |
Definition at line 35 of file InspectorPanel.cpp.
| void Olympe::InspectorPanel::ClearSelectedActionNode | ( | ) |
Clear the current action node selection.
Definition at line 73 of file InspectorPanel.cpp.
References m_actionPanel, and m_hasSelectedAction.
Referenced by RenderActionNodeInspector().
Here is the caller graph for this function:
|
private |
Definition at line 119 of file InspectorPanel.cpp.
References Olympe::AssetFile, Olympe::BlueprintEditor::Get(), Olympe::None, and Olympe::RuntimeEntity.
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get the action parameters panel (for direct access if needed).
Definition at line 87 of file InspectorPanel.h.
References m_actionPanel.
|
inlinestatic |
Get the active InspectorPanel instance (singleton access).
Returns nullptr if not initialized.
Definition at line 61 of file InspectorPanel.h.
References s_Instance.
Referenced by Olympe::NodeGraphPanel::HandleNodeInteractions().
Here is the caller graph for this function:| void Olympe::InspectorPanel::Initialize | ( | ) |
Definition at line 39 of file InspectorPanel.cpp.
References m_actionPanel, and SetInstance().
Referenced by Olympe::BlueprintEditorGUI::Initialize().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::InspectorPanel::Render | ( | ) |
Definition at line 53 of file InspectorPanel.cpp.
References RenderContent().
Here is the call graph for this function:
|
private |
Definition at line 402 of file InspectorPanel.cpp.
References ClearSelectedActionNode(), GetComponentTypeID_Static(), and m_actionPanel.
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 257 of file InspectorPanel.cpp.
References Olympe::AssetMetadata::componentCount, Olympe::AssetMetadata::components, Olympe::AssetMetadata::description, Olympe::AssetMetadata::errorMessage, Olympe::BlueprintEditor::Get(), Olympe::BlueprintEditor::GetAssetMetadata(), GetComponentTypeID_Static(), Olympe::BlueprintEditor::GetSelectedAssetPath(), Olympe::AssetMetadata::isValid, Olympe::AssetMetadata::name, Olympe::AssetMetadata::nodeCount, Olympe::AssetMetadata::nodes, Olympe::BlueprintEditor::OpenGraphInEditor(), and Olympe::AssetMetadata::type.
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 189 of file InspectorPanel.cpp.
References Olympe::EntityInspectorManager::Get(), Olympe::EntityInspectorManager::GetComponentProperties(), GetComponentTypeID_Static(), and Olympe::EntityInspectorManager::SetComponentProperty().
Referenced by RenderEntityInspector().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::InspectorPanel::RenderContent | ( | ) |
Definition at line 83 of file InspectorPanel.cpp.
References Olympe::AssetFile, DetermineContext(), Olympe::GraphNode, m_actionPanel, m_hasSelectedAction, Olympe::None, RenderActionNodeInspector(), RenderAssetFileInspector(), RenderDebugBlackboard(), RenderEntityInspector(), RenderNodeInspector(), and Olympe::RuntimeEntity.
Referenced by Render(), and Olympe::BlueprintEditorGUI::RenderFixedLayout().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 352 of file InspectorPanel.cpp.
References Olympe::Bool, Olympe::EntityID, Olympe::Float, GetComponentTypeID_Static(), Olympe::LocalBlackboard::GetValue(), Olympe::LocalBlackboard::GetVariableNames(), Olympe::Int, s_DebugBlackboard, Olympe::String, and Olympe::Vector.
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 150 of file InspectorPanel.cpp.
References Olympe::BlueprintEditor::Get(), Olympe::EntityInspectorManager::Get(), GetComponentTypeID_Static(), Olympe::EntityInspectorManager::GetEntityComponents(), Olympe::EntityInspectorManager::GetEntityInfo(), Olympe::BlueprintEditor::GetSelectedEntity(), and RenderComponentProperties().
Referenced by RenderContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 139 of file InspectorPanel.cpp.
Referenced by RenderContent().
Here is the caller graph for this function:
|
static |
Register a live LocalBlackboard to display in the inspector.
| bb | Pointer to the blackboard (non-owning). nullptr removes it. |
Definition at line 24 of file InspectorPanel.cpp.
References GetComponentTypeID_Static(), and s_DebugBlackboard.
Referenced by Olympe::WorldBridge_SetBlackboard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Set the active InspectorPanel instance.
Called internally by Initialize().
Definition at line 67 of file InspectorPanel.h.
References GetComponentTypeID_Static(), and s_Instance.
Referenced by Initialize(), and Shutdown().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::InspectorPanel::SetSelectedActionNode | ( | const std::string & | taskID, |
| const std::string & | nodeName, | ||
| const std::unordered_map< std::string, std::string > & | parameters | ||
| ) |
Set the currently selected action node for parameter editing.
| taskID | The task ID (e.g., "log_message", "patrol_path") |
| nodeName | The display name of the node |
| parameters | Map of parameter name -> value |
Definition at line 60 of file InspectorPanel.cpp.
References GetComponentTypeID_Static(), m_actionPanel, and m_hasSelectedAction.
Here is the call graph for this function:| void Olympe::InspectorPanel::Shutdown | ( | ) |
Definition at line 46 of file InspectorPanel.cpp.
References m_actionPanel, and SetInstance().
Referenced by Olympe::BlueprintEditorGUI::Shutdown().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 100 of file InspectorPanel.h.
Referenced by ClearSelectedActionNode(), GetActionPanel(), Initialize(), RenderActionNodeInspector(), RenderContent(), SetSelectedActionNode(), and Shutdown().
Definition at line 101 of file InspectorPanel.h.
Referenced by ClearSelectedActionNode(), RenderContent(), and SetSelectedActionNode().
|
staticprivate |
Definition at line 99 of file InspectorPanel.h.
Referenced by RenderDebugBlackboard(), and SetDebugBlackboard().
|
staticprivate |
Definition at line 104 of file InspectorPanel.h.
Referenced by GetInstance(), and SetInstance().