70 if (!
d->
canvas)
return QPointF();
72 QPointF flakePos =
d->
canvas->
imageView()->canvasController()->preferredCenter();
146 d->
canvas->
imageView()->canvasController()->slotToggleWrapAroundMode(enable);
158 return d->
canvas->
imageView()->canvasController()->slotToggleLevelOfDetailMode(enable);
161#include "moc_Canvas.cpp"
float value(const T *src, size_t ch)
void setMirror(bool value)
setMirror turn the canvas mirroring on or off depending on
void setRotation(qreal angle)
setRotation set the rotation of the canvas to the given
QPointF preferredCenter() const
void setWrapAroundMode(bool enable)
setWrapAroundMode set wraparound mode to
bool levelOfDetailMode() const
bool operator!=(const Canvas &other) const
void setLevelOfDetailMode(bool enable)
setLevelOfDetailMode sets Instant Preview to
void resetRotation()
resetRotation reset the canvas rotation.
KisDisplayColorConverter * displayColorConverter() const
bool wrapAroundMode() const
void setZoomLevel(qreal value)
setZoomLevel set the zoomlevel to the given value. 1.0 is 100%.
void setPreferredCenter(const QPointF &imagePos)
setPan Centers the image pixel at imagePos in the current view
bool operator==(const Canvas &other) const
Canvas(KoCanvasBase *canvas, QObject *parent=0)
void pan(const QPoint &offset)
pan the current view in pixels.
void resetZoom()
resetZoom set the zoomlevel to 100%
KisDisplayColorConverter displayColorConverter
KisCoordinatesConverter * coordinatesConverter
QPointer< KisView > imageView() const
_Private::Traits< T >::Result documentToFlake(const T &obj) const
_Private::Traits< T >::Result flakeToDocument(const T &obj) const
_Private::Traits< T >::Result documentToImage(const T &obj) const
_Private::Traits< T >::Result imageToDocument(const T &obj) const