Home
last modified time | relevance | path

Searched refs:mapToPixel (Results 1 – 25 of 172) sorted by relevance

1234567

/dports/graphics/qgis/qgis-3.22.3/src/core/raster/
H A Dqgsrasterlayerrenderer.cpp77 QgsMapToPixel mapToPixel = rendererContext.mapToPixel(); in QgsRasterLayerRenderer() local
78 if ( rendererContext.mapToPixel().mapRotation() ) in QgsRasterLayerRenderer()
84 const QgsPointXY center = mapToPixel.toMapCoordinates( in QgsRasterLayerRenderer()
85 static_cast<int>( mapToPixel.mapWidth() / 2.0 ), in QgsRasterLayerRenderer()
86 static_cast<int>( mapToPixel.mapHeight() / 2.0 ) in QgsRasterLayerRenderer()
88 mapToPixel.setMapRotation( 0, center.x(), center.y() ); in QgsRasterLayerRenderer()
180 …mRasterViewPort->mTopLeftPoint = mapToPixel.transform( myRasterExtent.xMinimum(), myRasterExtent.y… in QgsRasterLayerRenderer()
195 mapToPixel.toMapCoordinates( mRasterViewPort->mTopLeftPoint.x(), in QgsRasterLayerRenderer()
197 mapToPixel.toMapCoordinates( mRasterViewPort->mBottomRightPoint.x(), in QgsRasterLayerRenderer()
223 …QgsDebugMsgLevel( QStringLiteral( "mapUnitsPerPixel = %1" ).arg( mapToPixel.mapUnitsPerPixel() ), … in QgsRasterLayerRenderer()
[all …]
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/raster/
H A Dqgsrasterlayerrenderer.cpp71 QgsMapToPixel mapToPixel = rendererContext.mapToPixel(); in QgsRasterLayerRenderer() local
72 if ( rendererContext.mapToPixel().mapRotation() ) in QgsRasterLayerRenderer()
78 QgsPointXY center = mapToPixel.toMapCoordinates( in QgsRasterLayerRenderer()
79 static_cast<int>( mapToPixel.mapWidth() / 2.0 ), in QgsRasterLayerRenderer()
80 static_cast<int>( mapToPixel.mapHeight() / 2.0 ) in QgsRasterLayerRenderer()
82 mapToPixel.setMapRotation( 0, center.x(), center.y() ); in QgsRasterLayerRenderer()
174 …mRasterViewPort->mTopLeftPoint = mapToPixel.transform( myRasterExtent.xMinimum(), myRasterExtent.y… in QgsRasterLayerRenderer()
189 mapToPixel.toMapCoordinates( mRasterViewPort->mTopLeftPoint.x(), in QgsRasterLayerRenderer()
191 mapToPixel.toMapCoordinates( mRasterViewPort->mBottomRightPoint.x(), in QgsRasterLayerRenderer()
203 …QgsDebugMsgLevel( QStringLiteral( "mapUnitsPerPixel = %1" ).arg( mapToPixel.mapUnitsPerPixel() ), … in QgsRasterLayerRenderer()
[all …]
/dports/graphics/qgis-ltr/qgis-3.16.16/tests/src/app/
H A Dtestqgsmaptoollabel.cpp103 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
136 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
145 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
162 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
171 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
181 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
191 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
200 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
208 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
220 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
[all …]
H A Dtestqgsmaptooltrimextendfeature.cpp210 pt = tool->canvas()->mapSettings().mapToPixel().transform( 0, 0 ); in testPolygon()
226 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1.5 ); in testPolygon()
274 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
319 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
335 pt = tool->canvas()->mapSettings().mapToPixel().transform( 14, 1 ); in testMultiLine()
368 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
384 pt = tool->canvas()->mapSettings().mapToPixel().transform( 14, -1 ); in testMultiLine()
427 pt = tool->canvas()->mapSettings().mapToPixel().transform( 0, 5 ); in testLineZ()
443 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 5 ); in testLineZ()
486 pt = tool->canvas()->mapSettings().mapToPixel().transform( 30, 15 ); in testTopologicalPoints()
[all …]
/dports/graphics/qgis/qgis-3.22.3/src/core/pointcloud/
H A Dqgspointcloudrenderer.cpp223 const double mapUnitsPerPixel = renderContext.mapToPixel().mapUnitsPerPixel(); in identify()
238 …const double toleranceInPixels = toleranceForPointIdentification / renderContext.mapToPixel().mapU… in identify()
244 const QgsPointXY deviceCoords = renderContext.mapToPixel().transform( QgsPointXY( x, y ) ); in identify()
247 …const QgsPointXY point1MapCoords = renderContext.mapToPixel().toMapCoordinates( point1.x(), point1… in identify()
248 …const QgsPointXY point2MapCoords = renderContext.mapToPixel().toMapCoordinates( point2.x(), point2… in identify()
256 const QgsPointXY deviceCoords = renderContext.mapToPixel().transform( centerMapCoords ); in identify()
259 …const QgsPointXY point1MapCoords = renderContext.mapToPixel().toMapCoordinates( point1.x(), point1… in identify()
260 …const QgsPointXY point2MapCoords = renderContext.mapToPixel().toMapCoordinates( point2.x(), point2… in identify()
/dports/graphics/qgis/qgis-3.22.3/tests/src/app/
H A Dtestqgsmaptooltrimextendfeature.cpp210 pt = tool->canvas()->mapSettings().mapToPixel().transform( 0, 0 ); in testPolygon()
226 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1.5 ); in testPolygon()
274 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
319 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
335 pt = tool->canvas()->mapSettings().mapToPixel().transform( 14, 1 ); in testMultiLine()
368 pt = tool->canvas()->mapSettings().mapToPixel().transform( 12, 0 ); in testMultiLine()
384 pt = tool->canvas()->mapSettings().mapToPixel().transform( 14, -1 ); in testMultiLine()
427 pt = tool->canvas()->mapSettings().mapToPixel().transform( 0, 5 ); in testLineZ()
443 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 5 ); in testLineZ()
486 pt = tool->canvas()->mapSettings().mapToPixel().transform( 30, 15 ); in testTopologicalPoints()
[all …]
H A Dtestqgsmaptoollabel.cpp104 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
137 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
146 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
163 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
172 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
182 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
192 pt = tool->canvas()->mapSettings().mapToPixel().transform( 1, 1 ); in testSelectLabel()
201 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
209 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 1 ); in testSelectLabel()
221 pt = tool->canvas()->mapSettings().mapToPixel().transform( 3, 3 ); in testSelectLabel()
[all …]
/dports/graphics/qgis/qgis-3.22.3/src/core/annotations/
H A Dqgsannotationmarkeritem.cpp54 context.mapToPixel().transformInPlace( pt.rx(), pt.ry() ); in render()
183 context.mapToPixel().transformInPlace( pt.rx(), pt.ry() ); in boundingBox()
189 …const QgsPointXY topLeft = context.mapToPixel().toMapCoordinates( boundsInPixels.left(), boundsInP… in boundingBox()
190 …const QgsPointXY topRight = context.mapToPixel().toMapCoordinates( boundsInPixels.right(), boundsI… in boundingBox()
191 …const QgsPointXY bottomLeft = context.mapToPixel().toMapCoordinates( boundsInPixels.left(), bounds… in boundingBox()
192 …const QgsPointXY bottomRight = context.mapToPixel().toMapCoordinates( boundsInPixels.right(), boun… in boundingBox()
/dports/graphics/qgis/qgis-3.22.3/src/core/mesh/
H A Dqgsmeshlayerinterpolator.cpp136 …QgsMeshLayerUtils::boundingBoxToScreenRectangle( mContext.mapToPixel(), mOutputSize, bbox, leftLim… in block()
157 const QgsPointXY p = mContext.mapToPixel().toMapCoordinates( k, j ); in block()
213 const QgsMapToPixel mapToPixel( mapUnitsPerPixel, in exportRasterBlock() local
223 renderContext.setMapToPixel( mapToPixel ); in exportRasterBlock()
275 const QgsMapToPixel mapToPixel( mapUnitsPerPixel, in exportRasterBlock() local
284 renderContext.setMapToPixel( mapToPixel ); in exportRasterBlock()
H A Dqgsmeshlayerrenderer.cpp89 …const double triangleSize = simplificationSettings.meshResolution() * context.mapToPixel().mapUnit… in copyTriangularMeshes()
109 const QgsMapToPixel mapToPixel = context.mapToPixel(); in calculateOutputSize() local
110 …const QgsRectangle screenBBox = QgsMeshLayerUtils::boundingBoxToScreenRectangle( mapToPixel, exten… in calculateOutputSize()
403 const QgsPointXY lineStart = context.mapToPixel().transform( startVertex.x(), startVertex.y() ); in renderEdgeMesh()
404 const QgsPointXY lineEnd = context.mapToPixel().transform( endVertex.x(), endVertex.y() ); in renderEdgeMesh()
451 … const QgsPointXY lineStart = context.mapToPixel().transform( startVertex.x(), startVertex.y() ); in renderFaceMesh()
452 const QgsPointXY lineEnd = context.mapToPixel().transform( endVertex.x(), endVertex.y() ); in renderFaceMesh()
/dports/graphics/qgis/qgis-3.22.3/src/gui/
H A Dqgsmapmouseevent.cpp26 …, mOriginalMapPoint( mapCanvas ? mapCanvas->mapSettings().mapToPixel().toMapCoordinates( event->po… in QgsMapMouseEvent()
36 …, mOriginalMapPoint( mapCanvas ? mapCanvas->mapSettings().mapToPixel().toMapCoordinates( pos ) : Q… in QgsMapMouseEvent()
102 mMapCanvas->mapSettings().mapToPixel().transformInPlace( x, y ); in mapToPixelCoordinates()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/gui/
H A Dqgsmapmouseevent.cpp26 …, mOriginalMapPoint( mapCanvas ? mapCanvas->mapSettings().mapToPixel().toMapCoordinates( event->po… in QgsMapMouseEvent()
36 …, mOriginalMapPoint( mapCanvas ? mapCanvas->mapSettings().mapToPixel().toMapCoordinates( pos ) : Q… in QgsMapMouseEvent()
102 mMapCanvas->mapSettings().mapToPixel().transformInPlace( x, y ); in mapToPixelCoordinates()
/dports/graphics/qgis/qgis-3.22.3/src/core/symbology/
H A Dqgsgeometrygeneratorsymbollayer.cpp425 QTransform mapToPixel = context.renderContext().mapToPixel().transform(); in render() local
426 result.transform( mapToPixel.inverted() ); in render()
461 const QTransform mapToPixel = context.renderContext().mapToPixel().transform(); in render() local
462 transformed.transform( mapToPixel ); in render()
469 result.transform( mapToPixel.inverted() ); in render()
/dports/graphics/qgis/qgis-3.22.3/src/core/maprenderer/
H A Dqgsmaprenderercache.cpp129 QgsMapToPixel mapToPixel = mMtp; in setCacheImage() local
132 setCacheImageWithParameters( cacheKey, image, extent, mapToPixel, dependentLayers ); in setCacheImage()
135 … const QImage &image, const QgsRectangle &extent, const QgsMapToPixel &mapToPixel, const QList<Qgs… in setCacheImageWithParameters() argument
139 if ( extent != mExtent || mapToPixel != mMtp ) in setCacheImageWithParameters()
155 params.cachedMtp = mapToPixel; in setCacheImageWithParameters()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/mesh/
H A Dqgsmeshlayerrenderer.cpp83 …double triangleSize = simplificationSettings.meshResolution() * context.mapToPixel().mapUnitsPerPi… in copyTriangularMeshes()
103 const QgsMapToPixel mapToPixel = context.mapToPixel(); in calculateOutputSize() local
104 …const QgsRectangle screenBBox = QgsMeshLayerUtils::boundingBoxToScreenRectangle( mapToPixel, exten… in calculateOutputSize()
390 const QgsPointXY lineStart = context.mapToPixel().transform( startVertex.x(), startVertex.y() ); in renderEdgeMesh()
391 const QgsPointXY lineEnd = context.mapToPixel().transform( endVertex.x(), endVertex.y() ); in renderEdgeMesh()
435 … const QgsPointXY lineStart = context.mapToPixel().transform( startVertex.x(), startVertex.y() ); in renderFaceMesh()
436 const QgsPointXY lineEnd = context.mapToPixel().transform( endVertex.x(), endVertex.y() ); in renderFaceMesh()
H A Dqgsmeshlayerinterpolator.cpp132 …QgsMeshLayerUtils::boundingBoxToScreenRectangle( mContext.mapToPixel(), mOutputSize, bbox, leftLim… in block()
153 const QgsPointXY p = mContext.mapToPixel().toMapCoordinates( k, j ); in block()
209 QgsMapToPixel mapToPixel( mapUnitsPerPixel, in exportRasterBlock() local
219 renderContext.setMapToPixel( mapToPixel ); in exportRasterBlock()
/dports/graphics/qgis/qgis-3.22.3/python/plugins/processing/algs/qgis/
H A DPointsFromLines.py117 (x1, y1) = raster.mapToPixel(p1.x(), p1.y(),
119 (x2, y2) = raster.mapToPixel(p2.x(), p2.y(),
130 (x1, y1) = raster.mapToPixel(p1.x(), p1.y(), geoTransform)
131 (x2, y2) = raster.mapToPixel(p2.x(), p2.y(), geoTransform)
/dports/graphics/qgis-ltr/qgis-3.16.16/python/plugins/processing/algs/qgis/
H A DPointsFromLines.py117 (x1, y1) = raster.mapToPixel(p1.x(), p1.y(),
119 (x2, y2) = raster.mapToPixel(p2.x(), p2.y(),
130 (x1, y1) = raster.mapToPixel(p1.x(), p1.y(), geoTransform)
131 (x2, y2) = raster.mapToPixel(p2.x(), p2.y(), geoTransform)
/dports/graphics/qgis-ltr/qgis-3.16.16/src/quickgui/
H A Dqgsquickidentifykit.cpp56 …QgsPointXY mapPoint = mMapSettings->mapSettings().mapToPixel().toMapCoordinates( point.toPoint() ); in identify()
99 QgsPointXY mapPoint = mapSettings.mapToPixel().toMapCoordinates( point.toPoint() ); in _closestFeature()
243 return mSearchRadiusMm * context.scaleFactor() * context.mapToPixel().mapUnitsPerPixel(); in searchRadiusMU()
/dports/graphics/qgis/qgis-3.22.3/src/core/vector/
H A Dqgsvectorlayerdiagramprovider.cpp107 QgsMapToPixel xform = context.mapToPixel(); in drawLabel()
110 const QgsMapToPixel &xform = context.mapToPixel(); in drawLabel()
334 QgsPointXY ptZero = mapSettings.mapToPixel().toMapCoordinates( 0, 0 ); in registerDiagram()
335 QgsPointXY ptOne = mapSettings.mapToPixel().toMapCoordinates( 1, 0 ); in registerDiagram()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/
H A Dqgsvectorlayerdiagramprovider.cpp105 QgsMapToPixel xform = context.mapToPixel(); in drawLabel()
108 const QgsMapToPixel &xform = context.mapToPixel(); in drawLabel()
332 QgsPointXY ptZero = mapSettings.mapToPixel().toMapCoordinates( 0, 0 ); in registerDiagram()
333 QgsPointXY ptOne = mapSettings.mapToPixel().toMapCoordinates( 1, 0 ); in registerDiagram()
H A Dqgsmapclippingutils.cpp174 result.mapToPixel( context.mapToPixel() ); in calculatePainterClipRegion()
/dports/graphics/qgis/qgis-3.22.3/src/app/
H A Dqgspointmarkeritem.cpp144 …const QgsRectangle r( mMapCanvas->mapSettings().mapToPixel().toMapCoordinates( static_cast<int>( b… in updateSize()
146 …mMapCanvas->mapSettings().mapToPixel().toMapCoordinates( static_cast<int>( bounds.x() + bounds.wid… in updateSize()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/app/
H A Dqgspointmarkeritem.cpp139 …QgsRectangle r( mMapCanvas->mapSettings().mapToPixel().toMapCoordinates( static_cast<int>( bounds.… in updateSize()
141 …mMapCanvas->mapSettings().mapToPixel().toMapCoordinates( static_cast<int>( bounds.x() + bounds.wid… in updateSize()
/dports/graphics/qgis/qgis-3.22.3/src/core/
H A Dqgsmapclippingutils.cpp176 result.mapToPixel( context.mapToPixel() ); in calculatePainterClipRegion()

1234567