Class RatioLayoutedFrame
Defined in File ratio_layouted_frame.h
Inheritance Relationships
Base Type
public QFrame
Class Documentation
-
class rqt_image_view::RatioLayoutedFrame : public QFrame
RatioLayoutedFrame is a layout containing a single frame with a fixed aspect ratio. The default aspect ratio is 4:3.
Public Functions
-
RatioLayoutedFrame(QWidget *parent, Qt::WindowFlags flags = QFlag{0})
-
virtual ~RatioLayoutedFrame()
-
const QImage &getImage() const
-
QImage getImageCopy() const
-
void setImage(const QImage &image)
-
QRect getAspectRatioCorrectPaintArea()
-
void resizeToFitAspectRatio()
-
void setOuterLayout(QHBoxLayout *outer_layout)
-
void setInnerFrameMinimumSize(const QSize &size)
-
void setInnerFrameMaximumSize(const QSize &size)
-
void setInnerFrameFixedSize(const QSize &size)
Protected Functions
-
void setAspectRatio(unsigned short width, unsigned short height)
-
void paintEvent(QPaintEvent *event)
Protected Slots
-
void onSmoothImageChanged(bool checked)
-
RatioLayoutedFrame(QWidget *parent, Qt::WindowFlags flags = QFlag{0})