Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
TransformInspectorWidget.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "IInspectorSection.h"
6#include "InspectorRow.h"
7
8class SceneObject;
9class QFormLayout;
10
12 Q_OBJECT
13public:
14 explicit TransformInspectorWidget(QWidget* parent = nullptr);
15
16 void load(SceneObject* object) override;
17 void unload() override;
18 void refresh() override;
19
20private:
21 SceneObject* selectedObject = nullptr;
22
23 QFormLayout* layout;
24 std::vector<InspectorRow> rows;
25
26 void createUiComponents();
27};
Interface for inspector panel sections in the editor UI.
Abstract base class for inspector panel sections.
void refresh() override
Updates UI widgets from the current object's state.
void unload() override
Unloads the current object and clears section state.
void load(SceneObject *object) override
Loads and binds this section to a scene object.