|
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 144 of file kis_canvas2.cpp.
|
inline |
Definition at line 204 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 327 of file kis_canvas2.cpp.
References bootstrapFinished(), 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 574 of file kis_canvas2.cpp.
References m_d.
| void KisCanvas2::addDecoration | ( | KisCanvasDecorationSP | deco | ) |
Definition at line 1549 of file kis_canvas2.cpp.
References m_d.
| KisCanvasAnimationState * KisCanvas2::animationState | ( | ) | const |
Definition at line 1599 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 1644 of file kis_canvas2.cpp.
References m_d, and setLodPreferredInCanvas().
|
overridevirtual |
Reimplemented from KoCanvasBase.
Definition at line 517 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 561 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 1692 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 842 of file kis_canvas2.cpp.
References image(), m_d, setLodPreferredInCanvas(), sigCanvasEngineChanged(), and startResizingImage().
| const KisCoordinatesConverter * KisCanvas2::coordinatesConverter | ( | ) | const |
|
private |
Definition at line 769 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 742 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 726 of file kis_canvas2.cpp.
References canvasWidget, m_d, and setCanvasWidget().
| KisImageWSP KisCanvas2::currentImage | ( | ) | const |
Definition at line 1420 of file kis_canvas2.cpp.
References m_d.
|
inline |
Definition at line 286 of file kis_canvas2.cpp.
|
overridevirtual |
the shape that owns the currently active shape manager
When the editor enters some kind of "group editing mode", the user see only shapes belonging to this particular group. In other words, the shapeManager() of this canvas will contain only shapes of this "entered" group.
currentShapeManagerOwnerShape() returns the shape that represents this currently entered group, so that the tools could detect it better
If no group is currently entered, then the function returns nullptr.
NOTE: the functionality is currently implemented for text shapes only, not for actual groups :)
Reimplemented from KoCanvasBase.
Definition at line 610 of file kis_canvas2.cpp.
References m_d.
| KisCanvasDecorationSP KisCanvas2::decoration | ( | const QString & | id | ) | const |
Definition at line 1554 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 1313 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 826 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 920 of file kis_canvas2.cpp.
References m_d.
| QPoint KisCanvas2::documentOffset | ( | ) | const |
Definition at line 1571 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 1560 of file kis_canvas2.cpp.
| QRect KisCanvas2::docUpdateRectToWidget | ( | const QRectF & | docRect | ) |
|
inline |
Definition at line 271 of file kis_canvas2.cpp.
| KisExposureGammaCorrectionInterface * KisCanvas2::exposureGammaCorrectionInterface | ( | ) | const |
Definition at line 950 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 959 of file kis_canvas2.cpp.
References KisImageConfig::defaultProofingconfiguration(), image(), m_d, KisImage::proofingConfiguration(), and updateProofingState().
|
slot |
Definition at line 1045 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 686 of file kis_canvas2.cpp.
References m_d.
| KoShapeManager * KisCanvas2::globalShapeManager | ( | ) | const |
Return the shape manager associated with this canvas
Definition at line 605 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 527 of file kis_canvas2.cpp.
References coordinatesConverter, KisCoordinatesConverter::imageToDocumentTransform(), and m_d.
| KisImageWSP KisCanvas2::image | ( | ) | const |
Definition at line 1414 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 411 of file kis_canvas2.cpp.
References addDecoration(), canvasIsOpenGL(), decoration(), KisConfig::enableBrushSpeedLogging(), KisConfig::enableOpenGLFramerateLogging(), KisFpsDecoration::idTag, imageView(), KisStrokeSpeedMonitor::instance(), m_d, and updateCanvas().
| void KisCanvas2::initializeImage | ( | ) |
Definition at line 802 of file kis_canvas2.cpp.
References KisImage::colorSpace(), 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 171 of file kis_canvas2.cpp.
References 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.
The group shape should be manually reset by the external code when the active layer is switched.
Definition at line 634 of file kis_canvas2.cpp.
References KIS_SAFE_ASSERT_RECOVER, localShapeManager(), m_d, and KoShapeManager::shapes.
|
inline |
Definition at line 275 of file kis_canvas2.cpp.
References KisOpenGL::HighQualityFiltering, KisOpenGL::supportsLoD(), and KisOpenGL::TrilinearFilterMode.
| bool KisCanvas2::lodPreferredInCanvas | ( | ) | const |
Definition at line 1670 of file kis_canvas2.cpp.
References m_d.
|
private |
Definition at line 1380 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 1675 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 1028 of file kis_canvas2.cpp.
References m_d.
| KisReferenceImagesDecorationSP KisCanvas2::referenceImagesDecoration | ( | ) | const |
Definition at line 1681 of file kis_canvas2.cpp.
References KisSharedPtr< T >::data(), and decoration().
| void KisCanvas2::refetchDataFromImage | ( | ) |
Definition at line 1477 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 1159 of file kis_canvas2.cpp.
References m_d, and slotDoCanvasUpdate().
|
private |
Definition at line 857 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 436 of file kis_canvas2.cpp.
References KisInputManager::addTrackedCanvas(), KoCanvasController::canvas(), KoCanvasBase::canvasController(), 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().
sets the group shape that is supposed to be "entered"
The tool can instruct the canvas to enter the group represented by shape shape. The implementation of the canvas is supposed to switch its shapeManager() to the one owned by shape.
NOTE: we currently have no common interface for fetching the shape manager from a particular shape. The canvas is supposed to know how to dynamic_cast the shape itself.
recalculate the local shape manager and make sure that selected shapes proxy emits all the necessary signals
Reimplemented from KoCanvasBase.
Definition at line 615 of file kis_canvas2.cpp.
References currentShapeManagerOwnerShape(), localShapeManager(), m_d, setCurrentShapeManagerOwnerShape(), source(), and void().
|
overridevirtual |
set the specified cursor on this canvas
| cursor | the new cursor |
Implements KoCanvasBase.
Definition at line 1589 of file kis_canvas2.cpp.
References canvasWidget.
| void KisCanvas2::setDisplayFilter | ( | QSharedPointer< KisDisplayFilter > | displayFilter | ) |
Definition at line 908 of file kis_canvas2.cpp.
References KisImage::barrierLock(), displayFilter(), image(), m_d, and KisImage::unlock().
| void KisCanvas2::setFavoriteResourceManager | ( | KisFavoriteResourceManager * | favoriteResourceManager | ) |
Definition at line 1576 of file kis_canvas2.cpp.
References displayColorConverter, m_d, slotPopupPaletteRequestedZoomChange(), updateCanvas(), and viewManager().
| void KisCanvas2::setLodPreferredInCanvas | ( | bool | value | ) |
Definition at line 1655 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 1018 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 1360 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 351 of file kis_canvas2.cpp.
References KisImageConfig::animationCacheRegionOfInterestMargin(), KoCanvasControllerProxyObject::canvasStateChanged(), 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 1616 of file kis_canvas2.cpp.
References INFINITY_DECORATION_ID, m_d, and value().
| void KisCanvas2::setWrapAroundViewingModeAxis | ( | WrapAroundAxis | value | ) |
Definition at line 1633 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 1130 of file kis_canvas2.cpp.
References m_d, sigCanvasCacheUpdated(), and KisMarkerUpdateInfo::StartBatch.
|
privateslot |
Definition at line 1425 of file kis_canvas2.cpp.
References KisCanvasState::fromConverter(), m_d, sigCanvasStateChanged(), and updateCanvas().
|
slot |
Definition at line 1001 of file kis_canvas2.cpp.
References image(), proofingConfiguration(), and slotChangeProofingConfig().
|
slot |
Definition at line 1010 of file kis_canvas2.cpp.
References fetchProofingOptions(), imageView(), and refetchDataFromImage().
|
slot |
Called whenever the configuration settings change.
Definition at line 1439 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 1172 of file kis_canvas2.cpp.
References m_d, KisWrappedRect::multiplyWrappedRect(), updateCanvasRequested(), wrapAroundViewingMode(), and wrapAroundViewingModeAxis().
|
privateslot |
Definition at line 1319 of file kis_canvas2.cpp.
References notifyLevelOfDetailChange().
|
privateslot |
Definition at line 1139 of file kis_canvas2.cpp.
References KisMarkerUpdateInfo::EndBatch, m_d, and sigCanvasCacheUpdated().
|
slot |
Definition at line 993 of file kis_canvas2.cpp.
References imageView(), refetchDataFromImage(), and updateProofingState().
|
privateslot |
Definition at line 925 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 1585 of file kis_canvas2.cpp.
References m_d, and KoZoomMode::ZOOM_CONSTANT.
|
slot |
Definition at line 1462 of file kis_canvas2.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN, m_d, and warnUI.
|
privateslot |
Definition at line 1604 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 1148 of file kis_canvas2.cpp.
References KisMarkerUpdateInfo::BlockLodUpdates, m_d, sigCanvasCacheUpdated(), KisMarkerUpdateInfo::UnblockLodUpdates, and value().
|
slot |
Definition at line 987 of file kis_canvas2.cpp.
References refetchDataFromImage(), and updateProofingState().
|
private |
Definition at line 1522 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 1375 of file kis_canvas2.cpp.
|
privateslot |
Definition at line 1349 of file kis_canvas2.cpp.
References KisReferenceImagesLayer::boundingImageRect(), and m_d.
|
privateslot |
Definition at line 1333 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 541 of file kis_canvas2.cpp.
References m_d.
|
slot |
Definition at line 1033 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 1050 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 885 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 702 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 1240 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 1252 of file kis_canvas2.cpp.
References m_d, and updateCanvasWidgetImpl().
|
slot |
Definition at line 1271 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
slot |
Definition at line 1277 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
privateslot |
Definition at line 1058 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 1262 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
signal |
|
slot |
Definition at line 1307 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
|
slot |
Definition at line 1286 of file kis_canvas2.cpp.
References m_d, and updateCanvasToolOutlineWdg().
|
slot |
Definition at line 1294 of file kis_canvas2.cpp.
References m_d, and slotDoCanvasUpdate().
|
private |
Definition at line 1224 of file kis_canvas2.cpp.
References m_d, and requestCanvasUpdateMaybeCompressed().
| void KisCanvas2::updateProofingState | ( | ) |
Definition at line 970 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 676 of file kis_canvas2.cpp.
References m_d.
|
overridevirtual |
| KisViewManager * KisCanvas2::viewManager | ( | ) | const |
Definition at line 1401 of file kis_canvas2.cpp.
References m_d.
| bool KisCanvas2::wrapAroundViewingMode | ( | ) | const |
Definition at line 1628 of file kis_canvas2.cpp.
References m_d.
| WrapAroundAxis KisCanvas2::wrapAroundViewingModeAxis | ( | ) | const |
Definition at line 1639 of file kis_canvas2.cpp.
References m_d.
|
slot |
|
slot |
Definition at line 556 of file kis_canvas2.cpp.
References m_d.
|
friend |
Definition at line 346 of file kis_canvas2.h.
| QScopedPointer<KisCanvasAnimationState> KisCanvas2::animationPlayer |
Definition at line 244 of file kis_canvas2.cpp.
| bool KisCanvas2::bootstrapLodBlocked = false |
Definition at line 247 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::canvasUpdateCompressor |
Definition at line 230 of file kis_canvas2.cpp.
| const QWidget * KisCanvas2::canvasWidget = 0 |
Definition at line 219 of file kis_canvas2.cpp.
| QBitArray KisCanvas2::channelFlags |
Definition at line 236 of file kis_canvas2.cpp.
| const KisCoordinatesConverter * KisCanvas2::coordinatesConverter = 0 |
Definition at line 217 of file kis_canvas2.cpp.
| bool KisCanvas2::currentCanvasIsOpenGL = true |
Definition at line 222 of file kis_canvas2.cpp.
| QPointer<KoShapeManager> KisCanvas2::currentlyActiveShapeManager |
Definition at line 248 of file kis_canvas2.cpp.
| KisDisplayColorConverter * KisCanvas2::displayColorConverter |
Definition at line 241 of file kis_canvas2.cpp.
| KisAnimationFrameCacheSP KisCanvas2::frameCache |
Definition at line 245 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::frameRenderStartCompressor |
Definition at line 253 of file kis_canvas2.cpp.
| std::optional<ShapeLifetimeWrapper> KisCanvas2::groupModeShapeWrapper |
Definition at line 223 of file kis_canvas2.cpp.
| KisInputActionGroupsMask KisCanvas2::inputActionGroupsMask = AllActionGroup |
Definition at line 249 of file kis_canvas2.cpp.
| KisInputActionGroupsMaskInterface::SharedInterface KisCanvas2::inputActionGroupsMaskInterface |
Definition at line 251 of file kis_canvas2.cpp.
| int KisCanvas2::isBatchUpdateActive = 0 |
Definition at line 261 of file kis_canvas2.cpp.
| bool KisCanvas2::lodPreferredInImage = false |
Definition at line 246 of file kis_canvas2.cpp.
|
private |
Definition at line 348 of file kis_canvas2.h.
| KisMultiSurfaceStateManager KisCanvas2::multiSurfaceSetupManager |
Definition at line 268 of file kis_canvas2.cpp.
| std::optional<KisMultiSurfaceStateManager::State> KisCanvas2::multiSurfaceState |
Definition at line 269 of file kis_canvas2.cpp.
| KisOpenGL::FilterMode KisCanvas2::openGLFilterMode = 0 |
Definition at line 225 of file kis_canvas2.cpp.
| KisPopupPalette * KisCanvas2::popupPalette = 0 |
Definition at line 240 of file kis_canvas2.cpp.
| KisPrescaledProjectionSP KisCanvas2::prescaledProjection |
Definition at line 227 of file kis_canvas2.cpp.
| KisCanvasUpdatesCompressor KisCanvas2::projectionUpdatesCompressor |
Definition at line 243 of file kis_canvas2.cpp.
| KisProofingConfigurationSP KisCanvas2::proofingConfig |
Definition at line 237 of file kis_canvas2.cpp.
| bool KisCanvas2::proofingConfigUpdated = false |
Definition at line 238 of file kis_canvas2.cpp.
| KisCanvas2* KisCanvas2::q = 0 |
Definition at line 216 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::referencesBoundsUpdateCompressor |
Definition at line 256 of file kis_canvas2.cpp.
| QRect KisCanvas2::regionOfInterest |
Definition at line 257 of file kis_canvas2.cpp.
| qreal KisCanvas2::regionOfInterestMargin = 0.25 |
Definition at line 258 of file kis_canvas2.cpp.
| KisSignalCompressor KisCanvas2::regionOfInterestUpdateCompressor |
Definition at line 255 of file kis_canvas2.cpp.
| QRect KisCanvas2::renderingLimit |
Definition at line 260 of file kis_canvas2.cpp.
| QRect KisCanvas2::savedCanvasProjectionUpdateRect |
Definition at line 232 of file kis_canvas2.cpp.
| QRect KisCanvas2::savedOverlayUpdateRect |
Definition at line 233 of file kis_canvas2.cpp.
| KoSelectedShapesProxy * KisCanvas2::selectedShapesProxy |
Definition at line 221 of file kis_canvas2.cpp.
| KoShapeManager * KisCanvas2::shapeManager |
Definition at line 220 of file kis_canvas2.cpp.
| KoToolProxy * KisCanvas2::toolProxy |
Definition at line 226 of file kis_canvas2.cpp.
| bool KisCanvas2::updateSceneRequested = false |
Definition at line 234 of file kis_canvas2.cpp.
Definition at line 218 of file kis_canvas2.cpp.