#include <ddtFlipRotateWidget.hpp>
|
virtual | ~DdtWidget ()=default |
|
| DdtWidget (QWidget *parent=nullptr) |
| DdtWidget.
|
|
QWidget * | AddParentWidget (QLayout *child_layout) |
| AddParentWidget This will add the given layout to a QGroupBox Widget to integrate in the parent layout.
|
|
void | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
| connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication.
|
|
void | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
void | connect (const QObject *sender, const char *signal, const char *member) |
|
template<typename Func1 , typename Func2 > |
void | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot) |
| connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda function.
|
|
Class for the Flip Rotate Widget that can be used to flip and rotate the image currently displayed in an Image Widget
◆ DdtFlipRotateWidget()
DdtFlipRotateWidget::DdtFlipRotateWidget |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Constructor
- Parameters
-
parent | Pointer to the parent widget |
◆ ~DdtFlipRotateWidget()
DdtFlipRotateWidget::~DdtFlipRotateWidget |
( |
| ) |
|
|
virtualdefault |
◆ FlipHorizontal
void DdtFlipRotateWidget::FlipHorizontal |
( |
| ) |
|
|
protectedslot |
Slot which is called when the flip horizontal button is pressed
◆ FlipImage
void DdtFlipRotateWidget::FlipImage |
( |
bool | vertical_axis, |
|
|
bool | horizontal_axis ) |
|
signal |
Signal which is send when one of the flip buttons is pressed
- Parameters
-
vertical_axis | current status of the vertical flip selection |
horizontal_axis | current status of the horizontal flip selection |
◆ FlipVertical
void DdtFlipRotateWidget::FlipVertical |
( |
| ) |
|
|
protectedslot |
Slot which is called when the flip vertical button is pressed
◆ get_rotation_clockwise()
bool DdtFlipRotateWidget::get_rotation_clockwise |
( |
| ) |
|
Retrieve the rotation state
- Returns
- true if the image shall be rotated clockwise
◆ Rotate
void DdtFlipRotateWidget::Rotate |
( |
| ) |
|
|
protectedslot |
Slot which is called when the rotate button is pressed
◆ RotateImage
void DdtFlipRotateWidget::RotateImage |
( |
int | angle | ) |
|
|
signal |
Signal which is send when the image should be rotated
- Parameters
-
angle | can be either 90 or -90 degrees depending on the selected rotation direction |
◆ set_rotation_clockwise()
void DdtFlipRotateWidget::set_rotation_clockwise |
( |
const bool | clockwise | ) |
|
Set the state of the rotation function
- Parameters
-
clockwise | true if the rotate button shall rotate the image clockwise |
◆ SetFlipStateHorizontal()
void DdtFlipRotateWidget::SetFlipStateHorizontal |
( |
const bool | state | ) |
|
Set the current flip state of the button
- Parameters
-
◆ SetFlipStateVertical()
void DdtFlipRotateWidget::SetFlipStateVertical |
( |
const bool | state | ) |
|
Set the current flip state of the button
- Parameters
-
◆ SwapFLipButtons
void DdtFlipRotateWidget::SwapFLipButtons |
( |
| ) |
|
|
slot |
Used to update the flip buttons
◆ UpdateFlipStatus
void DdtFlipRotateWidget::UpdateFlipStatus |
( |
const bool | vertical_axis, |
|
|
const bool | horizontal_axis ) |
|
slot |
Used to update the flip status of the widget, when it is set externally
◆ flip_horizontal
bool DdtFlipRotateWidget::flip_horizontal |
|
protected |
State of the horizontal flip
◆ flip_vertical
bool DdtFlipRotateWidget::flip_vertical |
|
protected |
State of the vertical flip
◆ rotation_clockwise
bool DdtFlipRotateWidget::rotation_clockwise |
|
protected |
Direction of the rotation
◆ RotateClockwise
bool DdtFlipRotateWidget::RotateClockwise |
|
read |
The documentation for this class was generated from the following files: