33#include <NDEVR/QTDesignObject.h>
34#include <NDEVR/OrientationEditor.h>
35#include <NDEVR/Button.h>
36#include <NDEVR/FeatureOptions.h>
37#include <NDEVR/ManagedDesignCommand.h>
38#include <NDEVR/Translator.h>
void modelUpdatedSlot()
Slot called when the underlying design object is updated, refreshing the displayed matrix.
void setTarget(const DynamicPointer< QTDesignObject > &object)
Changes the target design object for this orientation editor.
DynamicPointer< QTDesignObject > m_design_object
The design object whose orientation is being edited.
void orientationEditedSlot()
Slot called when the user edits the orientation, applying the new transform to the design object.
DesignObjectOrientation(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs a DesignObjectOrientation editor for the given design object.
A low-level database object that can be used to access general stored properties within the NDEVR Mod...
constexpr decltype(auto) get(t_property_type property) const
Retrieves a property value from the database, cast to the requested type.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
static String supports_offset_command
Feature key for the offset command.
static bool IsFeatureEnabled(const StringView &resource)
Checks whether a feature identified by a string resource is currently enabled.
static DynamicPointer< ManagedDesignCommand > SetProperty(NDPO design_property, const t_type &value)
Creates a command to set a design-level property to the given value.
static DynamicPointer< ManagedDesignCommand > CenterAlign()
Creates a command to center-align the target objects at the origin.
Templated logic for doing matrix multiplication.
Matrix< fltp08 > getMatrix()
Computes a 4x4 transformation matrix from the current position, rotation, and scale.
QBoxLayout * offsetLayout()
Returns the layout containing the position/offset fields.
void setMatrix(const Matrix< fltp08 > &matrix)
Decomposes a transformation matrix and populates the UI fields accordingly.
OrientationEditor(QWidget *parent=nullptr)
Constructs an OrientationEditor widget.
void edited()
Emitted when the user edits any value in the UI.
void updatedSignal(UUID id)
Emitted when this object is updated.
The primary namespace for the NDEVR SDK.
@ transform
A 4x4 transform matrix that maps local coordinates into global space.