1 /** @file displaywindow.hpp
2 @package snark14Display
3 @author Bruno M. Carvalho and Deniz Sarioz
4 licensed under (open-source) QPL v1.0
5 which accompanies this distribution in the file QPL
8 #ifndef DISPLAYWINDOW_H
9 #define DISPLAYWINDOW_H
11 #include "variables.hpp"
12 #include "displaywidget.hpp"
30 // class displaywindow : public QDialog
31 class displaywindow : public QWidget
36 displaywindow( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 , DIGDataFormat fileformat = DIGDataFormat_BINARY, int imagenumber = 0, int x = 0 , int y = 0 );
39 bool useglobal, usedifference, useintensity;
47 double maxval,minval,diffmaxval,diffminval;
48 double lowthreshold,highthreshold,difflowthreshold,diffhighthreshold;
52 displayWidget* displaywidget;
57 QPushButton* setzoombutton;
58 // QRadioButton* globalthresholdbutton;
59 // QRadioButton* differencebutton;
60 // QRadioButton* intensitybutton;
61 QLabel* lowthreshlabel;
62 QSlider* lowthreshslider;
64 QPushButton* setlowthreshbutton;
65 QLabel* highthreshlabel;
66 QSlider* highthreshslider;
67 QLineEdit* highthresh;
68 QPushButton* sethighthreshbutton;
69 QLabel* pixelposlabel;
71 QLabel* pixelvaluelabel;
72 QLineEdit* pixelvalue;
73 QPushButton* profilebutton;
74 QPushButton* linesbutton;
75 QPushButton* savebutton;
76 QPushButton* closebutton;
78 void updateClickedPixel(int cx,int cy);
80 void updateZoomslider();
82 void setGlobal(bool on);
83 void setDifference(bool on);
84 void setIntensity(bool on);
86 bool isGlobalthreshs();
87 void updateGlobalthreshs();
88 // void setGlobalthreshs(bool value);
89 void setGlobalthreshs();
90 // void differencePhantom();
92 void updateLowthresh();
93 double getLowthresh();
94 void updateLowthreshslider();
95 void updateHighthresh();
96 double getHighthresh();
97 void updateHighthreshslider();
99 void resetDiffImage();
100 void resetImageRange();
106 virtual void closeEvent(QCloseEvent *e);
109 #endif // DISPLAYWINDOW_H