|
CycloBranch
|
Image window widget. More...
#include <cImageWindowWidget.h>
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... | |
Image window widget.
| QImage cImageWindowWidget::getImage | ( | ) |
Get the image.
| QImage | image |
| void cImageWindowWidget::goToMicroscopyPosition | ( | int | layer | ) |
Go to the position of a microscopy image.
| layer | a microscopy layer |
|
signal |
The image was double clicked.
| spectrumid | id of a spectrum |
|
protected |
Handle the mouse double click event.
| event | pointer to QMouseEvent |
|
protected |
Handle the mouse move event.
| event | pointer to QMouseEvent |
|
protected |
Handle the mouse press event.
| event | pointer to QMouseEvent |
|
protected |
Handle the mouse release event.
| event | pointer to QMouseEvent |
|
protected |
Handle the resize event.
| event | pointer to QResizeEvent |
| void cImageWindowWidget::setCorrelationValues | ( | int | leftshift, |
| int | topshift, | ||
| int | maxx, | ||
| int | maxy, | ||
| int | pixelsizex, | ||
| int | pixelsizey | ||
| ) |
Set the values to corelate data with optical image.
| leftshift | left shift |
| topshift | top shift |
| maxx | maximum X coordinate |
| maxy | maximum Y coordinate |
| pixelsizex | pixel size x |
| pixelsizey | pixel size y |
| 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.
| defaultmaxx | maximum X coordinate |
| defaultmaxy | maximum Y coordinate |
| defaultpixelsizex | pixel size x |
| defaultpixelsizey | pixel size y |
| vendor | vendor type |
| 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.
| coordinateinfo | a vector of coordinates |
| operatortype | the type of operator (0 = or; 1 = and) |
| columnname1 | name of column which was compared |
| comparatorname1 | name of used comparator |
| filterstring1 | a string used to filter the points |
| columnname2 | name of column which was compared |
| comparatorname2 | name of used comparator |
| filterstring2 | a string used to filter the points |
| casesensitive | true if the string was used as a casesensitive, false otherwise |
| wholeword | true if whole words only are compared, false otherwise |
| void cImageWindowWidget::setHistologyImage | ( | QImage * | histologyimage | ) |
Set the histology image.
| histologyimage | a histology image |
| void cImageWindowWidget::setHistologyPosition | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height, | ||
| double | angle | ||
| ) |
Set the position of a histology image.
| x | x coordinate |
| y | y coordinate |
| width | width |
| height | height |
| angle | angle |
| void cImageWindowWidget::setKeepAspectRatio | ( | bool | state | ) |
Set the flag to keep aspect ratio.
| state | if true, the aspect ratio is kept |
| void cImageWindowWidget::setMicroscopyImage | ( | int | layer, |
| QImage * | microscopyimage | ||
| ) |
Set the microscopy image.
| layer | a microscopy layer |
| microscopyimage | a microscopy image |
| 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.
| layer | a microscopy layer |
| flipx | flip horizontally |
| flipy | flip vertically |
| x | x offset [um] |
| y | y offset [um] |
| width | width [um] |
| height | height [um] |
| angle | angle |
| void cImageWindowWidget::setNavigationLayer | ( | int | layer, |
| int | navigation | ||
| ) |
Set navigation layer.
| layer | current layer |
| navigation | navigation layer |
| void cImageWindowWidget::setOpticalImage | ( | QImage * | image | ) |
Set the optical image.
| image | an optical image |
| void cImageWindowWidget::setSelectedRegion | ( | int | xfrom, |
| int | xto, | ||
| int | yfrom, | ||
| int | yto | ||
| ) |
Set the current region.
| xfrom | minimum x coordinate |
| xto | maximum x coordinate |
| yfrom | minimum y coordinate |
| yto | maximum y coordinate |
|
signal |
The signal is emitted when the points area in the optical image was changed.
| xmin | minimum x coordinate |
| xmax | maximum x coordinate |
| ymin | minimum y coordinate |
| ymax | maximum y coordinate |
|
signal |
The signal is emitted when the selection of points was changed.
| xmin | minimum x coordinate |
| xmax | maximum x coordinate |
| ymin | minimum y coordinate |
| ymax | maximum y coordinate |
|
signal |
The signal is emitted when the histology position was changed.
| x | x coordinate |
| y | y coordinate |
| width | width |
| height | height |
| angle | angle |
|
signal |
The signal is emitted when the microscopy position was changed.
| flipx | flip horizontally |
| flipy | flip vertically |
| x | x coordinate [um] |
| y | y coordinate [um] |
| width | width [um] |
| height | height [um] |
| angle | angle |
|
signal |
The signal is emitted when the ruler size was changed.
| size | ruler size |
|
protected |
Handle the mouse wheel event.
| event | pointer to QWheelEvent |