Workspace 6.21.5
Signals | Public Member Functions | Properties | List of all members
ImageWidget Class Reference

#include <DataAnalysis/Image/imagewidget.h>

Inherits QFrame.

Signals

void imageChanged (const QImage &image)
 

Public Member Functions

 ImageWidget (QWidget *parent=nullptr)
 
bool getCheckZoomFitAll () const
 
const QImagegetImage () const
 
bool getKeepLast () const
 
void setCheckZoomFitAll (bool val)
 
void setImage (const QImage &image)
 
void setKeepLast (bool b)
 
void updateView ()
 

Properties

bool collapseInIOTree
 
QImage image
 
bool keepLast
 
bool zoomToFitAll
 

Constructor & Destructor Documentation

◆ ImageWidget()

ImageWidget ( QWidget *  parent = nullptr)

The default behavior of an ImageWidget is to keep the last image if a null image is passed to setImage().

Member Function Documentation

◆ getCheckZoomFitAll()

bool getCheckZoomFitAll ( ) const

◆ getImage()

const QImage & getImage ( ) const
Returns
The currently set image.
See also
setImage()

◆ getKeepLast()

bool getKeepLast ( ) const
Returns
True if the previous image will be kept if setImage() is called with a null image.
See also
setKeepLast()

◆ imageChanged

void imageChanged ( const QImage image)
signal

◆ setCheckZoomFitAll()

void setCheckZoomFitAll ( bool  val)

◆ setImage()

void setImage ( const QImage image)
Parameters
imageThe new image the widget should show.

When this function is called, it also updates the widget's size hint and calls updateGeometry(). It then emits the imageChanged() signal before returning.

See also
getImage()

◆ setKeepLast()

void setKeepLast ( bool  b)
Parameters
bIf true, then the previous image will be kept if setImage() is called with a null image.
See also
getKeepLast()

◆ updateView()

void updateView ( )

Property Documentation

◆ collapseInIOTree

bool collapseInIOTree
read

◆ image

QImage image
readwrite

◆ keepLast

bool keepLast
readwrite

◆ zoomToFitAll

bool zoomToFitAll
readwrite