![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ImGui panel for blueprint execution testing and validation. More...
#include <ExecutionTestPanel.h>
Collaboration diagram for Olympe::ExecutionTestPanel:Public Member Functions | |
| ExecutionTestPanel () | |
| ~ExecutionTestPanel () | |
| void | Initialize () |
| void | Shutdown () |
| void | Render () |
| Renders the test execution panel window. | |
| std::vector< ValidationError > | RunExecutionTest (const TaskGraphTemplate &tmpl) |
| Runs execution test on the specified template. | |
| void | DisplayTrace (const GraphExecutionTracer &tracer) |
| Display a pre-computed trace (for BehaviorTree or native executors). | |
| bool | HasResults () const |
| Returns true if there are test results to display. | |
| const GraphExecutionTracer & | GetLastTrace () const |
| Returns the last execution trace. | |
| void | SetVisible (bool v) |
| Show / hide the panel. | |
| bool | IsVisible () const |
| std::string | GetExecutionLog () const |
| Returns the execution log as a formatted string. | |
| std::string | GetTestSummary () const |
| Returns a summary of the last test run. | |
Private Member Functions | |
| void | RenderTestControls () |
| void | RenderTraceLog () |
| void | RenderErrors () |
| void | RenderSummary () |
| void | RenderExecutionEventRow (const ExecutionEvent &event, size_t rowIndex) |
Private Attributes | |
| bool | m_visible = true |
| bool | m_lastTestRun = false |
| GraphExecutionSimulator | m_simulator |
| GraphExecutionTracer | m_lastTracer |
| std::vector< ValidationError > | m_lastTestErrors |
| SimulationOptions | m_testOptions |
| int32_t | m_selectedEventIndex = -1 |
| bool | m_showTraceLog = true |
| bool | m_showErrors = true |
| bool | m_autoScroll = true |
ImGui panel for blueprint execution testing and validation.
Definition at line 33 of file ExecutionTestPanel.h.
| Olympe::ExecutionTestPanel::ExecutionTestPanel | ( | ) |
Definition at line 16 of file ExecutionTestPanel.cpp.
| Olympe::ExecutionTestPanel::~ExecutionTestPanel | ( | ) |
Definition at line 22 of file ExecutionTestPanel.cpp.
| void Olympe::ExecutionTestPanel::DisplayTrace | ( | const GraphExecutionTracer & | tracer | ) |
Display a pre-computed trace (for BehaviorTree or native executors).
| tracer | The execution trace to display |
Used by BehaviorTreeRenderer to pass trace from BehaviorTreeExecutor
Definition at line 104 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), Olympe::GraphExecutionTracer::GetEvents(), m_lastTestErrors, m_lastTestRun, m_lastTracer, and SYSTEM_LOG.
Here is the call graph for this function:| std::string Olympe::ExecutionTestPanel::GetExecutionLog | ( | ) | const |
Returns the execution log as a formatted string.
Definition at line 114 of file ExecutionTestPanel.cpp.
References Olympe::GraphExecutionTracer::GetTraceLog(), and m_lastTracer.
Here is the call graph for this function:
|
inline |
Returns the last execution trace.
Definition at line 69 of file ExecutionTestPanel.h.
References m_lastTracer.
| std::string Olympe::ExecutionTestPanel::GetTestSummary | ( | ) | const |
Returns a summary of the last test run.
Definition at line 119 of file ExecutionTestPanel.cpp.
References Olympe::GraphExecutionTracer::GetExecutionSummary(), and m_lastTracer.
Here is the call graph for this function:
|
inline |
Returns true if there are test results to display.
Definition at line 64 of file ExecutionTestPanel.h.
References m_lastTestErrors, and m_lastTestRun.
| void Olympe::ExecutionTestPanel::Initialize | ( | ) |
Definition at line 26 of file ExecutionTestPanel.cpp.
References m_testOptions, Olympe::SimulationOptions::maxStepsPerFrame, Olympe::SimulationOptions::maxSubGraphDepth, SYSTEM_LOG, Olympe::SimulationOptions::validateBranchPaths, Olympe::SimulationOptions::validateConditions, and Olympe::SimulationOptions::validateDataFlow.
|
inline |
Definition at line 73 of file ExecutionTestPanel.h.
References m_visible.
| void Olympe::ExecutionTestPanel::Render | ( | ) |
Renders the test execution panel window.
Definition at line 42 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), m_visible, RenderErrors(), RenderSummary(), RenderTestControls(), and RenderTraceLog().
Here is the call graph for this function:
|
private |
Definition at line 270 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), m_lastTestErrors, Olympe::BlueprintValidator::SeverityToColor(), and Olympe::BlueprintValidator::SeverityToString().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 187 of file ExecutionTestPanel.cpp.
References Olympe::BranchTaken, Olympe::ConditionEvaluated, Olympe::DataPinResolved, Olympe::ErrorOccurred, Olympe::ExecutionBlocked, Olympe::ExecutionCompleted, GetComponentTypeID_Static(), Olympe::NodeEntered, and Olympe::NodeExited.
Referenced by RenderTraceLog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 329 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), Olympe::GraphExecutionTracer::GetExecutionSummary(), Olympe::GraphExecutionTracer::GetTraceLog(), and m_lastTracer.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 124 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), m_autoScroll, m_lastTestRun, m_testOptions, Olympe::SimulationOptions::maxStepsPerFrame, Olympe::SimulationOptions::maxSubGraphDepth, SYSTEM_LOG, Olympe::SimulationOptions::validateBranchPaths, Olympe::SimulationOptions::validateConditions, and Olympe::SimulationOptions::validateDataFlow.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 150 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), Olympe::GraphExecutionTracer::GetEvents(), m_lastTracer, and RenderExecutionEventRow().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< ValidationError > Olympe::ExecutionTestPanel::RunExecutionTest | ( | const TaskGraphTemplate & | tmpl | ) |
Runs execution test on the specified template.
| tmpl | The TaskGraphTemplate to test. |
Definition at line 87 of file ExecutionTestPanel.cpp.
References GetComponentTypeID_Static(), Olympe::GraphExecutionTracer::GetExecutionSummary(), m_lastTestErrors, m_lastTestRun, m_lastTracer, m_simulator, m_testOptions, Olympe::GraphExecutionTracer::Reset(), Olympe::GraphExecutionSimulator::SimulateExecution(), and SYSTEM_LOG.
Here is the call graph for this function:Show / hide the panel.
Definition at line 72 of file ExecutionTestPanel.h.
References GetComponentTypeID_Static(), and m_visible.
Here is the call graph for this function:| void Olympe::ExecutionTestPanel::Shutdown | ( | ) |
Definition at line 37 of file ExecutionTestPanel.cpp.
References SYSTEM_LOG.
Definition at line 105 of file ExecutionTestPanel.h.
Referenced by RenderTestControls().
|
private |
Definition at line 99 of file ExecutionTestPanel.h.
Referenced by DisplayTrace(), HasResults(), RenderErrors(), and RunExecutionTest().
Definition at line 95 of file ExecutionTestPanel.h.
Referenced by DisplayTrace(), HasResults(), RenderTestControls(), and RunExecutionTest().
|
private |
Definition at line 98 of file ExecutionTestPanel.h.
Referenced by DisplayTrace(), GetExecutionLog(), GetLastTrace(), GetTestSummary(), RenderSummary(), RenderTraceLog(), and RunExecutionTest().
|
private |
Definition at line 102 of file ExecutionTestPanel.h.
Definition at line 104 of file ExecutionTestPanel.h.
Definition at line 103 of file ExecutionTestPanel.h.
|
private |
Definition at line 97 of file ExecutionTestPanel.h.
Referenced by RunExecutionTest().
|
private |
Definition at line 100 of file ExecutionTestPanel.h.
Referenced by Initialize(), RenderTestControls(), and RunExecutionTest().
Definition at line 94 of file ExecutionTestPanel.h.
Referenced by IsVisible(), Render(), and SetVisible().