7#ifndef _CIMAGEWINDOWWIDGET_H
8#define _CIMAGEWINDOWWIDGET_H
11#include <QGraphicsView>
14#include <unordered_set>
28 cursoractivity_none = 0,
30 cursoractivity_resize_left,
31 cursoractivity_resize_right,
32 cursoractivity_resize_top,
33 cursoractivity_resize_bottom,
34 cursoractivity_resize_top_left,
35 cursoractivity_resize_top_right,
36 cursoractivity_resize_bottom_left,
37 cursoractivity_resize_bottom_right
265 void setFilterOptions(vector<cCoordinateInfo>& coordinateinfo,
bool operatortype,
string& columnname1,
string& comparatorname1,
string& filterstring1,
string& columnname2,
string& comparatorname2,
string& filterstring2,
bool casesensitive,
bool wholeword);
277 void setCorrelationValues(
int leftshift,
int topshift,
int maxx,
int maxy,
int pixelsizex,
int pixelsizey);
313 void setMicroscopyPosition(
int layer,
bool flipx,
bool flipy,
double x,
double y,
double width,
double height,
double angle);
475 QGraphicsScene* scene;
477 vector<cCoordinateInfo> coordinateinfo;
480 string comparatorname1;
481 string filterstring1;
483 string comparatorname2;
484 string filterstring2;
489 bool absoluteintensity;
491 vector<layerInfo> layersvector;
508 int defaultpixelsizex;
509 int defaultpixelsizey;
526 bool keepaspectratio;
528 qreal microscopynavigationcenterx;
529 qreal microscopynavigationcentery;
531 QGraphicsRectItem* selectionrect;
532 QGraphicsSimpleTextItem* selectionsimpletextitem;
534 QGraphicsRectItem* currentrect;
539 void drawMicroscopyImage(
int layer, QRectF& rect_scene,
int currentwidth,
int currentheight);
541 void updateSelectionGroup();
543 void getRectanglePoints(qreal& rx1, qreal& ry1, qreal& rx2, qreal& ry2);
545 double prepareTransformation(QRectF rect, QTransform& transform,
bool testedfliphorizontally,
bool testedflipvertically,
double testedangle,
bool flipaxes);
547 void fixRectCenter(qreal& rx1, qreal& ry1, qreal& rx2, qreal& ry2,
bool testedfliphorizontally,
bool testedflipvertically,
double testedangle);
549 double recalculateRulerValue(qreal currentscale);
564 void setRulerValue(
double value);
567 void scrollbarValueChanged(
int value);
570 void absoluteIntensityStateChanged(
bool state);
573 void colorScaleStateChanged(
bool state);
576 void changeLayer(
int layerid,
bool checked,
int alpha,
int zvalue,
bool redraw);
579 void changeActiveLayer(
int layerid);
582 void flipHistologyHorizontallyStateChanged(
bool state);
585 void flipHistologyVerticallyStateChanged(
bool state);
588 void showSelectionStateChanged(
bool state);
Paramaters of a layer.
Definition: cImageWindowWidget.h:44
int alpha
Opacity of the layer.
Definition: cImageWindowWidget.h:54
double height
Height.
Definition: cImageWindowWidget.h:102
qreal lastx
Last X position.
Definition: cImageWindowWidget.h:114
layerInfo()
The constructor.
Definition: cImageWindowWidget.h:138
double angle
Rotation angle [degrees].
Definition: cImageWindowWidget.h:108
QPixmap * pixmap
Pixmap.
Definition: cImageWindowWidget.h:132
int zvalue
Z-value of the layer.
Definition: cImageWindowWidget.h:60
~layerInfo()
The destructor.
Definition: cImageWindowWidget.h:194
bool flipvertically
True if the pixmap is flipped vertically.
Definition: cImageWindowWidget.h:78
double x
X position.
Definition: cImageWindowWidget.h:84
bool fliphorizontally
True if the pixmap is flipped horizontally.
Definition: cImageWindowWidget.h:72
int navigationlayer
Navigation layer.
Definition: cImageWindowWidget.h:126
bool ispixmapdefined
True if pixmap is defined.
Definition: cImageWindowWidget.h:66
double width
Width.
Definition: cImageWindowWidget.h:96
bool checked
True if the layer is visible.
Definition: cImageWindowWidget.h:48
void clear()
Clear the structure.
Definition: cImageWindowWidget.h:170
double y
Y position.
Definition: cImageWindowWidget.h:90
qreal lasty
Last Y position.
Definition: cImageWindowWidget.h:120
layerInfo(const layerInfo &layer)
The copy constructor.
Definition: cImageWindowWidget.h:147
Auxiliary funtions and structures.
eVendorType
Vendor types.
Definition: utilities.h:82