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
8
class
SceneObject
;
9
class
QFormLayout;
10
11
class
TransformInspectorWidget
:
public
IInspectorSection
{
12
Q_OBJECT
13
public
:
14
explicit
TransformInspectorWidget
(QWidget* parent =
nullptr
);
15
16
void
load
(
SceneObject
*
object
)
override
;
17
void
unload
()
override
;
18
void
refresh
()
override
;
19
20
private
:
21
SceneObject
* selectedObject =
nullptr
;
22
23
QFormLayout* layout;
24
std::vector<InspectorRow> rows;
25
26
void
createUiComponents();
27
};
IInspectorSection.h
Interface for inspector panel sections in the editor UI.
InspectorRow.h
IInspectorSection
Abstract base class for inspector panel sections.
Definition
IInspectorSection.h:43
SceneObject
Definition
SceneObject.h:22
TransformInspectorWidget
Definition
TransformInspectorWidget.h:11
TransformInspectorWidget::refresh
void refresh() override
Updates UI widgets from the current object's state.
Definition
TransformInspectorWidget.cpp:28
TransformInspectorWidget::unload
void unload() override
Unloads the current object and clears section state.
Definition
TransformInspectorWidget.cpp:23
TransformInspectorWidget::load
void load(SceneObject *object) override
Loads and binds this section to a scene object.
Definition
TransformInspectorWidget.cpp:14
src
ui
inspector
TransformInspectorWidget.h
Generated by
1.9.8