11#ifndef GUI_EDITING_SELECTIONPLACEMENTINTERFACE_H
12#define GUI_EDITING_SELECTIONPLACEMENTINTERFACE_H
A selection region placement interface.
bool currentlyDragging
dragging the mouse only moves the selection if the mouse button is pressed first over the selected re...
void recenterSelection(QPoint mousePosition)
util function used to center selection about mouse location
QImage unselectedScaledImage
Unselected scaled image (desaturated version of scaled image)
void mouseMoveEvent(QMouseEvent *e)
~SelectionPlacementInterface()
Deletes objects.
void mouseReleaseEvent(QMouseEvent *)
QRect getSelectedRegion()
Returns the selected region in image space.
bool overRegion(QPoint p)
util function used to determine if mouse is over selected region
QRect imageToDisplay(QRect r)
convert rectangle from image coordinates to display coordinates
virtual QSize sizeHint() const
void mousePressEvent(QMouseEvent *e)
bool currentMouseShapeIsDrag
current mouse shape.
void paintEvent(QPaintEvent *e)
QSize origImageSize
original image dimensions
virtual QSize minimumSizeHint() const
QImage scaledImage
Scaled image used for display purposes.
SelectionPlacementInterface(QString imageFilename, QWidget *parent=0, const char *name=0)
Creates layout.
void setSelectedRegion(QRect selection)
Set the select region using image space coordinates.
void placementChanged(QRect)