11 #ifndef GUI_EDITING_HISTOGRAMINTERFACE_H 12 #define GUI_EDITING_HISTOGRAMINTERFACE_H 20 #include <QResizeEvent> 21 #include <QMouseEvent> 22 #include <QPaintEvent> 64 int &redLeft,
int &redRight,
65 int &greenLeft,
int &greenRight,
66 int &blueLeft,
int &blueRight);
129 #endif //GUI_EDITING_HISTOGRAMINTERFACE_H
int redVals[256]
color and luminosity histograms
void resizeEvent(QResizeEvent *)
void paintEvent(QPaintEvent *e)
HistogramInterface(QString imageFilename, QWidget *parent=0, const char *name=0)
Creates layout.
int maxRcount
max r,g,b, and gray counts
~HistogramInterface()
Deletes objects.
DRAG_MODE
current drag mode, effect of mouse movement on selected range
void setDisplayChannel(DISPLAYED_CHANNEL channel)
Sets currently displayed channel.
QSize origImageSize
original image dimensions, needed for painting
double displayToIndex(int val)
convert screen coordinate to index in 0-255 range
DISPLAYED_CHANNEL
chanel histogram displays
void selectedRangeChanged()
void mousePressEvent(QMouseEvent *e)
int indexToDisplay(int val)
converts index in 0-255 ranges to screen coordinate
virtual QSize minimumSizeHint() const
int lumClick
left and right bounds for each channel
void getSelectedRange(int &left, int &right)
this utility function finds currently selected range
void mouseReleaseEvent(QMouseEvent *)
DRAG_MODE dragMode
effect of mouse drags
bool nearBoundary(QPoint p)
determines if mouse is near boundary
DISPLAYED_CHANNEL displayedChannel
Currently displayed channel.
void getHistBoundaries(int &lumLeft, int &lumRight, int &redLeft, int &redRight, int &greenLeft, int &greenRight, int &blueLeft, int &blueRight)
returns histogram boundaries
void resetBoundaries()
resets all boundaries
void mouseMoveEvent(QMouseEvent *e)
DRAG_MODE currentMouseShape
current mouse shape.