Rotation widget has three dials for rotation in X,Y,Z direction.
More...
#include <Rotation.h>
|
void | setX (double) |
| Set value for X angle (roll angle) More...
|
|
void | setY (double) |
| Set value for Y angle (pitch angle) More...
|
|
void | setZ (double) |
| Set value for Z angle (yaw angle) More...
|
|
void | setRotation (EulerAngles const &) |
| Set rotation from euler angles. More...
|
|
|
| Rotation (QWidget *=nullptr) |
| Construct from optional parent widget. More...
|
|
| Rotation (double _x, double _y, double _z, QWidget *=nullptr) |
| Construct from given x,y,z angle values. More...
|
|
| ~Rotation () |
|
double | x () const |
| Return x angle (roll) value as double. More...
|
|
double | y () const |
| Return y angle (pitch) value as double. More...
|
|
double | z () const |
| Return z angle (yaw) value as double. More...
|
|
EulerAngles | angles () const |
| Return x,y,z values as euler angles. More...
|
|
|
template<typename F > |
void | locked (F f) |
| Lock widget and execute given functor. More...
|
|
bool | isLocked () const |
| Return true if widget is locked. More...
|
|
Rotation widget has three dials for rotation in X,Y,Z direction.
omni::ui::Rotation::Rotation |
( |
QWidget * |
_parent = nullptr | ) |
|
Construct from optional parent widget.
void init(double, double, double)
Definition: Rotation.cpp:41
omni::ui::Rotation::Rotation |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z, |
|
|
QWidget * |
_parent = nullptr |
|
) |
| |
Construct from given x,y,z angle values.
void init(double, double, double)
Definition: Rotation.cpp:41
omni::ui::Rotation::~Rotation |
( |
| ) |
|
EulerAngles omni::ui::Rotation::angles |
( |
| ) |
const |
Return x,y,z values as euler angles.
void omni::ui::Rotation::init |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z |
|
) |
| |
|
private |
43 QLayout *_layout =
new QHBoxLayout();
44 auto setupDial = [&](
double _value, QChar _letter) -> Dial *
46 Dial *_d =
new Dial(_value, 0.0, 360.0);
48 _d->setRange(0.0, 360.0);
49 _d->setSingleStep(5.0);
50 _d->setPageStep(45.0);
51 _d->setLetter(_letter);
53 _layout->addWidget(_d);
57 x_ = setupDial(_x,
'X');
60 y_ = setupDial(_y,
'Y');
63 z_ = setupDial(_z,
'Z');
Dial * y_
Definition: Rotation.h:86
Dial * x_
Definition: Rotation.h:85
void updateY()
Definition: Rotation.cpp:106
Dial * z_
Definition: Rotation.h:87
void updateZ()
Definition: Rotation.cpp:113
void updateX()
Definition: Rotation.cpp:99
void omni::ui::Rotation::rotationChanged |
( |
| ) |
|
|
signal |
void omni::ui::Rotation::setRotation |
( |
EulerAngles const & |
_angles | ) |
|
|
slot |
Set rotation from euler angles.
Dial * y_
Definition: Rotation.h:86
void locked(F f)
Lock widget and execute given functor.
Definition: Locked.h:30
void setValue(int)
Set value from integer.
Definition: Dial.cpp:132
Dial * x_
Definition: Rotation.h:85
Dial * z_
Definition: Rotation.h:87
void omni::ui::Rotation::setX |
( |
double |
_x | ) |
|
|
slot |
Set value for X angle (roll angle)
void setValue(int)
Set value from integer.
Definition: Dial.cpp:132
Dial * x_
Definition: Rotation.h:85
void omni::ui::Rotation::setY |
( |
double |
_y | ) |
|
|
slot |
Set value for Y angle (pitch angle)
Dial * y_
Definition: Rotation.h:86
void setValue(int)
Set value from integer.
Definition: Dial.cpp:132
void omni::ui::Rotation::setZ |
( |
double |
_z | ) |
|
|
slot |
Set value for Z angle (yaw angle)
void setValue(int)
Set value from integer.
Definition: Dial.cpp:132
Dial * z_
Definition: Rotation.h:87
void omni::ui::Rotation::updateX |
( |
| ) |
|
|
private |
bool isLocked() const
Return true if widget is locked.
Definition: Locked.h:40
void omni::ui::Rotation::updateY |
( |
| ) |
|
|
private |
bool isLocked() const
Return true if widget is locked.
Definition: Locked.h:40
void omni::ui::Rotation::updateZ |
( |
| ) |
|
|
private |
bool isLocked() const
Return true if widget is locked.
Definition: Locked.h:40
double omni::ui::Rotation::x |
( |
| ) |
const |
Return x angle (roll) value as double.
value_type value() const
Return value.
Definition: RangedValue.h:65
Dial * x_
Definition: Rotation.h:85
void omni::ui::Rotation::xChanged |
( |
| ) |
|
|
signal |
double omni::ui::Rotation::y |
( |
| ) |
const |
Return y angle (pitch) value as double.
value_type value() const
Return value.
Definition: RangedValue.h:65
Dial * y_
Definition: Rotation.h:86
void omni::ui::Rotation::yChanged |
( |
| ) |
|
|
signal |
double omni::ui::Rotation::z |
( |
| ) |
const |
Return z angle (yaw) value as double.
value_type value() const
Return value.
Definition: RangedValue.h:65
Dial * z_
Definition: Rotation.h:87
void omni::ui::Rotation::zChanged |
( |
| ) |
|
|
signal |
Dial* omni::ui::Rotation::x_ |
|
private |
Dial* omni::ui::Rotation::y_ |
|
private |
Dial* omni::ui::Rotation::z_ |
|
private |
The documentation for this class was generated from the following files: