/dports/graphics/qgis/qgis-3.22.3/src/core/geometry/ |
H A D | qgstriangle.cpp | 80 return ( ( vertexAt( 0 ) == other.vertexAt( 0 ) ) && in operator ==() 81 ( vertexAt( 1 ) == other.vertexAt( 1 ) ) && in operator ==() 82 ( vertexAt( 2 ) == other.vertexAt( 2 ) ) in operator ==() 473 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 0 ), vertexAt( 2 ), vertexAt( 1 ) ) … in altitudes() 474 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 1 ), vertexAt( 0 ), vertexAt( 2 ) ) … in altitudes() 475 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 2 ), vertexAt( 0 ), vertexAt( 1 ) ) … in altitudes() 533 p1 = QgsGeometryUtils::midpoint( vertexAt( 0 ), vertexAt( 1 ) ); in medial() 534 p2 = QgsGeometryUtils::midpoint( vertexAt( 1 ), vertexAt( 2 ) ); in medial() 556 QgsGeometryUtils::circleCenterRadius( vertexAt( 0 ), vertexAt( 1 ), vertexAt( 2 ), r, x, y ); in circumscribedCenter() 565 QgsGeometryUtils::circleCenterRadius( vertexAt( 0 ), vertexAt( 1 ), vertexAt( 2 ), r, x, y ); in circumscribedRadius() [all …]
|
H A D | qgsabstractgeometry.cpp | 212 return vertexAt( QgsVertexId( 0, 0, 0 ) ); in centroid() 218 const QgsPoint v0 = vertexAt( QgsVertexId( 0, 0, 0 ) ); in centroid() 220 if ( vertexAt( QgsVertexId( 0, 0, 0 ) ) != vertexAt( QgsVertexId( 0, 0, n - 1 ) ) ) in centroid() 227 QgsPoint vi = vertexAt( QgsVertexId( 0, 0, i ) ); in centroid() 228 QgsPoint vj = vertexAt( QgsVertexId( 0, 0, j ) ); in centroid() 244 const QgsPoint vi = vertexAt( QgsVertexId( 0, 0, i ) ); in centroid()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/geometry/ |
H A D | qgstriangle.cpp | 80 return ( ( vertexAt( 0 ) == other.vertexAt( 0 ) ) && in operator ==() 81 ( vertexAt( 1 ) == other.vertexAt( 1 ) ) && in operator ==() 82 ( vertexAt( 2 ) == other.vertexAt( 2 ) ) in operator ==() 477 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 0 ), vertexAt( 2 ), vertexAt( 1 ) ) … in altitudes() 478 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 1 ), vertexAt( 0 ), vertexAt( 2 ) ) … in altitudes() 479 …alt.append( QgsGeometryUtils::perpendicularSegment( vertexAt( 2 ), vertexAt( 0 ), vertexAt( 1 ) ) … in altitudes() 537 p1 = QgsGeometryUtils::midpoint( vertexAt( 0 ), vertexAt( 1 ) ); in medial() 538 p2 = QgsGeometryUtils::midpoint( vertexAt( 1 ), vertexAt( 2 ) ); in medial() 560 QgsGeometryUtils::circleCenterRadius( vertexAt( 0 ), vertexAt( 1 ), vertexAt( 2 ), r, x, y ); in circumscribedCenter() 569 QgsGeometryUtils::circleCenterRadius( vertexAt( 0 ), vertexAt( 1 ), vertexAt( 2 ), r, x, y ); in circumscribedRadius() [all …]
|
H A D | qgsabstractgeometry.cpp | 178 return vertexAt( QgsVertexId( 0, 0, 0 ) ); in centroid() 184 QgsPoint v0 = vertexAt( QgsVertexId( 0, 0, 0 ) ); in centroid() 186 if ( vertexAt( QgsVertexId( 0, 0, 0 ) ) != vertexAt( QgsVertexId( 0, 0, n - 1 ) ) ) in centroid() 193 QgsPoint vi = vertexAt( QgsVertexId( 0, 0, i ) ); in centroid() 194 QgsPoint vj = vertexAt( QgsVertexId( 0, 0, j ) ); in centroid() 210 QgsPoint vi = vertexAt( QgsVertexId( 0, 0, i ) ); in centroid()
|
/dports/graphics/qgis/qgis-3.22.3/tests/src/core/geometry/ |
H A D | testqgsellipse.cpp | 238 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 0 ) ), q.at( 0 ) ); in ellipse() 239 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 1 ) ), q.at( 1 ) ); in ellipse() 240 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 2 ) ), q.at( 2 ) ); in ellipse() 241 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 3 ) ), q.at( 3 ) ); in ellipse() 242 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 4 ) ), q.at( 0 ) ); in ellipse() 248 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 0 ) ), q.at( 0 ) ); in ellipse() 249 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 1 ) ), q.at( 1 ) ); in ellipse() 250 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 2 ) ), q.at( 2 ) ); in ellipse() 251 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 3 ) ), q.at( 3 ) ); in ellipse() 252 QCOMPARE( p1->vertexAt( QgsVertexId( 0, 0, 4 ) ), q.at( 0 ) ); in ellipse() [all …]
|
H A D | testqgstriangle.cpp | 48 void vertexAt(); 303 QCOMPARE( tr.vertexAt( 0 ).z(), 3.0 ); in exteriorRingZM() 304 QCOMPARE( tr.vertexAt( 1 ).z(), 13.0 ); in exteriorRingZM() 305 QCOMPARE( tr.vertexAt( 2 ).z(), 23.0 ); in exteriorRingZM() 320 QCOMPARE( tr.vertexAt( 0 ).m(), 4.0 ); in exteriorRingZM() 321 QCOMPARE( tr.vertexAt( 1 ).m(), 14.0 ); in exteriorRingZM() 322 QCOMPARE( tr.vertexAt( 2 ).m(), 24.0 ); in exteriorRingZM() 629 void TestQgsTriangle::vertexAt() in vertexAt() function in TestQgsTriangle 942 QgsTriangle( QgsGeometryUtils::midpoint( tr.vertexAt( 0 ), tr.vertexAt( 1 ) ), in medial() 943 QgsGeometryUtils::midpoint( tr.vertexAt( 1 ), tr.vertexAt( 2 ) ), in medial() [all …]
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/analysis/vector/geometry_checker/ |
H A D | qgsgeometryanglecheck.cpp | 48 …const QgsPoint &p1 = geom->vertexAt( QgsVertexId( iPart, iRing, ( iVert - 1 + nVerts ) % nVerts ) … in collectErrors() 49 const QgsPoint &p2 = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 50 … const QgsPoint &p3 = geom->vertexAt( QgsVertexId( iPart, iRing, ( iVert + 1 ) % nVerts ) ); in collectErrors() 101 …const QgsPoint &p1 = geometry->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex - 1 + n … in fixError() 102 const QgsPoint &p2 = geometry->vertexAt( vidx ); in fixError() 103 …const QgsPoint &p3 = geometry->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex + 1 ) % … in fixError()
|
H A D | qgsgeometrycheckerutils.cpp | 331 QgsPoint p1 = line->vertexAt( QgsVertexId( 0, 0, i ) ); in pointOnLine() 332 QgsPoint p2 = line->vertexAt( QgsVertexId( 0, 0, i + 1 ) ); in pointOnLine() 351 QgsPoint p1 = line1->vertexAt( QgsVertexId( 0, 0, i ) ); in lineIntersections() 352 QgsPoint p2 = line1->vertexAt( QgsVertexId( 0, 0, i + 1 ) ); in lineIntersections() 353 QgsPoint q1 = line2->vertexAt( QgsVertexId( 0, 0, j ) ); in lineIntersections() 354 QgsPoint q2 = line2->vertexAt( QgsVertexId( 0, 0, j + 1 ) ); in lineIntersections() 375 QgsPoint p1 = geom1->vertexAt( QgsVertexId( iPart1, iRing1, iVert1 ) ); in sharedEdgeLength() 376 QgsPoint p2 = geom1->vertexAt( QgsVertexId( iPart1, iRing1, jVert1 ) ); in sharedEdgeLength() 396 QgsPoint q1 = geom2->vertexAt( QgsVertexId( iPart2, iRing2, iVert2 ) ); in sharedEdgeLength() 397 QgsPoint q2 = geom2->vertexAt( QgsVertexId( iPart2, iRing2, jVert2 ) ); in sharedEdgeLength()
|
H A D | qgsgeometryselfcontactcheck.cpp | 31 …bool isClosed = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) == geom->vertexAt( QgsVertexId( i… in processGeometry() 37 ring.append( geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) ); in processGeometry() 40 QgsPoint p = geom->vertexAt( QgsVertexId( iPart, iRing, i ) ); in processGeometry()
|
H A D | qgsgeometryduplicatenodescheck.cpp | 40 QgsPoint pi = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 41 QgsPoint pj = geom->vertexAt( QgsVertexId( iPart, iRing, jVert ) ); in collectErrors() 74 …QgsPoint pi = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex + nVerts - 1 ) % nV… in fixError() 75 QgsPoint pj = geom->vertexAt( error->vidx() ); in fixError()
|
H A D | qgsgeometrysegmentlengthcheck.cpp | 46 QgsPoint pi = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 47 QgsPoint pj = geom->vertexAt( QgsVertexId( iPart, iRing, jVert ) ); in collectErrors() 90 QgsPoint pi = geom->vertexAt( error->vidx() ); in fixError() 91 …QgsPoint pj = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex - 1 + nVerts ) % nV… in fixError()
|
H A D | qgsgeometrycheckerutils.h | 233 QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); 234 QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); 270 QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); in canDeleteVertex() 271 QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); in canDeleteVertex()
|
H A D | qgsgeometryselfintersectioncheck.cpp | 102 QgsPoint p1 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, inter.segment1 ) ); in fixError() 103 QgsPoint q1 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, inter.segment2 ) ); in fixError() 104 …QgsPoint p2 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( inter.segment1 + 1 ) % nVerts )… in fixError() 105 …QgsPoint q2 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( inter.segment2 + 1 ) % nVerts )… in fixError() 129 ring1.append( geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, i ) ) ); in fixError() 139 ring2.append( geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, i ) ) ); in fixError()
|
H A D | qgsgeometrydanglecheck.cpp | 40 const QgsPoint &p1 = geom->vertexAt( QgsVertexId( iPart, 0, 0 ) ); in collectErrors() 41 const QgsPoint &p2 = geom->vertexAt( QgsVertexId( iPart, 0, nVerts - 1 ) ); in collectErrors()
|
/dports/graphics/qgis/qgis-3.22.3/src/analysis/vector/geometry_checker/ |
H A D | qgsgeometrycheckerutils.cpp | 331 const QgsPoint p1 = line->vertexAt( QgsVertexId( 0, 0, i ) ); in pointOnLine() 332 const QgsPoint p2 = line->vertexAt( QgsVertexId( 0, 0, i + 1 ) ); in pointOnLine() 351 const QgsPoint p1 = line1->vertexAt( QgsVertexId( 0, 0, i ) ); in lineIntersections() 352 const QgsPoint p2 = line1->vertexAt( QgsVertexId( 0, 0, i + 1 ) ); in lineIntersections() 353 const QgsPoint q1 = line2->vertexAt( QgsVertexId( 0, 0, j ) ); in lineIntersections() 354 const QgsPoint q2 = line2->vertexAt( QgsVertexId( 0, 0, j + 1 ) ); in lineIntersections() 375 const QgsPoint p1 = geom1->vertexAt( QgsVertexId( iPart1, iRing1, iVert1 ) ); in sharedEdgeLength() 376 const QgsPoint p2 = geom1->vertexAt( QgsVertexId( iPart1, iRing1, jVert1 ) ); in sharedEdgeLength() 396 const QgsPoint q1 = geom2->vertexAt( QgsVertexId( iPart2, iRing2, iVert2 ) ); in sharedEdgeLength() 397 const QgsPoint q2 = geom2->vertexAt( QgsVertexId( iPart2, iRing2, jVert2 ) ); in sharedEdgeLength()
|
H A D | qgsgeometryanglecheck.cpp | 48 …const QgsPoint &p1 = geom->vertexAt( QgsVertexId( iPart, iRing, ( iVert - 1 + nVerts ) % nVerts ) … in collectErrors() 49 const QgsPoint &p2 = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 50 … const QgsPoint &p3 = geom->vertexAt( QgsVertexId( iPart, iRing, ( iVert + 1 ) % nVerts ) ); in collectErrors() 101 …const QgsPoint &p1 = geometry->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex - 1 + n … in fixError() 102 const QgsPoint &p2 = geometry->vertexAt( vidx ); in fixError() 103 …const QgsPoint &p3 = geometry->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex + 1 ) % … in fixError()
|
H A D | qgsgeometryselfcontactcheck.cpp | 31 …const bool isClosed = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) == geom->vertexAt( QgsVerte… in processGeometry() 37 ring.append( geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) ); in processGeometry() 40 const QgsPoint p = geom->vertexAt( QgsVertexId( iPart, iRing, i ) ); in processGeometry()
|
H A D | qgsgeometrysegmentlengthcheck.cpp | 46 const QgsPoint pi = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 47 const QgsPoint pj = geom->vertexAt( QgsVertexId( iPart, iRing, jVert ) ); in collectErrors() 90 const QgsPoint pi = geom->vertexAt( error->vidx() ); in fixError() 91 …const QgsPoint pj = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex - 1 + nVerts … in fixError()
|
H A D | qgsgeometryduplicatenodescheck.cpp | 42 const QgsPoint pi = geom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in collectErrors() 43 const QgsPoint pj = geom->vertexAt( QgsVertexId( iPart, iRing, jVert ) ); in collectErrors() 76 …const QgsPoint pi = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( vidx.vertex + nVerts - 1 … in fixError() 77 const QgsPoint pj = geom->vertexAt( error->vidx() ); in fixError()
|
H A D | qgsgeometrycheckerutils.h | 233 const QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); 234 const QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); 270 const QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); in canDeleteVertex() 271 const QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); in canDeleteVertex()
|
H A D | qgsgeometryselfintersectioncheck.cpp | 102 const QgsPoint p1 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, inter.segment1 ) ); in fixError() 103 const QgsPoint q1 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, inter.segment2 ) ); in fixError() 104 …const QgsPoint p2 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( inter.segment1 + 1 ) % nV… in fixError() 105 …const QgsPoint q2 = geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, ( inter.segment2 + 1 ) % nV… in fixError() 129 ring1.append( geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, i ) ) ); in fixError() 139 ring2.append( geom->vertexAt( QgsVertexId( vidx.part, vidx.ring, i ) ) ); in fixError()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/app/vertextool/ |
H A D | qgsvertextool.cpp | 608 QgsPoint pt = g.vertexAt( i ); in cadCanvasReleaseEvent() 1778 QgsPointXY pt = geom.vertexAt( v.vertexId ); in buildDragBandsForVertices() 1788 geom.vertexAt( v0idx ), in buildDragBandsForVertices() 1790 geom.vertexAt( v1idx ), in buildDragBandsForVertices() 1814 geom.vertexAt( v0idx ), in buildDragBandsForVertices() 1938 QgsPointXY v0 = geom.vertexAt( m.vertexIndex() ); in startDraggingAddVertex() 2443 if ( geom.vertexAt( vertexId ) == QgsPoint() ) in deleteVertex() 2446 if ( geom.vertexAt( vertexId ) != QgsPoint() ) in deleteVertex() 2565 QgsPointXY pt = geom.vertexAt( newVertexId ); in highlightAdjacentVertex() 2799 if ( geom.vertexAt( startVertexIndex ) == geom.vertexAt( endVertexIndex ) ) in verticesInRange() [all …]
|
/dports/graphics/qgis/qgis-3.22.3/src/app/vertextool/ |
H A D | qgsvertextool.cpp | 1814 QgsPointXY pt = geom.vertexAt( v.vertexId ); in buildDragBandsForVertices() 1824 geom.vertexAt( v0idx ), in buildDragBandsForVertices() 1826 geom.vertexAt( v1idx ), in buildDragBandsForVertices() 1850 geom.vertexAt( v0idx ), in buildDragBandsForVertices() 1865 geom.vertexAt( v0idx ), in buildDragBandsForVertices() 1974 QgsPointXY v0 = geom.vertexAt( m.vertexIndex() ); in startDraggingAddVertex() 2586 if ( geom.vertexAt( vertexId ) == QgsPoint() ) in deleteVertex() 2589 if ( geom.vertexAt( vertexId ) != QgsPoint() ) in deleteVertex() 2780 QgsPointXY pt = geom.vertexAt( newVertexId ); in highlightAdjacentVertex() 3030 if ( geom.vertexAt( startVertexIndex ) == geom.vertexAt( endVertexIndex ) ) in verticesInRange() [all …]
|
/dports/graphics/qgis/qgis-3.22.3/src/analysis/vector/ |
H A D | qgsgeometrysnapper.cpp | 439 const QgsPoint p = subjGeom->vertexAt( vidx ); in snapGeometry() 532 const QgsPoint point = refGeom.constGet()->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in snapGeometry() 579 …const bool ringIsClosed = subjGeom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) == subjGeom->vertex… in snapGeometry() 584 const QgsPoint pMid = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in snapGeometry() 585 const QgsPoint pPrev = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iPrev ) ); in snapGeometry() 586 const QgsPoint pNext = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iNext ) ); in snapGeometry() 621 const QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); in polyLineSize() 622 const QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); in polyLineSize()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/analysis/vector/ |
H A D | qgsgeometrysnapper.cpp | 546 QgsPoint p = subjGeom->vertexAt( vidx ); in snapGeometry() 640 QgsPoint point = refGeom.constGet()->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in snapGeometry() 684 …bool ringIsClosed = subjGeom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ) == subjGeom->vertexAt( Qg… in snapGeometry() 689 QgsPoint pMid = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iVert ) ); in snapGeometry() 690 QgsPoint pPrev = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iPrev ) ); in snapGeometry() 691 QgsPoint pNext = subjGeom->vertexAt( QgsVertexId( iPart, iRing, iNext ) ); in snapGeometry() 726 QgsPoint front = geom->vertexAt( QgsVertexId( iPart, iRing, 0 ) ); in polyLineSize() 727 QgsPoint back = geom->vertexAt( QgsVertexId( iPart, iRing, nVerts - 1 ) ); in polyLineSize()
|