Provides buttons for translation, rotation, and scale.
More...
#include <TransformControl.hh>
|
void | OnMode (const QString &_mode) |
| Callback in Qt thread when mode changes.
|
|
void | OnSnapToGrid () |
| Callback in Qt thread when the snap to grid button is clicked.
|
|
void | OnSnapUpdate (double _x, double _y, double _z, double _roll, double _pitch, double _yaw, double _scaleX, double _scaleY, double _scaleZ) |
| Sends an event to update the internal snapping values for translation, rotation, and scaling.
|
|
double | pitchSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | rollSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | scaleXSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | scaleYSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | scaleZSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | xSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | yawSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | ySnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
double | zSnap () |
| Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
|
|
Provides buttons for translation, rotation, and scale.
Configuration
<service> : Set the service to receive transform mode requests.
◆ TransformControl()
◆ ~TransformControl()
◆ activateRotate
Notify that rotation has been activated.
◆ activateSelect
Notify that selection has been activated.
◆ activateTranslate
void activateTranslate |
( |
| ) |
|
|
signal |
Notify that translation has been activated.
◆ eventFilter()
bool eventFilter |
( |
QObject * |
_obj, |
|
|
QEvent * |
_event |
|
) |
| |
|
overrideprotected |
◆ LoadConfig()
void LoadConfig |
( |
const tinyxml2::XMLElement * |
_pluginElem | ) |
|
|
overridevirtual |
◆ LoadGrid()
Callback to retrieve existing grid. Should only be called within the render thread. If no grid is found, the grid pointer is not updated.
◆ newSnapValues
Notify that new snapping values have been set.
◆ OnMode
void OnMode |
( |
const QString & |
_mode | ) |
|
|
slot |
Callback in Qt thread when mode changes.
- Parameters
-
[in] | _mode | New transform mode |
◆ OnSnapToGrid
Callback in Qt thread when the snap to grid button is clicked.
◆ OnSnapUpdate
void OnSnapUpdate |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z, |
|
|
double |
_roll, |
|
|
double |
_pitch, |
|
|
double |
_yaw, |
|
|
double |
_scaleX, |
|
|
double |
_scaleY, |
|
|
double |
_scaleZ |
|
) |
| |
|
slot |
Sends an event to update the internal snapping values for translation, rotation, and scaling.
- Parameters
-
[in] | _x | The snapping distance along the world's x (red) axis expressed in meters. |
[in] | _y | The snapping distance along the world's y (green) axis expressed in meters. |
[in] | _z | The snapping distance along the world's z (blue) axis expressed in meters. |
[in] | _roll | The snapping distance along the entity's roll (red) axis expressed in degrees. |
[in] | _pitch | The snapping distance along the entity's pitch (green) axis expressed in degrees. |
[in] | _yaw | The snapping distance along the entity's yaw (blue) axis expressed in degrees. |
[in] | _scaleX | The snapping scale along the entity's x (red) axis |
[in] | _scaleY | The snapping scale along the entity's y (green) axis |
[in] | _scaleZ | The snapping scale along the entity's z (blue) axis |
◆ pitchSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set pitch rotational snapping value
◆ rollSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set roll rotational snapping value
◆ scaleXSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set x scaling snapping value
◆ scaleYSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set y scaling snapping value
◆ scaleZSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set z scaling snapping value
◆ SnapToGrid()
Sets the custom snap values to the grid values.
◆ xSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set x translational snapping value
◆ yawSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set yaw rotational snapping value
◆ ySnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set y translational snapping value
◆ zSnap
Callback in Qt thread when the snap to grid button is clicked in order to update custom snap values menu.
- Returns
- The set z translational snapping value
The documentation for this class was generated from the following file: