Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
InspectorWidget.h
Go to the documentation of this file.
1#pragma once
2#include <QWidget>
3#include <QTimer>
4#include <QVBoxLayout>
5
6class QTabWidget;
7class SceneManager;
8class SceneObject;
9
15
16class InspectorWidget : public QWidget {
17 Q_OBJECT
18public:
19 explicit InspectorWidget(SceneManager* sceneMgr, QWidget* parent = nullptr);
20
21 void loadObject(SceneObject* obj);
22 void unloadObject();
23
24private slots:
25 void refresh();
26
27private:
28 SceneManager* sceneManager;
29 SceneObject* currentObject = nullptr;
30
31 QVBoxLayout* mainLayout;
32 QTabWidget* inspectorTabs;
33 int objectTabIndex = -1;
34 int thermalTabIndex = -1;
35 int sceneTabIndex = -1;
36 QTimer refreshTimer;
37
38 TransformInspectorWidget* transformWidget;
39 PhysicsInspectorWidget* physicsWidget;
40 ThermalInspectorWidget* thermalWidget;
41 ForcesInspectorWidget* forcesWidget;
42 GlobalsInspectorWidget* globalsWidget;
43};
void loadObject(SceneObject *obj)