#include <ratio_layouted_frame.h>
Signals | |
void | rightMouseButtonClicked () |
void | rightMouseButtonClicked () |
void | selectionFinished (QPoint p1, QPoint p2) |
void | selectionFinished (QPoint p1, QPoint p2) |
void | selectionInProgress (QPoint p1, QPoint p2) |
void | selectionInProgress (QPoint p1, QPoint p2) |
Public Member Functions | |
QRect | getAspectRatioCorrectPaintArea () |
QRect | getAspectRatioCorrectPaintArea () |
void | mouseMoveEvent (QMouseEvent *me) |
void | mouseMoveEvent (QMouseEvent *me) |
void | mousePressEvent (QMouseEvent *me) |
void | mousePressEvent (QMouseEvent *me) |
void | mouseReleaseEvent (QMouseEvent *me) |
void | mouseReleaseEvent (QMouseEvent *me) |
RatioLayoutedFrame (QWidget *parent, Qt::WFlags flags=0) | |
RatioLayoutedFrame (QWidget *parent, Qt::WFlags flags=0) | |
void | resizeToFitAspectRatio () |
void | resizeToFitAspectRatio () |
void | setAspectRatio (unsigned short width, unsigned short height) |
void | setAspectRatio (unsigned short width, unsigned short height) |
void | setInnerFrameFixedSize (const QSize &size) |
void | setInnerFrameFixedSize (const QSize &size) |
void | setInnerFrameMaximumSize (const QSize &size) |
void | setInnerFrameMaximumSize (const QSize &size) |
void | setInnerFrameMinimumSize (const QSize &size) |
void | setInnerFrameMinimumSize (const QSize &size) |
virtual | ~RatioLayoutedFrame () |
virtual | ~RatioLayoutedFrame () |
Static Private Member Functions | |
static int | greatestCommonDivisor (int a, int b) |
static int | greatestCommonDivisor (int a, int b) |
Private Attributes | |
QSize | aspect_ratio_ |
bool | mouse_pressed_ |
QPoint | select_end_ |
QPoint | select_start_ |
RatioLayoutedFrame is a layout containing a single frame with a fixed aspect ratio. The default aspect ratio is 4:3.
Definition at line 50 of file rqt_image_cropping/ratio_layouted_frame.h.
rqt_image_enhancer::RatioLayoutedFrame::RatioLayoutedFrame | ( | QWidget * | parent, |
Qt::WFlags | flags = 0 |
||
) |
Definition at line 39 of file rqt_image_cropping/ratio_layouted_frame.cpp.
Definition at line 45 of file rqt_image_cropping/ratio_layouted_frame.cpp.
rqt_image_enhancer::RatioLayoutedFrame::RatioLayoutedFrame | ( | QWidget * | parent, |
Qt::WFlags | flags = 0 |
||
) |
virtual rqt_image_enhancer::RatioLayoutedFrame::~RatioLayoutedFrame | ( | ) | [virtual] |
int rqt_image_enhancer::RatioLayoutedFrame::greatestCommonDivisor | ( | int | a, |
int | b | ||
) | [static, private] |
Definition at line 107 of file rqt_image_cropping/ratio_layouted_frame.cpp.
static int rqt_image_enhancer::RatioLayoutedFrame::greatestCommonDivisor | ( | int | a, |
int | b | ||
) | [static, private] |
void rqt_image_enhancer::RatioLayoutedFrame::mouseMoveEvent | ( | QMouseEvent * | me | ) |
void rqt_image_enhancer::RatioLayoutedFrame::mouseMoveEvent | ( | QMouseEvent * | me | ) |
Definition at line 125 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::mousePressEvent | ( | QMouseEvent * | me | ) |
void rqt_image_enhancer::RatioLayoutedFrame::mousePressEvent | ( | QMouseEvent * | me | ) |
Definition at line 116 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::mouseReleaseEvent | ( | QMouseEvent * | me | ) |
Definition at line 134 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::mouseReleaseEvent | ( | QMouseEvent * | me | ) |
Definition at line 49 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::rightMouseButtonClicked | ( | ) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::rightMouseButtonClicked | ( | ) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::selectionFinished | ( | QPoint | p1, |
QPoint | p2 | ||
) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::selectionFinished | ( | QPoint | p1, |
QPoint | p2 | ||
) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::selectionInProgress | ( | QPoint | p1, |
QPoint | p2 | ||
) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::selectionInProgress | ( | QPoint | p1, |
QPoint | p2 | ||
) | [signal] |
void rqt_image_enhancer::RatioLayoutedFrame::setAspectRatio | ( | unsigned short | width, |
unsigned short | height | ||
) |
void rqt_image_enhancer::RatioLayoutedFrame::setAspectRatio | ( | unsigned short | width, |
unsigned short | height | ||
) |
Definition at line 98 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameFixedSize | ( | const QSize & | size | ) |
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameFixedSize | ( | const QSize & | size | ) |
Definition at line 92 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameMaximumSize | ( | const QSize & | size | ) |
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameMaximumSize | ( | const QSize & | size | ) |
Definition at line 83 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameMinimumSize | ( | const QSize & | size | ) |
Definition at line 74 of file rqt_image_cropping/ratio_layouted_frame.cpp.
void rqt_image_enhancer::RatioLayoutedFrame::setInnerFrameMinimumSize | ( | const QSize & | size | ) |
QSize rqt_image_enhancer::RatioLayoutedFrame::aspect_ratio_ [private] |
Definition at line 84 of file rqt_image_cropping/ratio_layouted_frame.h.
bool rqt_image_enhancer::RatioLayoutedFrame::mouse_pressed_ [private] |
Definition at line 86 of file rqt_image_cropping/ratio_layouted_frame.h.
QPoint rqt_image_enhancer::RatioLayoutedFrame::select_end_ [private] |
Definition at line 88 of file rqt_image_cropping/ratio_layouted_frame.h.
QPoint rqt_image_enhancer::RatioLayoutedFrame::select_start_ [private] |
Definition at line 88 of file rqt_image_cropping/ratio_layouted_frame.h.