Warning, /education/marble/src/bindings/python/sip/AbstractProjection.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2010 Simon Edwards <simon@simonzone.com> 0002 0003 // Generated by twine2 0004 0005 // This program is free software; you can redistribute it and/or modify 0006 // it under the terms of the GNU Library General Public License as 0007 // published by the Free Software Foundation; either version 2, or 0008 // (at your option) any later version. 0009 0010 // This program is distributed in the hope that it will be useful, 0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 // GNU General Public License for more details 0014 0015 // You should have received a copy of the GNU Library General Public 0016 // License along with this program; if not, write to the 0017 // Free Software Foundation, Inc., 0018 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0019 0020 namespace Marble 0021 { 0022 const int tessellationPrecision; 0023 const int latLonAltBoxSamplingRate; 0024 class AbstractProjection /Abstract/ 0025 { 0026 %TypeHeaderCode 0027 #include <AbstractProjection.h> 0028 %End 0029 0030 public: 0031 enum SurfaceType 0032 { 0033 Cylindrical, 0034 Pseudocylindrical, 0035 Hybrid, 0036 Conical, 0037 Pseudoconical, 0038 Azimuthal 0039 }; 0040 enum PreservationType 0041 { 0042 NoPreservation, 0043 Conformal, 0044 EqualArea 0045 }; 0046 AbstractProjection (); 0047 virtual ~AbstractProjection (); 0048 virtual qreal maxValidLat () const; 0049 qreal maxLat () const; 0050 void setMaxLat (qreal maxLat); 0051 virtual qreal minValidLat () const; 0052 qreal minLat () const; 0053 void setMinLat (qreal minLat); 0054 virtual bool repeatableX () const; 0055 bool repeatX () const; 0056 void setRepeatX (bool repeatX); 0057 virtual bool traversablePoles () const; 0058 virtual bool traversableDateLine () const; 0059 virtual Marble::AbstractProjection::SurfaceType surfaceType () const=0; 0060 virtual Marble::AbstractProjection::PreservationType preservationType () const; 0061 virtual bool isOrientedNormal () const; 0062 virtual bool mapCoversViewport (const Marble::ViewportParams* viewport) const=0; 0063 virtual QPainterPath mapShape (const Marble::ViewportParams* viewport) const=0; 0064 QRegion mapRegion (const Marble::ViewportParams* viewport) const; 0065 virtual bool screenCoordinates (const qreal lon, const qreal lat, const Marble::ViewportParams* viewport, qreal& x, qreal& y) const=0; 0066 virtual bool screenCoordinates (const Marble::GeoDataCoordinates& geopoint, const Marble::ViewportParams* viewport, qreal& x, qreal& y, bool& globeHidesPoint) const=0; 0067 //ig bool screenCoordinates (const Marble::GeoDataCoordinates& geopoint, const Marble::ViewportParams* viewport, qreal& x, qreal& y) const; 0068 bool screenCoordinates (const Marble::GeoDataCoordinates& geopoint, const Marble::ViewportParams* viewport, QPointF& screenpoint) const; 0069 //ig bool screenCoordinates (const Marble::GeoDataCoordinates& coordinates, const Marble::ViewportParams* viewport, qreal* x, qreal& y, int& pointRepeatNum, bool& globeHidesPoint) const; 0070 virtual bool screenCoordinates (const Marble::GeoDataCoordinates& coordinates, const Marble::ViewportParams* viewport, qreal* x, qreal& y, int& pointRepeatNum, const QSizeF& size, bool& globeHidesPoint) const=0; 0071 //ig bool screenCoordinates (const Marble::GeoDataLineString& lineString, const Marble::ViewportParams* viewport, QVector<QPolygonF*>& polygons) const; 0072 virtual bool geoCoordinates (const int x, const int y, const Marble::ViewportParams* viewport, qreal& lon, qreal& lat, Marble::GeoDataCoordinates::Unit unit = Marble::GeoDataCoordinates::Degree) const=0; 0073 virtual Marble::GeoDataLatLonAltBox latLonAltBox (const QRect& screenRect, const Marble::ViewportParams* viewport) const; 0074 protected: 0075 //ig AbstractProjection (AbstractProjectionPrivate* dd); 0076 }; 0077 };