digiKam
DigikamEditorPerspectiveToolPlugin::PerspectiveWidget Class Reference
+ Inheritance diagram for DigikamEditorPerspectiveToolPlugin::PerspectiveWidget:

Public Slots

void slotChangeGuideColor (const QColor &color)
 
void slotChangeGuideSize (int size)
 
void slotInverseTransformationChanged (bool isEnabled)
 
void slotToggleAntiAliasing (bool a)
 
void slotToggleDrawGrid (bool grid)
 
void slotToggleDrawWhileMoving (bool draw)
 

Signals

void signalPerspectiveChanged (const QRect &newSize, float topLeftAngle, float topRightAngle, float bottomLeftAngle, float bottomRightAngle, bool valid)
 

Public Member Functions

void applyPerspectiveAdjustment ()
 
float getAngleBottomLeft () const
 
float getAngleBottomRight () const
 
float getAngleTopLeft () const
 
float getAngleTopRight () const
 
QPoint getBottomLeftCorner () const
 
QPoint getBottomRightCorner () const
 
QRect getTargetSize () const
 
QPoint getTopLeftCorner () const
 
QPoint getTopRightCorner () const
 
ImageIfaceimageIface () const
 
 PerspectiveWidget (int width, int height, QWidget *const parent=nullptr)
 
void reset ()
 
void setBackgroundColor (const QColor &bg)
 
 ~PerspectiveWidget () override
 

Protected Member Functions

void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *) override
 

Constructor & Destructor Documentation

◆ PerspectiveWidget()

DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::PerspectiveWidget ( int  width,
int  height,
QWidget *const  parent = nullptr 
)

References reset().

◆ ~PerspectiveWidget()

DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::~PerspectiveWidget ( )
override

Member Function Documentation

◆ applyPerspectiveAdjustment()

◆ getAngleBottomLeft()

float DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getAngleBottomLeft ( ) const

◆ getAngleBottomRight()

float DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getAngleBottomRight ( ) const

◆ getAngleTopLeft()

float DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getAngleTopLeft ( ) const

◆ getAngleTopRight()

float DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getAngleTopRight ( ) const

◆ getBottomLeftCorner()

QPoint DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getBottomLeftCorner ( ) const

◆ getBottomRightCorner()

QPoint DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getBottomRightCorner ( ) const

◆ getTargetSize()

QRect DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getTargetSize ( ) const

◆ getTopLeftCorner()

QPoint DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getTopLeftCorner ( ) const

◆ getTopRightCorner()

QPoint DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::getTopRightCorner ( ) const

◆ imageIface()

ImageIface * DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::imageIface ( ) const

◆ mouseMoveEvent()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ paintEvent()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::paintEvent ( QPaintEvent *  )
overrideprotected

◆ reset()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::reset ( )

Referenced by PerspectiveWidget().

◆ resizeEvent()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::resizeEvent ( QResizeEvent *  e)
overrideprotected

◆ setBackgroundColor()

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::setBackgroundColor ( const QColor &  bg)

◆ signalPerspectiveChanged

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::signalPerspectiveChanged ( const QRect &  newSize,
float  topLeftAngle,
float  topRightAngle,
float  bottomLeftAngle,
float  bottomRightAngle,
bool  valid 
)
signal

◆ slotChangeGuideColor

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotChangeGuideColor ( const QColor &  color)
slot

◆ slotChangeGuideSize

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotChangeGuideSize ( int  size)
slot

◆ slotInverseTransformationChanged

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotInverseTransformationChanged ( bool  isEnabled)
slot

◆ slotToggleAntiAliasing

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotToggleAntiAliasing ( bool  a)
slot

◆ slotToggleDrawGrid

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotToggleDrawGrid ( bool  grid)
slot

◆ slotToggleDrawWhileMoving

void DigikamEditorPerspectiveToolPlugin::PerspectiveWidget::slotToggleDrawWhileMoving ( bool  draw)
slot

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