libs/libksane/libksane
#include <ksane_viewer.h>
|
void | clearActiveSelection () |
|
void | clearHighlight () |
|
void | clearSavedSelections () |
|
void | clearSelections () |
|
bool | selectionAt (int index, float &tl_x, float &tl_y, float &br_x, float &br_y) |
|
int | selListSize () |
|
void | setBRX (float ratio) |
|
void | setBRY (float ratio) |
|
void | setHighlightArea (float tl_x, float tl_y, float br_x, float br_y) |
|
void | setHighlightShown (int percentage, QColor hideColor=Qt::white) |
|
void | setSelection (float tl_x, float tl_y, float br_x, float br_y) |
|
void | setTLX (float ratio) |
|
void | setTLY (float ratio) |
|
void | zoom2Fit () |
|
void | zoomIn () |
|
void | zoomOut () |
|
void | zoomSel () |
|
|
void | newSelection (float tl_x, float tl_y, float br_x, float br_y) |
|
Definition at line 37 of file ksane_viewer.h.
KSaneIface::KSaneViewer::KSaneViewer |
( |
QImage * |
img, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
|
explicit |
KSaneIface::KSaneViewer::~KSaneViewer |
( |
| ) |
|
void KSaneIface::KSaneViewer::clearActiveSelection |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::clearHighlight |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::clearSavedSelections |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::clearSelections |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::drawBackground |
( |
QPainter * |
painter, |
|
|
const QRectF & |
rect |
|
) |
| |
|
protected |
void KSaneIface::KSaneViewer::findSelections |
( |
float |
area = 10000.0 | ) |
|
Find selections in the picture.
- Parameters
-
area | this parameter determine the area of the reduced sized image. |
Definition at line 797 of file ksane_viewer.cpp.
void KSaneIface::KSaneViewer::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
void KSaneIface::KSaneViewer::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
void KSaneIface::KSaneViewer::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
void KSaneIface::KSaneViewer::newSelection |
( |
float |
tl_x, |
|
|
float |
tl_y, |
|
|
float |
br_x, |
|
|
float |
br_y |
|
) |
| |
|
signal |
bool KSaneIface::KSaneViewer::selectionAt |
( |
int |
index, |
|
|
float & |
tl_x, |
|
|
float & |
tl_y, |
|
|
float & |
br_x, |
|
|
float & |
br_y |
|
) |
| |
|
slot |
int KSaneIface::KSaneViewer::selListSize |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::setBRX |
( |
float |
ratio | ) |
|
|
slot |
void KSaneIface::KSaneViewer::setBRY |
( |
float |
ratio | ) |
|
|
slot |
void KSaneIface::KSaneViewer::setHighlightArea |
( |
float |
tl_x, |
|
|
float |
tl_y, |
|
|
float |
br_x, |
|
|
float |
br_y |
|
) |
| |
|
slot |
This function is used to darken everything except what is inside the given area.
- Note
- all parameters must be in the range 0.0 -> 1.0.
- Parameters
-
tl_x | is the x coordinate of the top left corner 0=0 1=image with. |
tl_y | is the y coordinate of the top left corner 0=0 1=image height. |
br_x | is the x coordinate of the bottom right corner 0=0 1=image with. |
br_y | is the y coordinate of the bottom right corner 0=0 1=image height. |
Definition at line 294 of file ksane_viewer.cpp.
void KSaneIface::KSaneViewer::setHighlightShown |
( |
int |
percentage, |
|
|
QColor |
hideColor = Qt::white |
|
) |
| |
|
slot |
This function sets the percentage of the highlighted area that is visible.
The rest is hidden.
- Parameters
-
percentage | is the percentage of the highlighted area that is shown. |
hideColor | is the color to use to hide the highlighted area of the image. |
Definition at line 338 of file ksane_viewer.cpp.
void KSaneIface::KSaneViewer::setQImage |
( |
QImage * |
img | ) |
|
void KSaneIface::KSaneViewer::setSelection |
( |
float |
tl_x, |
|
|
float |
tl_y, |
|
|
float |
br_x, |
|
|
float |
br_y |
|
) |
| |
|
slot |
This function is used to set a selection without the user setting it.
- Note
- all parameters must be in the range 0.0 -> 1.0.
- Parameters
-
tl_x | is the x coordinate of the top left corner 0=0 1=image with. |
tl_y | is the y coordinate of the top left corner 0=0 1=image height. |
br_x | is the x coordinate of the bottom right corner 0=0 1=image with. |
br_y | is the y coordinate of the bottom right corner 0=0 1=image height. |
Definition at line 281 of file ksane_viewer.cpp.
void KSaneIface::KSaneViewer::setTLX |
( |
float |
ratio | ) |
|
|
slot |
void KSaneIface::KSaneViewer::setTLY |
( |
float |
ratio | ) |
|
|
slot |
QSize KSaneIface::KSaneViewer::sizeHint |
( |
| ) |
const |
|
virtual |
void KSaneIface::KSaneViewer::updateImage |
( |
| ) |
|
void KSaneIface::KSaneViewer::wheelEvent |
( |
QWheelEvent * |
e | ) |
|
|
protected |
void KSaneIface::KSaneViewer::zoom2Fit |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::zoomIn |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::zoomOut |
( |
| ) |
|
|
slot |
void KSaneIface::KSaneViewer::zoomSel |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:23 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.