|
Krita Source Code Documentation
|
#include <Canvas.h>
Inheritance diagram for Canvas:Classes | |
| struct | Private |
Public Slots | |
| bool | levelOfDetailMode () const |
| bool | mirror () const |
| void | pan (const QPoint &offset) |
| pan the current view in pixels. | |
| QPointF | preferredCenter () const |
| void | resetRotation () |
| resetRotation reset the canvas rotation. | |
| void | resetZoom () |
| resetZoom set the zoomlevel to 100% | |
| qreal | rotation () const |
| void | setLevelOfDetailMode (bool enable) |
| setLevelOfDetailMode sets Instant Preview to | |
| void | setMirror (bool value) |
| setMirror turn the canvas mirroring on or off depending on | |
| void | setPreferredCenter (const QPointF &imagePos) |
setPan Centers the image pixel at imagePos in the current view | |
| void | setRotation (qreal angle) |
| setRotation set the rotation of the canvas to the given | |
| void | setWrapAroundMode (bool enable) |
| setWrapAroundMode set wraparound mode to | |
| void | setZoomLevel (qreal value) |
setZoomLevel set the zoomlevel to the given value. 1.0 is 100%. | |
| View * | view () const |
| bool | wrapAroundMode () const |
| qreal | zoomLevel () const |
Public Member Functions | |
| Canvas (KoCanvasBase *canvas, QObject *parent=0) | |
| bool | operator!= (const Canvas &other) const |
| bool | operator== (const Canvas &other) const |
| ~Canvas () override | |
Private Member Functions | |
| KisDisplayColorConverter * | displayColorConverter () const |
Private Attributes | |
| Private *const | d |
Friends | |
| class | ManagedColor |
Canvas wraps the canvas inside a view on an image/document. It is responsible for the view parameters of the document: zoom, rotation, mirror, wraparound and instant preview.
|
explicit |
Definition at line 20 of file Canvas.cpp.
References Canvas::Private::canvas, and d.
|
override |
|
private |
Definition at line 131 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::displayColorConverter.
|
slot |
Definition at line 149 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
Definition at line 112 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
| bool Canvas::operator!= | ( | const Canvas & | other | ) | const |
| bool Canvas::operator== | ( | const Canvas & | other | ) | const |
Definition at line 33 of file Canvas.cpp.
References Canvas::Private::canvas, and d.
|
slot |
pan the current view in pixels.
Definition at line 81 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
Definition at line 68 of file Canvas.cpp.
References Canvas::Private::canvas, KisCanvas2::coordinatesConverter, d, KisCoordinatesConverter::documentToImage(), KisCoordinatesConverter::flakeToDocument(), and KisCanvas2::imageView().
|
slot |
resetRotation reset the canvas rotation.
Definition at line 93 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
resetZoom set the zoomlevel to 100%
Definition at line 86 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
Definition at line 99 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
setLevelOfDetailMode sets Instant Preview to
| enable |
Definition at line 155 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
setMirror turn the canvas mirroring on or off depending on
| value |
Definition at line 118 of file Canvas.cpp.
References Canvas::Private::canvas, d, KisCanvas2::imageView(), and value().
|
slot |
setPan Centers the image pixel at imagePos in the current view
Definition at line 56 of file Canvas.cpp.
References Canvas::Private::canvas, KisCanvas2::coordinatesConverter, d, KisCoordinatesConverter::documentToFlake(), KisCoordinatesConverter::imageToDocument(), and KisCanvas2::imageView().
|
slot |
setRotation set the rotation of the canvas to the given
| angle | in degrees. |
Definition at line 105 of file Canvas.cpp.
References Canvas::Private::canvas, d, KisCanvas2::imageView(), and rotation().
|
slot |
setWrapAroundMode set wraparound mode to
| enable |
Definition at line 143 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
setZoomLevel set the zoomlevel to the given value. 1.0 is 100%.
Definition at line 50 of file Canvas.cpp.
References Canvas::Private::canvas, d, KisCanvas2::imageView(), value(), and KoZoomMode::ZOOM_CONSTANT.
|
slot |
Definition at line 124 of file Canvas.cpp.
References Canvas::Private::canvas, d, KisCanvas2::imageView(), and view().
|
slot |
Definition at line 137 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
slot |
Definition at line 44 of file Canvas.cpp.
References Canvas::Private::canvas, d, and KisCanvas2::imageView().
|
friend |