NDEVR
API Documentation
ModelOffsetCommandWidget.h
1#pragma once
2#include <NDEVR/DesignObjectWidgetInterface.h>
3#include <QWidget>
4namespace Ui
5{
6 class ModelOffsetCommandUI;
7}
8namespace NDEVR
9{
13 class ModelOffsetCommandWidget : public QWidget, public DesignObjectWidgetInterface
14 {
15 Q_OBJECT
16 public:
21 ModelOffsetCommandWidget(QWidget* parent = nullptr);
26 signals:
31 protected slots:
36 protected:
41 void removeTarget(const DynamicPointer<QTDesignObject>& object) override;
46 void addTarget(const DynamicPointer<QTDesignObject>& object) override;
51 void onTargetUpdated(UUID) override;
55 void init();
56 protected:
57 Ui::ModelOffsetCommandUI* ui;
58 };
59}
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Ui::ModelOffsetCommandUI * ui
The auto-generated UI form for offset controls.
void removeTarget(const DynamicPointer< QTDesignObject > &object) override
Removes a design object from the offset targets.
void updateUIFromManager()
Updates the UI fields from the current model manager state.
void onTargetUpdated(UUID) override
Called when a target object is updated, refreshing the offset values.
void finishedSignal()
Emitted when the offset operation is finished.
void addTarget(const DynamicPointer< QTDesignObject > &object) override
Adds a design object as an offset target.
void setToDefaults()
Resets the offset values to their defaults.
ModelOffsetCommandWidget(QWidget *parent=nullptr)
Constructs the model offset command widget.
void init()
Initializes the UI layout and signal connections.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:61
The primary namespace for the NDEVR SDK.