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