34#include <NDEVR/Resource.h>
35#include <NDEVR/Matrix.h>
36#include <NDEVR/Pointer.h>
37#include <NDEVR/Unit.h>
41 class OrientationEditorUI;
46 class QTResourceListener;
49 class QCustomLineEdit;
102 void updatePositionFromUI();
103 void updateOrientationFromDials();
104 void updateOrientationFromUI();
105 void updateScaleFromUI();
106 void updateScaleFieldsX();
107 void updateScaleFieldsY();
108 void updateScaleFieldsZ();
133 Ui::OrientationEditorUI*
ui;
Definition Matrix.hpp:176
A dialog where the user can set a 3D orientation of an object.
Definition OrientationEditor.h:54
void setOffsetLabels(const TranslatedString &x, const TranslatedString &y, const TranslatedString &z)
Ui::OrientationEditorUI * ui
Definition OrientationEditor.h:133
Resource< Vector< 3, fltp08 > > min_position
Definition OrientationEditor.h:122
Resource< Vector< 3, bool > > show_position
Definition OrientationEditor.h:110
Resource< Vector< 3, bool > > show_orientation
Definition OrientationEditor.h:112
Resource< Vector< 3, Angle< fltp08 > > > max_orientation
Definition OrientationEditor.h:119
QBoxLayout * offsetLayout()
void orientationUpdated()
Resource< Vector< 3, Angle< fltp08 > > > min_orientation
Definition OrientationEditor.h:123
Vector< 3, fltp08 > m_aspect_ratio
Definition OrientationEditor.h:129
QCustomDial * getUIDial(uint01 orientation)
Resource< ConstPointer< Unit > > size_unit
Definition OrientationEditor.h:126
OrientationEditor(QWidget *parent=nullptr)
Resource< Vector< 3, fltp08 > > min_scale
Definition OrientationEditor.h:124
Resource< Vector< 3, fltp08 > > max_scale
Definition OrientationEditor.h:120
Resource< Vector< 3, fltp08 > > scale
Definition OrientationEditor.h:116
Vector< 3, Angle< fltp08 > > getUIDialRotation() const
virtual QSize sizeHint() const override
Vector< 3, fltp08 > getUIScale() const
virtual QSize minimumSizeHint() const override
Resource< ConstPointer< Unit > > position_unit
Definition OrientationEditor.h:127
Vector< 3, fltp08 > getUILocation() const
Resource< Vector< 3, fltp08 > > max_position
Definition OrientationEditor.h:118
Matrix< fltp08 > getMatrix()
void setAutoHideDials(bool auto_hide_dials)
Resource< Vector< 3, bool > > show_scale
Definition OrientationEditor.h:111
QCustomLineEdit * getUILineEdit(uint01 orientation)
void resizeEvent(QResizeEvent *event) override
QTResourceListener * m_units_listener
Definition OrientationEditor.h:132
void setSizeMode(SizeMode mode)
SizeMode
Definition OrientationEditor.h:58
void setMatrix(const Matrix< fltp08 > &matrix)
SizeMode m_size_mode
Definition OrientationEditor.h:130
bool m_auto_hide_dials
Definition OrientationEditor.h:131
Resource< Vector< 3, Angle< fltp08 > > > orientation
Definition OrientationEditor.h:115
void setOffsetTitle(const TranslatedString &title)
Resource< Vector< 3, fltp08 > > position
Definition OrientationEditor.h:114
void setRotationTitle(const TranslatedString &roll, const TranslatedString &pitch, const TranslatedString &yaw)
void setScaleTitle(const TranslatedString &title)
Resource< ConstPointer< Unit > > angle_unit
Definition OrientationEditor.h:125
Vector< 3, Angle< fltp08 > > getUIRotation() const
Provides a rounded range control (like a speedometer or potentiometer).
Definition QCustomDial.h:71
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Definition QCustomLineEdit.h:56
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Toggle.h:41
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
Definition FontEditor.h:6