Signals | Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes
bwi_rqt_plugins::RatioLayoutedFrame Class Reference

#include <ratio_layouted_frame.h>

List of all members.

Signals

void delayed_update ()

Public Member Functions

QRect getAspectRatioCorrectPaintArea ()
const QImage & getImage () const
 RatioLayoutedFrame (QWidget *parent, Qt::WFlags flags=0)
void resizeToFitAspectRatio ()
void setImage (const QImage &image)
void setInnerFrameFixedSize (const QSize &size)
void setInnerFrameMaximumSize (const QSize &size)
void setInnerFrameMinimumSize (const QSize &size)
virtual ~RatioLayoutedFrame ()

Protected Member Functions

void paintEvent (QPaintEvent *event)
void setAspectRatio (unsigned short width, unsigned short height)

Static Private Member Functions

static int greatestCommonDivisor (int a, int b)

Private Attributes

QSize aspect_ratio_
QImage qimage_
QMutex qimage_mutex_

Detailed Description

RatioLayoutedFrame is a layout containing a single frame with a fixed aspect ratio. The default aspect ratio is 4:3.

Definition at line 51 of file ratio_layouted_frame.h.


Constructor & Destructor Documentation

bwi_rqt_plugins::RatioLayoutedFrame::RatioLayoutedFrame ( QWidget *  parent,
Qt::WFlags  flags = 0 
)

Definition at line 39 of file ratio_layouted_frame.cpp.

Definition at line 46 of file ratio_layouted_frame.cpp.


Member Function Documentation

Definition at line 50 of file ratio_layouted_frame.cpp.

int bwi_rqt_plugins::RatioLayoutedFrame::greatestCommonDivisor ( int  a,
int  b 
) [static, private]

Definition at line 144 of file ratio_layouted_frame.cpp.

void bwi_rqt_plugins::RatioLayoutedFrame::paintEvent ( QPaintEvent *  event) [protected]

Definition at line 122 of file ratio_layouted_frame.cpp.

Definition at line 64 of file ratio_layouted_frame.cpp.

void bwi_rqt_plugins::RatioLayoutedFrame::setAspectRatio ( unsigned short  width,
unsigned short  height 
) [protected]

Definition at line 113 of file ratio_layouted_frame.cpp.

void bwi_rqt_plugins::RatioLayoutedFrame::setImage ( const QImage &  image)

Definition at line 55 of file ratio_layouted_frame.cpp.

Definition at line 107 of file ratio_layouted_frame.cpp.

Definition at line 98 of file ratio_layouted_frame.cpp.

Definition at line 89 of file ratio_layouted_frame.cpp.


Member Data Documentation

Definition at line 91 of file ratio_layouted_frame.h.

Definition at line 93 of file ratio_layouted_frame.h.

Definition at line 94 of file ratio_layouted_frame.h.


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


bwi_rqt_plugins
Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:50