Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
ForcesInspectorWidget.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
7class SceneObject;
8namespace Physics { class PhysicsBody; }
9
11 Q_OBJECT
12public:
13 explicit ForcesInspectorWidget(QWidget* parent = nullptr);
14
15 void load(SceneObject* object) override;
16 void unload() override;
17 void refresh() override;
18
19private:
20 SceneObject* selectedObject = nullptr;
21 QFormLayout* layout;
22 std::vector<InspectorRow> rows;
23
24 Physics::PhysicsBody* getBody() const;
25
26 void clearRows();
27};
Interface for inspector panel sections in the editor UI.
void load(SceneObject *object) override
Loads and binds this section to a scene object.
void refresh() override
Updates UI widgets from the current object's state.
void unload() override
Unloads the current object and clears section state.
Abstract base class for inspector panel sections.