|
Krita Source Code Documentation
|
#include <kis_canvas2.h>
Inheritance diagram for KisCanvas2:Classes | |
| struct | CanvasInputActionGroupsMaskInterface |
Public Slots | |
| void | channelSelectionChanged () |
| void | finishResizingImage (qint32 w, qint32 h) |
| qreal | rotationAngle () const |
| canvas rotation in degrees | |
| void | slotChangeGlobalProofingConfig () |
| void | slotChangeProofingConfig () |
| void | slotConfigChanged () |
| void | slotGamutCheck () |
| void | slotPopupPaletteRequestedZoomChange (int zoom) |
| void | slotScreenChanged (QScreen *screen) |
| void | slotSoftProofing () |
| void | slotTrySwitchShapeManager () |
| void | startResizingImage () |
| void | startUpdateInPatches (const QRect &imageRect) |
| void | updateCanvas () |
| Update the entire canvas area. | |
| void | updateCanvasDecorations () |
| void | updateCanvasDecorations (const QRectF &docRect) |
| void | updateCanvasProjection (const QRectF &docRect) |
| void | updateCanvasScene () |
| void | updateCanvasToolOutlineDoc (const QRectF &docRect) |
| void | updateCanvasToolOutlineWdg (const QRect &widgetRect) |
| bool | xAxisMirrored () const |
| Bools indicating canvasmirroring. | |
| bool | yAxisMirrored () const |
Signals | |
| void | sigCanvasCacheUpdated () |
| void | sigCanvasEngineChanged () |
| void | sigCanvasStateChanged () |
| void | sigContinueResizeImage (qint32 w, qint32 h) |
| void | sigRegionOfInterestChanged (const QRect &roi) |
| void | updateCanvasRequested (const QRect &rc) |
Private Slots | |
| void | bootstrapFinished () |
| void | slotBeginUpdatesBatch () |
| void | slotCanvasStateChanged () |
| void | slotDoCanvasUpdate () |
| void | slotEffectiveZoomChanged (qreal newZoom) |
| void | slotEndUpdatesBatch () |
| void | slotImageColorSpaceChanged () |
| void | slotSelectionChanged () |
| void | slotSetLodUpdatesBlocked (bool value) |
| void | slotUpdateReferencesBounds () |
| void | slotUpdateRegionOfInterest () |
| void | startUpdateCanvasProjection (const QRect &rc) |
| void | updateCanvasProjection () |
Private Member Functions | |
| void | connectCurrentCanvas () |
| void | createCanvas (bool useOpenGL) |
| void | createOpenGLCanvas () |
| void | createQPainterCanvas () |
| void | initializeFpsDecoration () |
| void | notifyLevelOfDetailChange () |
| void | requestCanvasUpdateMaybeCompressed () |
| void | resetCanvas (bool useOpenGL) |
| void | setCanvasWidget (KisAbstractCanvasWidget *widget) |
| void | setup () |
| void | slotSurfaceFormatChanged (const KisDisplayConfig &config) |
| void | updateCanvasWidgetImpl (const QRect &rc=QRect()) |
Private Attributes | |
| KisCanvas2Private *const | m_d |
Friends | |
| class | KisView |
KisCanvas2 is not an actual widget class, but rather an adapter for the widget it contains, which may be either a QPainter based canvas, or an OpenGL based canvas: that are the real widgets.
Definition at line 113 of file kis_canvas2.cpp.
|
inline |
Definition at line 173 of file kis_canvas2.cpp.
| KisCanvas2::KisCanvas2 | ( | KisCoordinatesConverter * | coordConverter, |
| KoCanvasResourceProvider * | resourceManager, | ||
| KisMainWindow * | mainWindow, | ||
| KisView * | view, | ||
| KoShapeControllerBase * | sc ) |
Create a new canvas. The canvas manages a widget that will do the actual painting: the canvas itself is not a widget.
| viewConverter | the viewconverter for converting between window and document coordinates. |
While loading LoD should be blocked. Only when GUI has finished loading and zoom level settled down, LoD is given a green light.
Definition at line 294 of file kis_canvas2.cpp.
References bootstrapFinished(), connect(), KisSignalCompressor::FIRST_ACTIVE, KisImageConfig::fpsLimit(), m_d, KoSnapGuide::overrideSnapStrategy(), KoSnapGuide::PixelSnapping, and KoCanvasBase::snapGuide.
|
override |
|
overridevirtual |
Adds a command to the history. Call this for each command you create. This will also execute the command. This means, most of the application's code will look like MyCommand * cmd = new MyCommand( parameters ); canvas.addCommand( cmd );
Note that the command history takes ownership of the command, it will delete it when the undo limit is reached, or when deleting the command history itself.
| command | the command to add |
Implements KoCanvasBase.
Definition at line 541 of file kis_canvas2.cpp.
References m_d.
| void KisCanvas2::addDecoration | ( | KisCanvasDecorationSP | deco | ) |
Definition at line 1472 of file kis_canvas2.cpp.
References m_d.
| KisCanvasAnimationState * KisCanvas2::animationState | ( | ) | const |
Definition at line 1522 of file kis_canvas2.cpp.
References m_d.
| void KisCanvas2::assignChangedMultiSurfaceState | ( | const KisMultiSurfaceStateManager::State & | newState | ) |
| void KisCanvas2::assignChangedMultiSurfaceStateSkipCanvasSurface | ( | const KisMultiSurfaceStateManager::State & | newState | ) |
|
privateslot |
Definition at line 1567 of file kis_canvas2.cpp.
References m_d, and setLodPreferredInCanvas().
|
overridevirtual |
Reimplemented from KoCanvasBase.
Definition at line 484 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
|
overridevirtual |
Return the widget that will be added to the scrollArea.
Implements KoCanvasBase.
|
slot |
Definition at line 528 of file kis_canvas2.cpp.
References KisImage::barrierLock(), KisImage::bounds(), KisLayer::channelFlags, image(), m_d, KisImage::rootLayer(), startUpdateInPatches(), and KisImage::unlock().
| QString KisCanvas2::colorManagementReport | ( | ) | const |
Return user-facing information about color management status of the main window surface. The information is intentionally left untranslated, since it is supposed to be used for bugreports.
Definition at line 1615 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 760 of file kis_canvas2.cpp.
References image(), m_d, setLodPreferredInCanvas(), sigCanvasEngineChanged(), and startResizingImage().
| const KisCoordinatesConverter * KisCanvas2::coordinatesConverter | ( | ) | const |
|
private |
Definition at line 687 of file kis_canvas2.cpp.
References KisConfig::canvasState(), createOpenGLCanvas(), createQPainterCanvas(), KisOpenGL::hasOpenGL(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, and warnKrita.
|
private |
Definition at line 660 of file kis_canvas2.cpp.
References canvasWidget, KisAbstractCanvasWidget::Depth10Bit, KisConfig::Depth10Bit, KisAbstractCanvasWidget::Depth8Bit, KisConfig::effectiveCanvasSurfaceBitDepthMode(), KisAnimationFrameCache::getFrameCache(), m_d, KisConfig::openGLFilteringMode(), and setCanvasWidget().
|
private |
Definition at line 644 of file kis_canvas2.cpp.
References canvasWidget, m_d, and setCanvasWidget().
| KisImageWSP KisCanvas2::currentImage | ( | ) | const |
Definition at line 1343 of file kis_canvas2.cpp.
References m_d.
|
inline |
Definition at line 253 of file kis_canvas2.cpp.
| KisCanvasDecorationSP KisCanvas2::decoration | ( | const QString & | id | ) | const |
Definition at line 1477 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
disconnect the given QObject completely and utterly from any and all connections it has to any QObject owned by the canvas. Do this in the setCanvas of every KoCanvasObserver.
Reimplemented from KoCanvasBase.
Definition at line 1231 of file kis_canvas2.cpp.
References KoCanvasBase::disconnectCanvasObserver(), and m_d.
| void KisCanvas2::disconnectImage | ( | ) |
We explicitly don't use barrierLock() here, because we don't care about all the updates completed (we don't use image's content). We only need to guarantee that the image will not try to access us in a multithreaded way, while we are being destroyed.
Definition at line 744 of file kis_canvas2.cpp.
References KisWeakSharedPtr< T >::data(), image(), KisImage::immediateLockForReadOnly(), m_d, and KisImage::unlock().
| KisDisplayColorConverter * KisCanvas2::displayColorConverter | ( | ) | const |
| QSharedPointer< KisDisplayFilter > KisCanvas2::displayFilter | ( | ) | const |
Definition at line 838 of file kis_canvas2.cpp.
References m_d.
| QPoint KisCanvas2::documentOffset | ( | ) | const |
Definition at line 1494 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
Return the position of the document origin inside the canvas widget, in pixels. By default the origin of the canvas widget and the position of the document origin are coincident, thus an empty point is returned.
In Krita we don't use document origin anymore. All the centering when needed (vastScrolling < 0.5) is done automatically by the KisCoordinatesConverter.
Reimplemented from KoCanvasBase.
Definition at line 1483 of file kis_canvas2.cpp.
| QRect KisCanvas2::docUpdateRectToWidget | ( | const QRectF & | docRect | ) |
|
inline |
Definition at line 238 of file kis_canvas2.cpp.
| KisExposureGammaCorrectionInterface * KisCanvas2::exposureGammaCorrectionInterface | ( | ) | const |
Definition at line 868 of file kis_canvas2.cpp.
References displayFilter(), KisDumbExposureGammaCorrectionInterface::instance(), and m_d.
| void KisCanvas2::fetchProofingOptions | ( | ) |
fetchProofingOptions Get the options for softproofing, and apply the view-specific state without affecting the proofing options as stored inside the image.
Definition at line 877 of file kis_canvas2.cpp.
References KisImageConfig::defaultProofingconfiguration(), image(), m_d, KisImage::proofingConfiguration(), and updateProofingState().
|
slot |
Definition at line 963 of file kis_canvas2.cpp.
References m_d.
| KisAnimationFrameCacheSP KisCanvas2::frameCache | ( | ) | const |
| KisInputManager * KisCanvas2::globalInputManager | ( | ) | const |
Filters events and sends them to canvas actions. Shared among all the views/canvases
NOTE: May be null while initialization!
Definition at line 604 of file kis_canvas2.cpp.
References m_d.
| KoShapeManager * KisCanvas2::globalShapeManager | ( | ) | const |
Return the shape manager associated with this canvas
Definition at line 572 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
retrieve the grid size setting. The grid spacing will be provided in pt.
| horizontal | a pointer to a qreal that will be filled with the horizontal grid-spacing |
| vertical | a pointer to a qreal that will be filled with the vertical grid-spacing |
Implements KoCanvasBase.
Definition at line 494 of file kis_canvas2.cpp.
References coordinatesConverter, KisCoordinatesConverter::imageToDocumentTransform(), and m_d.
| KisImageWSP KisCanvas2::image | ( | ) | const |
Definition at line 1337 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 378 of file kis_canvas2.cpp.
References addDecoration(), canvasIsOpenGL(), connect(), decoration(), KisConfig::enableBrushSpeedLogging(), KisConfig::enableOpenGLFramerateLogging(), KisFpsDecoration::idTag, imageView(), KisStrokeSpeedMonitor::instance(), m_d, and updateCanvas().
| void KisCanvas2::initializeImage | ( | ) |
Definition at line 720 of file kis_canvas2.cpp.
References KisImage::colorSpace(), connect(), connectCurrentCanvas(), fetchProofingOptions(), image(), m_d, KisImage::signalRouter(), slotBeginUpdatesBatch(), slotChangeProofingConfig(), slotEndUpdatesBatch(), slotImageColorSpaceChanged(), slotSetLodUpdatesBlocked(), slotTrySwitchShapeManager(), startResizingImage(), startUpdateCanvasProjection(), and KisImage::undoAdapter().
| KisInputActionGroupsMaskInterface::SharedInterface KisCanvas2::inputActionGroupsMaskInterface | ( | ) |
|
inline |
Definition at line 140 of file kis_canvas2.cpp.
References connect(), KisPlatformPluginInterfaceFactory::instance(), and KisRootSurfaceInfoProxy::sigRootSurfaceProfileChanged().
| KoShapeManager * KisCanvas2::localShapeManager | ( | ) | const |
Return shape manager associated with the currently active node. If current node has no internal shape manager, return null.
Definition at line 577 of file kis_canvas2.cpp.
References localShapeManager(), and m_d.
|
inline |
Definition at line 242 of file kis_canvas2.cpp.
References KisOpenGL::HighQualityFiltering, KisOpenGL::supportsLoD(), and KisOpenGL::TrilinearFilterMode.
| bool KisCanvas2::lodPreferredInCanvas | ( | ) | const |
Definition at line 1593 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 1303 of file kis_canvas2.cpp.
References image(), KisLodPreferences::LodPreferred, KisLodPreferences::LodSupported, m_d, KisLodPreferences::None, KisConfig::numMipmapLevels(), KisLodTransformBase::scaleToLod(), and KisImage::setLodPreferences().
| KisOpenGL::FilterMode KisCanvas2::openGLFilterMode | ( | ) | const |
| KisPaintingAssistantsDecorationSP KisCanvas2::paintingAssistantsDecoration | ( | ) | const |
Definition at line 1598 of file kis_canvas2.cpp.
References KisSharedPtr< T >::data(), and decoration().
| KisPopupPalette * KisCanvas2::popupPalette | ( | ) |
| bool KisCanvas2::proofingConfigUpdated | ( | ) |
proofingConfigUpdated ask the canvas whether or not it updated the proofing config.
| KisProofingConfigurationSP KisCanvas2::proofingConfiguration | ( | ) | const |
Definition at line 946 of file kis_canvas2.cpp.
References m_d.
| KisReferenceImagesDecorationSP KisCanvas2::referenceImagesDecoration | ( | ) | const |
Definition at line 1604 of file kis_canvas2.cpp.
References KisSharedPtr< T >::data(), and decoration().
| void KisCanvas2::refetchDataFromImage | ( | ) |
Definition at line 1400 of file kis_canvas2.cpp.
References KisImage::bounds(), image(), and startUpdateInPatches().
| QRect KisCanvas2::regionOfInterest | ( | ) | const |
| QRect KisCanvas2::renderingLimit | ( | ) | const |
|
private |
If Qt has our custom patch for global updates compression, then we shouldn't do our own compression here in the canvas. Everything will be done in Qt.
Definition at line 1077 of file kis_canvas2.cpp.
References m_d, and slotDoCanvasUpdate().
|
private |
Definition at line 775 of file kis_canvas2.cpp.
References connectCurrentCanvas(), createCanvas(), KisConfig::enableCanvasSurfaceColorSpaceManagement(), KisPlatformPluginInterfaceFactory::instance(), m_d, KisConfig::openGLFilteringMode(), slotEffectiveZoomChanged(), KisPlatformPluginInterfaceFactory::surfaceColorManagedByOS(), and updateCanvasWidgetImpl().
|
slot |
|
overridevirtual |
Since shapeManager() may change, we need a persistent object where we can connect to and thack the selection. See more comments in KoCanvasBase.
Implements KoCanvasBase.
| void KisCanvas2::setActiveShapeManager | ( | KoShapeManager * | shapeManager | ) |
|
private |
We are switching the canvas type. We should reinitialize our connections to decorations and input manager
Definition at line 403 of file kis_canvas2.cpp.
References KisInputManager::addTrackedCanvas(), KoCanvasController::canvas(), KoCanvasBase::canvasController(), connect(), KoCanvasBase::controller, INFINITY_DECORATION_ID, KisViewManager::inputManager(), KisPlatformPluginInterfaceFactory::instance(), KIS_SAFE_ASSERT_RECOVER_NOOP, m_d, KisInputManager::removeTrackedCanvas(), KisAbstractCanvasWidget::setDecorations(), KisCanvasDecoration::setVisible(), KisCanvasSurfaceColorSpaceManager::sigDisplayConfigChanged(), slotSurfaceFormatChanged(), KisPlatformPluginInterfaceFactory::surfaceColorManagedByOS(), viewManager(), and KisAbstractCanvasWidget::widget().
|
overridevirtual |
set the specified cursor on this canvas
| cursor | the new cursor |
Implements KoCanvasBase.
Definition at line 1512 of file kis_canvas2.cpp.
References canvasWidget.
| void KisCanvas2::setDisplayFilter | ( | QSharedPointer< KisDisplayFilter > | displayFilter | ) |
Definition at line 826 of file kis_canvas2.cpp.
References KisImage::barrierLock(), displayFilter(), image(), m_d, and KisImage::unlock().
| void KisCanvas2::setFavoriteResourceManager | ( | KisFavoriteResourceManager * | favoriteResourceManager | ) |
Definition at line 1499 of file kis_canvas2.cpp.
References connect(), displayColorConverter, m_d, slotPopupPaletteRequestedZoomChange(), updateCanvas(), and viewManager().
| void KisCanvas2::setLodPreferredInCanvas | ( | bool | value | ) |
Definition at line 1578 of file kis_canvas2.cpp.
References m_d, notifyLevelOfDetailChange(), KisConfig::setLevelOfDetailEnabled(), KisOpenGL::supportsLoD(), and value().
| void KisCanvas2::setProofingConfigUpdated | ( | bool | updated | ) |
setProofingConfigUpdated This function is to set whether the proofing config is updated, this is needed for determining whether or not to generate a new proofing transform.
| updated | whether it's updated. Just set it to false in normal usage. |
Definition at line 936 of file kis_canvas2.cpp.
References m_d.
| void KisCanvas2::setRenderingLimit | ( | const QRect & | rc | ) |
Set artificial limit outside which the image will not be rendered rc is measured in image pixels
Definition at line 1278 of file kis_canvas2.cpp.
References m_d.
|
private |
We switch the shape manager every time vector layer or shape selection is activated. Flake does not expect this and connects all the signals of the global shape manager to the clients in the constructor. To workaround this we forward the signals of local shape managers stored in the vector layers to the signals of global shape manager. So the sequence of signal deliveries is the following:
shapeLayer.m_d.canvas.m_shapeManager.selection() -> shapeLayer -> shapeController -> globalShapeManager.selection()
Definition at line 318 of file kis_canvas2.cpp.
References KisImageConfig::animationCacheRegionOfInterestMargin(), KoCanvasControllerProxyObject::canvasStateChanged(), connect(), createCanvas(), finishResizingImage(), KisImageConfigNotifier::globalProofingConfigChanged(), initializeFpsDecoration(), KisConfigNotifier::instance(), KisImageConfigNotifier::instance(), KisConfig::levelOfDetailEnabled(), m_d, selectedShapesProxy, setLodPreferredInCanvas(), KoCanvasBase::shapeController, sigCanvasCacheUpdated(), sigContinueResizeImage(), slotCanvasStateChanged(), slotChangeGlobalProofingConfig(), slotConfigChanged(), slotDoCanvasUpdate(), slotEffectiveZoomChanged(), slotSelectionChanged(), slotUpdateReferencesBounds(), slotUpdateRegionOfInterest(), updateCanvasProjection(), and KisConfig::useOpenGL().
| void KisCanvas2::setWrapAroundViewingMode | ( | bool | value | ) |
Definition at line 1539 of file kis_canvas2.cpp.
References INFINITY_DECORATION_ID, m_d, and value().
| void KisCanvas2::setWrapAroundViewingModeAxis | ( | WrapAroundAxis | value | ) |
Definition at line 1556 of file kis_canvas2.cpp.
References m_d, updateCanvas(), and value().
|
overridevirtual |
Return the right shape manager for the current layer. That is to say, if the current layer is a vector layer, return the shape layer's canvas' shapemanager, else the shapemanager associated with the global krita canvas.
Implements KoCanvasBase.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
privateslot |
Definition at line 1048 of file kis_canvas2.cpp.
References m_d, sigCanvasCacheUpdated(), and KisMarkerUpdateInfo::StartBatch.
|
privateslot |
Definition at line 1348 of file kis_canvas2.cpp.
References KisCanvasState::fromConverter(), m_d, sigCanvasStateChanged(), and updateCanvas().
|
slot |
Definition at line 919 of file kis_canvas2.cpp.
References image(), proofingConfiguration(), and slotChangeProofingConfig().
|
slot |
Definition at line 928 of file kis_canvas2.cpp.
References fetchProofingOptions(), imageView(), and refetchDataFromImage().
|
slot |
Called whenever the configuration settings change.
Definition at line 1362 of file kis_canvas2.cpp.
References KisImageConfig::animationCacheRegionOfInterestMargin(), KisConfig::canvasSurfaceColorSpaceManagementMode(), initializeFpsDecoration(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, KisDisplayConfig::optionsFromKisConfig(), resetCanvas(), and KisConfig::useOpenGL().
|
privateslot |
WARNING: in isBusy() we access openGL functions without making the painting context current. We hope that currently active context will be Qt's one, which is shared with our own.
Definition at line 1090 of file kis_canvas2.cpp.
References m_d, KisWrappedRect::multiplyWrappedRect(), updateCanvasRequested(), wrapAroundViewingMode(), and wrapAroundViewingModeAxis().
|
privateslot |
Definition at line 1237 of file kis_canvas2.cpp.
References notifyLevelOfDetailChange().
|
privateslot |
Definition at line 1057 of file kis_canvas2.cpp.
References KisMarkerUpdateInfo::EndBatch, m_d, and sigCanvasCacheUpdated().
|
slot |
Definition at line 911 of file kis_canvas2.cpp.
References imageView(), refetchDataFromImage(), and updateProofingState().
|
privateslot |
Definition at line 843 of file kis_canvas2.cpp.
References KisImage::barrierLock(), KisLayer::channelFlags, KisImage::colorSpace(), image(), imageView(), m_d, KisImage::rootLayer(), KisImage::unlock(), and updateProofingState().
|
slot |
Definition at line 1508 of file kis_canvas2.cpp.
References m_d, and KoZoomMode::ZOOM_CONSTANT.
|
slot |
Definition at line 1385 of file kis_canvas2.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, and warnUI.
|
privateslot |
Definition at line 1527 of file kis_canvas2.cpp.
References KisViewManager::activeLayer(), KisSharedPtr< T >::data(), m_d, KoSelection::selectedShapes(), KoShapeManager::selection, KisShapeLayer::shapeManager(), and viewManager().
|
privateslot |
Definition at line 1066 of file kis_canvas2.cpp.
References KisMarkerUpdateInfo::BlockLodUpdates, m_d, sigCanvasCacheUpdated(), KisMarkerUpdateInfo::UnblockLodUpdates, and value().
|
slot |
Definition at line 905 of file kis_canvas2.cpp.
References refetchDataFromImage(), and updateProofingState().
|
private |
Definition at line 1445 of file kis_canvas2.cpp.
References KisAbstractCanvasWidget::Depth10Bit, KisFloatingMessage::High, KisDisplayConfig::isHDR, KIS_SAFE_ASSERT_RECOVER_RETURN, koIcon, m_d, ppVar, and warnOpenGL.
|
slot |
Definition at line 1293 of file kis_canvas2.cpp.
References m_d.
|
privateslot |
Definition at line 1267 of file kis_canvas2.cpp.
References KisReferenceImagesLayer::boundingImageRect(), and m_d.
|
privateslot |
Definition at line 1251 of file kis_canvas2.cpp.
References KisAlgebra2D::blowRect(), m_d, and sigRegionOfInterestChanged().
|
overridevirtual |
return if snap to grid is enabled.
Implements KoCanvasBase.
Definition at line 508 of file kis_canvas2.cpp.
References m_d.
|
slot |
Definition at line 951 of file kis_canvas2.cpp.
References KisImage::height(), image(), sigContinueResizeImage(), startUpdateInPatches(), and KisImage::width().
|
privateslot |
The image projection has changed, now start an update of the canvas representation.
Definition at line 968 of file kis_canvas2.cpp.
References m_d, and sigCanvasCacheUpdated().
|
slot |
We don't do patched loading for openGL canvas, because it loads the tiles, which are basically "patches". Therefore, big chunks of memory are never allocated.
Definition at line 803 of file kis_canvas2.cpp.
References m_d, startUpdateCanvasProjection(), KisImageConfig::updatePatchHeight(), and KisImageConfig::updatePatchWidth().
|
overridevirtual |
Return the proxy to the active tool (determining which tool is really, really active is hard when tablets are involved, so leave that to others.
Implements KoCanvasBase.
|
overridevirtual |
Return the unit of the current document for initialization of the widgets created by the flake framework.
Implements KoCanvasBase.
Definition at line 620 of file kis_canvas2.cpp.
References image(), m_d, KoUnit::Pixel, ppVar, qFuzzyCompare(), KoUnit::setFactor(), unit(), warnKrita, KisImage::xRes(), and KisImage::yRes().
|
slot |
Update the entire canvas area.
Definition at line 1158 of file kis_canvas2.cpp.
References updateCanvasWidgetImpl().
|
overridevirtual |
Tell the canvas to repaint the specified rectangle. The coordinates are document coordinates, not view coordinates.
Implements KoCanvasBase.
Definition at line 1170 of file kis_canvas2.cpp.
References m_d, and updateCanvasWidgetImpl().
|
slot |
Definition at line 1189 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
slot |
Definition at line 1195 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
privateslot |
Definition at line 976 of file kis_canvas2.cpp.
References KisMarkerUpdateInfo::BlockLodUpdates, KisSharedPtr< T >::data(), KisMarkerUpdateInfo::EndBatch, KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, slotDoCanvasUpdate(), KisMarkerUpdateInfo::StartBatch, KisMarkerUpdateInfo::type(), and KisMarkerUpdateInfo::UnblockLodUpdates.
|
slot |
Definition at line 1180 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
signal |
|
slot |
Definition at line 1225 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
slot |
Definition at line 1204 of file kis_canvas2.cpp.
References m_d, and updateCanvasToolOutlineWdg().
|
slot |
Definition at line 1212 of file kis_canvas2.cpp.
References m_d, and slotDoCanvasUpdate().
|
private |
Definition at line 1142 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
| void KisCanvas2::updateProofingState | ( | ) |
Definition at line 888 of file kis_canvas2.cpp.
References KoColorConversionTransformation::GamutCheck, image(), imageView(), KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, and KoColorConversionTransformation::SoftProofing.
|
overridevirtual |
Return the viewConverter for this view.
Implements KoCanvasBase.
Definition at line 594 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
| KisViewManager * KisCanvas2::viewManager | ( | ) | const |
Definition at line 1324 of file kis_canvas2.cpp.
References m_d.
| bool KisCanvas2::wrapAroundViewingMode | ( | ) | const |
Definition at line 1551 of file kis_canvas2.cpp.
References m_d.
| WrapAroundAxis KisCanvas2::wrapAroundViewingModeAxis | ( | ) | const |
Definition at line 1562 of file kis_canvas2.cpp.
References m_d.
|
slot |
|
slot |
Definition at line 523 of file kis_canvas2.cpp.
References m_d.
|
friend |
Definition at line 343 of file kis_canvas2.h.
| QScopedPointer<KisCanvasAnimationState> KisCanvas2::animationPlayer |
Definition at line 211 of file kis_canvas2.cpp.
| bool KisCanvas2::bootstrapLodBlocked = false |
Definition at line 214 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::canvasUpdateCompressor |
Definition at line 197 of file kis_canvas2.cpp.
| const QWidget * KisCanvas2::canvasWidget = 0 |
Definition at line 188 of file kis_canvas2.cpp.
| QBitArray KisCanvas2::channelFlags |
Definition at line 203 of file kis_canvas2.cpp.
| const KisCoordinatesConverter * KisCanvas2::coordinatesConverter = 0 |
Definition at line 186 of file kis_canvas2.cpp.
| bool KisCanvas2::currentCanvasIsOpenGL = true |
Definition at line 191 of file kis_canvas2.cpp.
| QPointer<KoShapeManager> KisCanvas2::currentlyActiveShapeManager |
Definition at line 215 of file kis_canvas2.cpp.
| KisDisplayColorConverter * KisCanvas2::displayColorConverter |
Definition at line 208 of file kis_canvas2.cpp.
| KisAnimationFrameCacheSP KisCanvas2::frameCache |
Definition at line 212 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::frameRenderStartCompressor |
Definition at line 220 of file kis_canvas2.cpp.
| KisInputActionGroupsMask KisCanvas2::inputActionGroupsMask = AllActionGroup |
Definition at line 216 of file kis_canvas2.cpp.
| KisInputActionGroupsMaskInterface::SharedInterface KisCanvas2::inputActionGroupsMaskInterface |
Definition at line 218 of file kis_canvas2.cpp.
| int KisCanvas2::isBatchUpdateActive = 0 |
Definition at line 228 of file kis_canvas2.cpp.
| bool KisCanvas2::lodPreferredInImage = false |
Definition at line 213 of file kis_canvas2.cpp.
|
private |
Definition at line 345 of file kis_canvas2.h.
| KisMultiSurfaceStateManager KisCanvas2::multiSurfaceSetupManager |
Definition at line 235 of file kis_canvas2.cpp.
| std::optional<KisMultiSurfaceStateManager::State> KisCanvas2::multiSurfaceState |
Definition at line 236 of file kis_canvas2.cpp.
| KisOpenGL::FilterMode KisCanvas2::openGLFilterMode = 0 |
Definition at line 192 of file kis_canvas2.cpp.
| KisPopupPalette * KisCanvas2::popupPalette = 0 |
Definition at line 207 of file kis_canvas2.cpp.
| KisPrescaledProjectionSP KisCanvas2::prescaledProjection |
Definition at line 194 of file kis_canvas2.cpp.
| KisCanvasUpdatesCompressor KisCanvas2::projectionUpdatesCompressor |
Definition at line 210 of file kis_canvas2.cpp.
| KisProofingConfigurationSP KisCanvas2::proofingConfig |
Definition at line 204 of file kis_canvas2.cpp.
| bool KisCanvas2::proofingConfigUpdated = false |
Definition at line 205 of file kis_canvas2.cpp.
| KisCanvas2* KisCanvas2::q = 0 |
Definition at line 185 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::referencesBoundsUpdateCompressor |
Definition at line 223 of file kis_canvas2.cpp.
| QRect KisCanvas2::regionOfInterest |
Definition at line 224 of file kis_canvas2.cpp.
| qreal KisCanvas2::regionOfInterestMargin = 0.25 |
Definition at line 225 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::regionOfInterestUpdateCompressor |
Definition at line 222 of file kis_canvas2.cpp.
| QRect KisCanvas2::renderingLimit |
Definition at line 227 of file kis_canvas2.cpp.
| QRect KisCanvas2::savedCanvasProjectionUpdateRect |
Definition at line 199 of file kis_canvas2.cpp.
| QRect KisCanvas2::savedOverlayUpdateRect |
Definition at line 200 of file kis_canvas2.cpp.
| KoSelectedShapesProxy * KisCanvas2::selectedShapesProxy |
Definition at line 190 of file kis_canvas2.cpp.
| KoShapeManager * KisCanvas2::shapeManager |
Definition at line 189 of file kis_canvas2.cpp.
| KoToolProxy * KisCanvas2::toolProxy |
Definition at line 193 of file kis_canvas2.cpp.
| bool KisCanvas2::updateSceneRequested = false |
Definition at line 201 of file kis_canvas2.cpp.
Definition at line 187 of file kis_canvas2.cpp.