|
ddt
0.1
|
#include <ddtFlipRotateWidget.hpp>
Public Slots | |
| void | UpdateFlipStatus (const bool vertical_axis, const bool horizontal_axis) |
| void | SwapFLipButtons () |
Signals | |
| void | RotateImage (int angle) |
| void | FlipImage (bool vertical_axis, bool horizontal_axis) |
Public Member Functions | |
| DdtFlipRotateWidget (QWidget *parent=nullptr) | |
| virtual | ~DdtFlipRotateWidget () |
| void | set_rotation_clockwise (const bool clockwise) |
| bool | get_rotation_clockwise () |
| void | SetFlipStateHorizontal (const bool state) |
| void | SetFlipStateVertical (const bool state) |
Public Member Functions inherited from DdtWidget | |
| DdtWidget (QWidget *parent=nullptr) | |
| DdtWidget. More... | |
| virtual | ~DdtWidget ()=default |
| QLayout * | addParentLayout (QLayout *childLayout) |
| addParentLayout This will add the given layout to the layout of the parent inside the group box. More... | |
Protected Slots | |
| void | FlipVertical () |
| void | FlipHorizontal () |
| void | Rotate () |
Protected Attributes | |
| bool | flip_horizontal |
| bool | flip_vertical |
| bool | rotation_clockwise |
Properties | |
| bool | RotateClockwise |
Class for the Flip Rotate Widget that can be used to flip and rotate the image currently displayed in an Image Widget
|
explicit |
Constructor
| parent | Pointer to the parent widget |
|
virtualdefault |
Destructor
|
protectedslot |
Slot which is called when the flip horizontal button is pressed
|
signal |
Signal which is send when one of the flip buttons is pressed
| vertical_axis | current status of the vertical flip selection |
| horizontal_axis | current status of the horizontal flip selection |
|
protectedslot |
Slot which is called when the flip vertical button is pressed
| bool DdtFlipRotateWidget::get_rotation_clockwise | ( | ) |
Retrieve the rotation state
|
protectedslot |
Slot which is called when the rotate button is pressed
|
signal |
Signal which is send when the image should be rotated
| angle | can be either 90 or -90 degrees depending on the selected rotation direction |
| void DdtFlipRotateWidget::set_rotation_clockwise | ( | const bool | clockwise | ) |
Set the state of the horizontal flip
| flip_horizontal | true if the image in the image widget should be flipped horizontally Set the state of the rotation function |
| rotation_clockwise | true if the rotate button shall rotate the image clockwise |
| void DdtFlipRotateWidget::SetFlipStateHorizontal | ( | const bool | state | ) |
Set the current flip state of the button
| state | button state |
| void DdtFlipRotateWidget::SetFlipStateVertical | ( | const bool | state | ) |
Set the current flip state of the button
| state | button state |
|
slot |
Used to update the flip buttons
|
slot |
Used to update the flip status of the widget, when it is set externally
|
protected |
State of the horizontal flip
|
protected |
State of the vertical flip
|
protected |
Direction of the rotation
|
read |