ddt  0.1
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
DdtFlipRotateWidget Class Reference

#include <ddtFlipRotateWidget.hpp>

Inheritance diagram for DdtFlipRotateWidget:
DdtWidget

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
 

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 horizontal flip

Parameters
flip_horizontaltrue if the image in the image widget should be flipped horizontally Set the state of the rotation function
rotation_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: