|
Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
|
#include <ThermalInspectorWidget.h>
Public Member Functions | |
| ThermalInspectorWidget (QWidget *parent=nullptr) | |
| void | load (SceneObject *object) override |
| Loads and binds this section to a scene object. | |
| void | unload () override |
| Unloads the current object and clears section state. | |
| void | refresh () override |
| Updates UI widgets from the current object's state. | |
Public Member Functions inherited from IInspectorSection | |
| virtual | ~IInspectorSection ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Additional Inherited Members | |
Protected Member Functions inherited from IInspectorSection | |
| IInspectorSection (QWidget *parent=nullptr) | |
| Protected constructor enforces use as base class only. | |
Definition at line 15 of file ThermalInspectorWidget.h.
|
explicit |
Definition at line 12 of file ThermalInspectorWidget.cpp.
|
overridevirtual |
Loads and binds this section to a scene object.
Called when an object is selected in the scene. Implementations should:
The object pointer is guaranteed to be non-null. For clearing the selection, use unload() instead.
| object | The scene object to inspect. Must not be nullptr. |
Implements IInspectorSection.
Definition at line 217 of file ThermalInspectorWidget.cpp.
|
overridevirtual |
Updates UI widgets from the current object's state.
Called periodically (typically every 100ms via QTimer) to keep the UI synchronized with the object's properties, which may change due to:
Implementations should:
This is a read-only operation - it should not modify the object, only reflect its current state in the UI.
Example:
Implements IInspectorSection.
Definition at line 234 of file ThermalInspectorWidget.cpp.
|
overridevirtual |
Unloads the current object and clears section state.
Called when:
Implementations should:
After unload(), the section should be in a safe state where refresh() can be called without side effects (though it typically does nothing).
Implements IInspectorSection.
Definition at line 229 of file ThermalInspectorWidget.cpp.