Lines Matching refs:rect2

196   QgsRectangle rect1, rect2, rect3;  in manipulate()  local
198 rect2.set( 3.0, 3.0, 7.0, 1.0 ); in manipulate()
200 QVERIFY( rect2.intersects( rect1 ) ); in manipulate()
202 rect3 = rect2.intersect( rect1 ); in manipulate()
208 QVERIFY( rect2.contains( rect3 ) ); in manipulate()
209 QVERIFY( ! rect2.contains( rect1 ) ); in manipulate()
213 rect3.combineExtentWith( rect2 ); in manipulate()
233 QgsRectangle rect2; in regression6194() local
234 rect2.setXMinimum( 10.0 ); in regression6194()
235 rect2.setYMinimum( 20.0 ); in regression6194()
236 rect2.setXMaximum( 260.0 ); in regression6194()
237 rect2.setYMaximum( 520.0 ); in regression6194()
243 QVERIFY( rect2.xMinimum() == rect1.xMinimum() ); in regression6194()
244 QVERIFY( rect2.yMinimum() == rect1.yMinimum() ); in regression6194()
245 QVERIFY( rect2.xMaximum() == rect1.xMaximum() ); in regression6194()
246 QVERIFY( rect2.yMaximum() == rect1.yMaximum() ); in regression6194()
247 QVERIFY( rect1 == rect2 ); in regression6194()
254 QgsRectangle rect2 = rect1 + v; in operators() local
255 QVERIFY( rect1 != rect2 ); in operators()
256 QCOMPARE( rect2.height(), rect1.height() ); in operators()
257 QCOMPARE( rect2.width(), rect1.width() ); in operators()
258 QCOMPARE( rect2.xMinimum(), 11.0 ); in operators()
259 QCOMPARE( rect2.yMinimum(), 22.0 ); in operators()
261 rect2 -= rect2.center() - rect1.center(); in operators()
262 QVERIFY( rect1 == rect2 ); in operators()
264 rect2 += v * 2.5; in operators()
265 QCOMPARE( rect2.xMinimum(), 12.5 ); in operators()
266 QCOMPARE( rect2.yMinimum(), 25.0 ); in operators()
268 rect2 = rect1 - v; in operators()
269 QCOMPARE( rect2.xMinimum(), 9.0 ); in operators()
270 QCOMPARE( rect2.yMinimum(), 18.0 ); in operators()
271 QCOMPARE( rect2.height(), rect1.height() ); in operators()
272 QCOMPARE( rect2.width(), rect1.width() ); in operators()
285 const QgsRectangle rect2 = qvariant_cast<QgsRectangle>( var ); in asVariant() local
286 QCOMPARE( rect2.xMinimum(), rect1.xMinimum() ); in asVariant()
287 QCOMPARE( rect2.yMinimum(), rect1.yMinimum() ); in asVariant()
288 QCOMPARE( rect2.height(), rect1.height() ); in asVariant()
289 QCOMPARE( rect2.width(), rect1.width() ); in asVariant()
308 const QgsReferencedRectangle rect2 = qvariant_cast<QgsReferencedRectangle>( var ); in referenced() local
309 QCOMPARE( rect2.xMinimum(), rect1.xMinimum() ); in referenced()
310 QCOMPARE( rect2.yMinimum(), rect1.yMinimum() ); in referenced()
311 QCOMPARE( rect2.height(), rect1.height() ); in referenced()
312 QCOMPARE( rect2.width(), rect1.width() ); in referenced()
313 QCOMPARE( rect2.crs().authid(), QStringLiteral( "EPSG:28356" ) ); in referenced()
333 QgsRectangle rect2 = QgsRectangle( -110.0, -220.0, -10.0, -20.0 ); in grow() local
334 rect2.grow( 11 ); in grow()
335 QCOMPARE( rect2.xMinimum(), -121.0 ); in grow()
336 QCOMPARE( rect2.yMinimum(), -231.0 ); in grow()
337 QCOMPARE( rect2.xMaximum(), 1.0 ); in grow()
338 QCOMPARE( rect2.yMaximum(), -9.0 ); in grow()
414 const QgsRectangle rect2 = rect.buffered( 11 ); in buffered() local
415 QCOMPARE( rect2.xMinimum(), -121.0 ); in buffered()
416 QCOMPARE( rect2.yMinimum(), -231.0 ); in buffered()
417 QCOMPARE( rect2.xMaximum(), 1.0 ); in buffered()
418 QCOMPARE( rect2.yMaximum(), -9.0 ); in buffered()