|
Krita Source Code Documentation
|
#include <kis_image_view_converter.h>
Inheritance diagram for KisImageViewConverter:Public Member Functions | |
| KisClonableViewConverter * | clone () const override |
| qreal | documentToViewX (qreal documentX) const override |
| convert from flake to krita units | |
| qreal | documentToViewY (qreal documentY) const override |
| convert from flake to krita units | |
| KisImageViewConverter () | |
| KisImageViewConverter (const KisImageViewConverter &rhs) | |
| KisImageViewConverter (const KisImageWSP image) | |
| KisImageViewConverter (KisImageResolutionProxySP proxy) | |
| void | setImage (KisImageWSP image) |
| qreal | viewToDocumentX (qreal viewX) const override |
| convert from krita to flake units | |
| qreal | viewToDocumentY (qreal viewY) const override |
| convert from krita to flake units | |
| qreal | zoom () const |
| void | zoom (qreal *zoomX, qreal *zoomY) const override |
| reimplemented from superclass | |
| ~KisImageViewConverter () | |
Public Member Functions inherited from KoViewConverter | |
| QTransform | documentToView () const |
| virtual QPointF | documentToView (const QPointF &documentPoint) const |
| virtual QRectF | documentToView (const QRectF &documentRect) const |
| virtual QSizeF | documentToView (const QSizeF &documentSize) const |
| KoViewConverter () | |
| virtual KoViewTransformStillPoint | makeDocStillPoint (const QPointF &docPoint) const |
Creates a still point that links the docPoint of the image (in document pixels!) to the corresponding point on the screen (in the canvas widget). | |
| virtual KoViewTransformStillPoint | makeWidgetStillPoint (const QPointF &viewPoint) const |
Creates a still point that links the viewPoint of the widget to the corresponding point of the image. | |
| virtual void | setZoom (qreal zoom) |
| QTransform | viewToDocument () const |
| virtual QPointF | viewToDocument (const QPointF &viewPoint) const |
| virtual QRectF | viewToDocument (const QRectF &viewRect) const |
| virtual QSizeF | viewToDocument (const QSizeF &viewSize) const |
| virtual QTransform | viewToWidget () const |
| virtual QTransform | widgetToView () const |
| qreal | zoom () const |
| virtual | ~KoViewConverter () |
Private Member Functions | |
| qreal | effectiveXRes () const |
| qreal | effectiveYRes () const |
Private Attributes | |
| KisImageResolutionProxySP | m_proxy |
ViewConverter to convert from flake-internal points to krita-internal pixels and back. You can use this class wherever the flake tools or shapes come in contact with the krita-image.
For usage remember that the document here is the flake-points. And the view is the krita-pixels.
Definition at line 24 of file kis_image_view_converter.h.
| KisImageViewConverter::KisImageViewConverter | ( | ) |
constructor
| image | the image this viewConverter works for. |
Definition at line 11 of file kis_image_view_converter.cpp.
| KisImageViewConverter::KisImageViewConverter | ( | const KisImageWSP | image | ) |
Definition at line 16 of file kis_image_view_converter.cpp.
| KisImageViewConverter::KisImageViewConverter | ( | KisImageResolutionProxySP | proxy | ) |
Definition at line 21 of file kis_image_view_converter.cpp.
References KoViewConverter::setZoom().
| KisImageViewConverter::KisImageViewConverter | ( | const KisImageViewConverter & | rhs | ) |
Definition at line 27 of file kis_image_view_converter.cpp.
| KisImageViewConverter::~KisImageViewConverter | ( | ) |
Definition at line 33 of file kis_image_view_converter.cpp.
|
overridevirtual |
Implements KisClonableViewConverter.
Definition at line 37 of file kis_image_view_converter.cpp.
References KisImageViewConverter().
|
overridevirtual |
convert from flake to krita units
Reimplemented from KoViewConverter.
Definition at line 58 of file kis_image_view_converter.cpp.
References effectiveXRes().
|
overridevirtual |
convert from flake to krita units
Reimplemented from KoViewConverter.
Definition at line 63 of file kis_image_view_converter.cpp.
References effectiveYRes().
|
private |
Definition at line 86 of file kis_image_view_converter.cpp.
References m_proxy.
|
private |
Definition at line 91 of file kis_image_view_converter.cpp.
References m_proxy.
| void KisImageViewConverter::setImage | ( | KisImageWSP | image | ) |
Definition at line 42 of file kis_image_view_converter.cpp.
References m_proxy.
|
overridevirtual |
convert from krita to flake units
Reimplemented from KoViewConverter.
Definition at line 68 of file kis_image_view_converter.cpp.
References effectiveXRes().
|
overridevirtual |
convert from krita to flake units
Reimplemented from KoViewConverter.
Definition at line 73 of file kis_image_view_converter.cpp.
References effectiveYRes().
| qreal KisImageViewConverter::zoom | ( | ) | const |
Definition at line 77 of file kis_image_view_converter.cpp.
References effectiveXRes().
|
overridevirtual |
reimplemented from superclass
Reimplemented from KoViewConverter.
Definition at line 49 of file kis_image_view_converter.cpp.
References effectiveXRes(), and effectiveYRes().
|
private |
Definition at line 57 of file kis_image_view_converter.h.