Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
IInspectorSection.h
Go to the documentation of this file.
1
6#pragma once
7#include <QWidget>
8
9class SceneObject;
10
43class IInspectorSection : public QWidget {
44 Q_OBJECT
45public:
49 virtual ~IInspectorSection() = default;
50
72 virtual void load(SceneObject* object) = 0;
73
93 virtual void unload() = 0;
94
132 virtual void refresh() = 0;
133
134protected:
141 explicit IInspectorSection(QWidget* parent = nullptr) : QWidget(parent) {}
142};
Abstract base class for inspector panel sections.
virtual void refresh()=0
Updates UI widgets from the current object's state.
virtual ~IInspectorSection()=default
Virtual destructor for proper cleanup of derived classes.
virtual void unload()=0
Unloads the current object and clears section state.
IInspectorSection(QWidget *parent=nullptr)
Protected constructor enforces use as base class only.
virtual void load(SceneObject *object)=0
Loads and binds this section to a scene object.