File indexing completed on 2024-04-14 03:48:47

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2009 Bastian Holst <bastianholst@gmx.de>
0004 //
0005 
0006 #include "GeoDataLatLonAltBox.h"
0007 #include "GeoDataLinearRing.h"
0008 #include "GeoPainter_p.h"
0009 #include "GeoPainter.h"
0010 #include "MarbleGlobal.h"
0011 #include "ViewportParams.h"
0012 
0013 #include <QList>
0014 #include <QTest>
0015 
0016 namespace Marble
0017 {
0018 
0019 class TestGeoPainter : public QObject
0020 {
0021     Q_OBJECT
0022 private Q_SLOTS:
0023     void createLinearRingFromGeoRectTest();
0024 };
0025 
0026 void TestGeoPainter::createLinearRingFromGeoRectTest()
0027 {
0028 //    GeoPainterPrivate painterp( new ViewportParams(), PrintQuality );
0029 //
0030 //    QList<GeoDataLatLonAltBox> list;
0031 //    list.append( GeoDataLatLonBox( 1.0, -1.0, 1.0, -1.0 ) );
0032 //    list.append( GeoDataLatLonBox( 1.5708, -1.5708, 3.04291, 3.03326 ) );
0033 //
0034 //    for( QList<GeoDataLatLonAltBox>::iterator it = list.begin(); it != list.end(); ++it ) {
0035 //        GeoDataLinearRing ring
0036 //                = painterp.createLinearRingFromGeoRect( (*it).center(),
0037 //                                                        (*it).width( GeoDataCoordinates::Degree ),
0038 //                                                        (*it).height( GeoDataCoordinates::Degree ) );
0039 //
0040 //        QCOMPARE( ring.latLonAltBox().toString(), (*it).toString() );
0041 //    }
0042 }
0043 
0044 }
0045 
0046 QTEST_MAIN( Marble::TestGeoPainter )
0047 
0048 #include "TestGeoPainter.moc"