ddt 1.2.1
Loading...
Searching...
No Matches
Signals | Protected Attributes | Properties | List of all members
DdtFlipRotateWidget Class Reference

#include <ddtFlipRotateWidget.hpp>

Inheritance diagram for DdtFlipRotateWidget:
DdtWidget

Signals

void RotateImage (int angle)
 
void FlipImage (bool vertical_axis, bool horizontal_axis)
 

Protected Attributes

bool flip_horizontal
 
bool flip_vertical
 
bool rotation_clockwise
 

Properties

bool RotateClockwise
 
 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)
 
void UpdateFlipStatus (const bool vertical_axis, const bool horizontal_axis)
 
void SwapFLipButtons ()
 
void FlipVertical ()
 
void FlipHorizontal ()
 
void Rotate ()
 

Additional Inherited Members

- Public Member Functions inherited from DdtWidget
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.
 

Detailed Description

Class for the Flip Rotate Widget that can be used to flip and rotate the image currently displayed in an Image Widget

Constructor & Destructor Documentation

◆ DdtFlipRotateWidget()

DdtFlipRotateWidget::DdtFlipRotateWidget ( QWidget * parent = nullptr)
explicit

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtFlipRotateWidget()

DdtFlipRotateWidget::~DdtFlipRotateWidget ( )
virtualdefault

Destructor

Member Function Documentation

◆ 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_axiscurrent status of the vertical flip selection
horizontal_axiscurrent 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
anglecan 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
clockwisetrue 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
statebutton state

◆ SetFlipStateVertical()

void DdtFlipRotateWidget::SetFlipStateVertical ( const bool state)

Set the current flip state of the button

Parameters
statebutton state

◆ 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

Member Data Documentation

◆ 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

Property Documentation

◆ RotateClockwise

bool DdtFlipRotateWidget::RotateClockwise
read

The documentation for this class was generated from the following files: