Choreonoid  1.8
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
cnoid::ImageWidget Class Reference

#include <ImageWidget.h>

Inheritance diagram for cnoid::ImageWidget:

Public Member Functions

 ImageWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
void setPixmap (const QPixmap &pixmap)
 
void setImage (const Image &image)
 
void setImage (const QImage &image)
 
void setScalingEnabled (bool on)
 
bool isScalingEnabled () const
 
void zoom (double scale)
 
void translate (QPoint pos)
 
bool getTransform (QTransform &transform)
 
double getAngle ()
 
void setTransform (const QTransform &transform)
 
void setAngle (double angle)
 
void rotate (double angle)
 
void reset ()
 
ImagegetImage ()
 
void clear ()
 

Public Attributes

std::mutex mtx
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 
virtual QSize sizeHint () const
 
virtual void resizeEvent (QResizeEvent *event)
 

Constructor & Destructor Documentation

◆ ImageWidget()

ImageWidget::ImageWidget ( QWidget *  parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit

Member Function Documentation

◆ clear()

void ImageWidget::clear ( )

◆ getAngle()

double ImageWidget::getAngle ( )

◆ getImage()

Image & ImageWidget::getImage ( )

◆ getTransform()

bool ImageWidget::getTransform ( QTransform &  transform)

◆ isScalingEnabled()

bool ImageWidget::isScalingEnabled ( ) const

◆ paintEvent()

void ImageWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

◆ reset()

void ImageWidget::reset ( )

◆ resizeEvent()

void ImageWidget::resizeEvent ( QResizeEvent *  event)
protectedvirtual

◆ rotate()

void ImageWidget::rotate ( double  angle)

◆ setAngle()

void ImageWidget::setAngle ( double  angle)

◆ setImage() [1/2]

void ImageWidget::setImage ( const Image image)

◆ setImage() [2/2]

void ImageWidget::setImage ( const QImage &  image)

◆ setPixmap()

void ImageWidget::setPixmap ( const QPixmap &  pixmap)

◆ setScalingEnabled()

void ImageWidget::setScalingEnabled ( bool  on)

◆ setTransform()

void ImageWidget::setTransform ( const QTransform &  transform)

◆ sizeHint()

QSize ImageWidget::sizeHint ( ) const
protectedvirtual

◆ translate()

void ImageWidget::translate ( QPoint  pos)

◆ zoom()

void ImageWidget::zoom ( double  scale)

Member Data Documentation

◆ mtx

std::mutex cnoid::ImageWidget::mtx

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