Physics Simulation & Visualization Tool
0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
GlobalsInspectorWidget.h
Go to the documentation of this file.
1
#pragma once
2
#include <vector>
3
#include <QFormLayout>
4
#include "
IInspectorSection.h
"
5
#include "
InspectorRow.h
"
6
7
class
SceneManager
;
8
class
ScalarWidget
;
9
10
class
GlobalsInspectorWidget
:
public
IInspectorSection
{
11
Q_OBJECT
12
public
:
13
explicit
GlobalsInspectorWidget
(
SceneManager
* mgr, QWidget* parent =
nullptr
);
14
15
void
load
(
SceneObject
*
object
)
override
;
16
void
unload
()
override
;
17
void
refresh
()
override
;
18
19
// Specific accessors
20
ScalarWidget
*
getTimeConstraintWidget
()
const
{
return
timeConstraint; }
21
22
signals:
23
void
solveRequested
();
24
25
public
slots:
26
void
runSolver
();
27
28
private
:
29
SceneManager
* sceneManager;
30
QFormLayout* layout;
31
std::vector<InspectorRow> rows;
32
33
ScalarWidget
* timeConstraint =
nullptr
;
34
35
void
createUiComponents();
36
void
createStopConditionUi();
37
};
IInspectorSection.h
Interface for inspector panel sections in the editor UI.
InspectorRow.h
GlobalsInspectorWidget
Definition
GlobalsInspectorWidget.h:10
GlobalsInspectorWidget::load
void load(SceneObject *object) override
Loads and binds this section to a scene object.
Definition
GlobalsInspectorWidget.cpp:255
GlobalsInspectorWidget::getTimeConstraintWidget
ScalarWidget * getTimeConstraintWidget() const
Definition
GlobalsInspectorWidget.h:20
GlobalsInspectorWidget::refresh
void refresh() override
Updates UI widgets from the current object's state.
Definition
GlobalsInspectorWidget.cpp:264
GlobalsInspectorWidget::runSolver
void runSolver()
Definition
GlobalsInspectorWidget.cpp:269
GlobalsInspectorWidget::solveRequested
void solveRequested()
GlobalsInspectorWidget::unload
void unload() override
Unloads the current object and clears section state.
Definition
GlobalsInspectorWidget.cpp:260
IInspectorSection
Abstract base class for inspector panel sections.
Definition
IInspectorSection.h:43
ScalarWidget
Definition
ScalarWidget.h:6
SceneManager
Definition
SceneManager.h:32
SceneObject
Definition
SceneObject.h:22
src
ui
inspector
GlobalsInspectorWidget.h
Generated by
1.9.8