CycloBranch
cImageWindowWidget Class Reference

Image window widget. More...

#include <cImageWindowWidget.h>

Inheritance diagram for cImageWindowWidget:

Signals

void updateFilter (int xmin, int xmax, int ymin, int ymax)
 The signal is emitted when the selection of points was changed. More...
 
void updateCorrelation (int xmin, int xmax, int ymin, int ymax)
 The signal is emitted when the points area in the optical image was changed. More...
 
void updateHistologyPosition (int x, int y, int width, int height, double angle)
 The signal is emitted when the histology position was changed. More...
 
void updateMicroscopyPosition (bool flipx, bool flipy, double x, double y, double width, double height, double angle)
 The signal is emitted when the microscopy position was changed. More...
 
void updateRuler (double size)
 The signal is emitted when the ruler size was changed. More...
 
void imageWidgetDoubleClicked (int spectrumid)
 The image was double clicked. More...
 

Public Member Functions

 cImageWindowWidget ()
 The constructor.
 
 ~cImageWindowWidget ()
 The destructor.
 
void setOpticalImage (QImage *image)
 Set the optical image. More...
 
void setHistologyImage (QImage *histologyimage)
 Set the histology image. More...
 
void setMicroscopyImage (int layer, QImage *microscopyimage)
 Set the microscopy image. More...
 
QImage getImage ()
 Get the image. More...
 
void setFilterOptions (vector< cCoordinateInfo > &coordinateinfo, bool operatortype, string &columnname1, string &comparatorname1, string &filterstring1, string &columnname2, string &comparatorname2, string &filterstring2, bool casesensitive, bool wholeword)
 Set options which was used to filter the points. More...
 
void setCorrelationValues (int leftshift, int topshift, int maxx, int maxy, int pixelsizex, int pixelsizey)
 Set the values to corelate data with optical image. More...
 
void setDefaultMaxXY (int defaultmaxx, int defaultmaxy, int defaultpixelsizex, int defaultpixelsizey, eVendorType vendor)
 Set the default maximum X and Y coordinates - parsed from the imzML file. More...
 
void setHistologyPosition (int x, int y, int width, int height, double angle)
 Set the position of a histology image. More...
 
void setMicroscopyPosition (int layer, bool flipx, bool flipy, double x, double y, double width, double height, double angle)
 Set the position of a microscopy image. More...
 
void goToMicroscopyPosition (int layer)
 Go to the position of a microscopy image. More...
 
void setSelectedRegion (int xfrom, int xto, int yfrom, int yto)
 Set the current region. More...
 
void redraw ()
 Redraw widget.
 
void clearLayers ()
 Clear the vector of layers.
 
void clearLayer (int layer)
 Clear a layer.
 
void setKeepAspectRatio (bool state)
 Set the flag to keep aspect ratio. More...
 
void setNavigationLayer (int layer, int navigation)
 Set navigation layer. More...
 

Protected Member Functions

void wheelEvent (QWheelEvent *event)
 Handle the mouse wheel event. More...
 
void mousePressEvent (QMouseEvent *event)
 Handle the mouse press event. More...
 
void mouseMoveEvent (QMouseEvent *event)
 Handle the mouse move event. More...
 
void mouseReleaseEvent (QMouseEvent *event)
 Handle the mouse release event. More...
 
void mouseDoubleClickEvent (QMouseEvent *event)
 Handle the mouse double click event. More...
 
void resizeEvent (QResizeEvent *event)
 Handle the resize event. More...
 

Detailed Description

Image window widget.

Member Function Documentation

◆ getImage()

QImage cImageWindowWidget::getImage ( )

Get the image.

Return values
QImageimage

◆ goToMicroscopyPosition()

void cImageWindowWidget::goToMicroscopyPosition ( int  layer)

Go to the position of a microscopy image.

Parameters
layera microscopy layer

◆ imageWidgetDoubleClicked

void cImageWindowWidget::imageWidgetDoubleClicked ( int  spectrumid)
signal

The image was double clicked.

Parameters
spectrumidid of a spectrum

◆ mouseDoubleClickEvent()

void cImageWindowWidget::mouseDoubleClickEvent ( QMouseEvent *  event)
protected

Handle the mouse double click event.

Parameters
eventpointer to QMouseEvent

◆ mouseMoveEvent()

void cImageWindowWidget::mouseMoveEvent ( QMouseEvent *  event)
protected

Handle the mouse move event.

Parameters
eventpointer to QMouseEvent

◆ mousePressEvent()

void cImageWindowWidget::mousePressEvent ( QMouseEvent *  event)
protected

Handle the mouse press event.

Parameters
eventpointer to QMouseEvent

◆ mouseReleaseEvent()

void cImageWindowWidget::mouseReleaseEvent ( QMouseEvent *  event)
protected

Handle the mouse release event.

Parameters
eventpointer to QMouseEvent

◆ resizeEvent()

void cImageWindowWidget::resizeEvent ( QResizeEvent *  event)
protected

Handle the resize event.

Parameters
eventpointer to QResizeEvent

◆ setCorrelationValues()

void cImageWindowWidget::setCorrelationValues ( int  leftshift,
int  topshift,
int  maxx,
int  maxy,
int  pixelsizex,
int  pixelsizey 
)

Set the values to corelate data with optical image.

Parameters
leftshiftleft shift
topshifttop shift
maxxmaximum X coordinate
maxymaximum Y coordinate
pixelsizexpixel size x
pixelsizeypixel size y

◆ setDefaultMaxXY()

void cImageWindowWidget::setDefaultMaxXY ( int  defaultmaxx,
int  defaultmaxy,
int  defaultpixelsizex,
int  defaultpixelsizey,
eVendorType  vendor 
)

Set the default maximum X and Y coordinates - parsed from the imzML file.

Parameters
defaultmaxxmaximum X coordinate
defaultmaxymaximum Y coordinate
defaultpixelsizexpixel size x
defaultpixelsizeypixel size y
vendorvendor type

◆ setFilterOptions()

void cImageWindowWidget::setFilterOptions ( vector< cCoordinateInfo > &  coordinateinfo,
bool  operatortype,
string &  columnname1,
string &  comparatorname1,
string &  filterstring1,
string &  columnname2,
string &  comparatorname2,
string &  filterstring2,
bool  casesensitive,
bool  wholeword 
)

Set options which was used to filter the points.

Parameters
coordinateinfoa vector of coordinates
operatortypethe type of operator (0 = or; 1 = and)
columnname1name of column which was compared
comparatorname1name of used comparator
filterstring1a string used to filter the points
columnname2name of column which was compared
comparatorname2name of used comparator
filterstring2a string used to filter the points
casesensitivetrue if the string was used as a casesensitive, false otherwise
wholewordtrue if whole words only are compared, false otherwise

◆ setHistologyImage()

void cImageWindowWidget::setHistologyImage ( QImage *  histologyimage)

Set the histology image.

Parameters
histologyimagea histology image

◆ setHistologyPosition()

void cImageWindowWidget::setHistologyPosition ( int  x,
int  y,
int  width,
int  height,
double  angle 
)

Set the position of a histology image.

Parameters
xx coordinate
yy coordinate
widthwidth
heightheight
angleangle

◆ setKeepAspectRatio()

void cImageWindowWidget::setKeepAspectRatio ( bool  state)

Set the flag to keep aspect ratio.

Parameters
stateif true, the aspect ratio is kept

◆ setMicroscopyImage()

void cImageWindowWidget::setMicroscopyImage ( int  layer,
QImage *  microscopyimage 
)

Set the microscopy image.

Parameters
layera microscopy layer
microscopyimagea microscopy image

◆ setMicroscopyPosition()

void cImageWindowWidget::setMicroscopyPosition ( int  layer,
bool  flipx,
bool  flipy,
double  x,
double  y,
double  width,
double  height,
double  angle 
)

Set the position of a microscopy image.

Parameters
layera microscopy layer
flipxflip horizontally
flipyflip vertically
xx offset [um]
yy offset [um]
widthwidth [um]
heightheight [um]
angleangle

◆ setNavigationLayer()

void cImageWindowWidget::setNavigationLayer ( int  layer,
int  navigation 
)

Set navigation layer.

Parameters
layercurrent layer
navigationnavigation layer

◆ setOpticalImage()

void cImageWindowWidget::setOpticalImage ( QImage *  image)

Set the optical image.

Parameters
imagean optical image

◆ setSelectedRegion()

void cImageWindowWidget::setSelectedRegion ( int  xfrom,
int  xto,
int  yfrom,
int  yto 
)

Set the current region.

Parameters
xfromminimum x coordinate
xtomaximum x coordinate
yfromminimum y coordinate
ytomaximum y coordinate

◆ updateCorrelation

void cImageWindowWidget::updateCorrelation ( int  xmin,
int  xmax,
int  ymin,
int  ymax 
)
signal

The signal is emitted when the points area in the optical image was changed.

Parameters
xminminimum x coordinate
xmaxmaximum x coordinate
yminminimum y coordinate
ymaxmaximum y coordinate

◆ updateFilter

void cImageWindowWidget::updateFilter ( int  xmin,
int  xmax,
int  ymin,
int  ymax 
)
signal

The signal is emitted when the selection of points was changed.

Parameters
xminminimum x coordinate
xmaxmaximum x coordinate
yminminimum y coordinate
ymaxmaximum y coordinate

◆ updateHistologyPosition

void cImageWindowWidget::updateHistologyPosition ( int  x,
int  y,
int  width,
int  height,
double  angle 
)
signal

The signal is emitted when the histology position was changed.

Parameters
xx coordinate
yy coordinate
widthwidth
heightheight
angleangle

◆ updateMicroscopyPosition

void cImageWindowWidget::updateMicroscopyPosition ( bool  flipx,
bool  flipy,
double  x,
double  y,
double  width,
double  height,
double  angle 
)
signal

The signal is emitted when the microscopy position was changed.

Parameters
flipxflip horizontally
flipyflip vertically
xx coordinate [um]
yy coordinate [um]
widthwidth [um]
heightheight [um]
angleangle

◆ updateRuler

void cImageWindowWidget::updateRuler ( double  size)
signal

The signal is emitted when the ruler size was changed.

Parameters
sizeruler size

◆ wheelEvent()

void cImageWindowWidget::wheelEvent ( QWheelEvent *  event)
protected

Handle the mouse wheel event.

Parameters
eventpointer to QWheelEvent

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