Warning, /education/marble/src/bindings/python/sip/ViewportParams.sip is written in an unsupported language. File is not indexed.

0001 //
0002 // Copyright 2008 Simon Edwards <simon@simonzone.com>
0003 // 
0004 // This library is free software; you can redistribute it and/or
0005 // modify it under the terms of the GNU Lesser General Public
0006 // License as published by the Free Software Foundation; either 
0007 // version 2.1 of the License, or (at your option) any later version.
0008 // 
0009 // This library is distributed in the hope that it will be useful,
0010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012 // Lesser General Public License for more details.
0013 // 
0014 // You should have received a copy of the GNU Lesser General Public 
0015 // License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0016 //
0017 
0018 namespace Marble
0019 {
0020 
0021 class ViewportParams
0022 {
0023 %TypeHeaderCode
0024 #include <ViewportParams.h>
0025 %End
0026 
0027 public:
0028                             ViewportParams ();
0029     Marble::Projection      projection () const;
0030 //ig    Marble::AbstractProjection*  currentProjection () const;
0031     void                    setProjection (Marble::Projection newProjection);
0032     int                     polarity () const;
0033     Marble::GeoDataLatLonAltBox  viewLatLonAltBox () const;
0034     qreal                   angularResolution () const;
0035     bool                    resolves (const Marble::GeoDataLatLonBox& latLonBox) const;
0036     bool                    resolves (const Marble::GeoDataCoordinates& coord1, const Marble::GeoDataCoordinates& coord2) const;
0037     int                     radius () const;
0038     void                    setRadius (int radius);
0039     Marble::Quaternion      planetAxis () const;
0040     int                     width () const;
0041     int                     height () const;
0042     QSize                   size () const;
0043     void                    setWidth (int newWidth);
0044     void                    setHeight (int newHeight);
0045     void                    setSize (QSize newSize);
0046     bool                    mapCoversViewport () const;
0047 
0048     ~ViewportParams ();
0049     bool                    resolves (const Marble::GeoDataLatLonAltBox& latLonAltBox) const;
0050 //ig    Marble::matrix*         planetAxisMatrix () const;
0051 private:
0052 //force
0053                             ViewportParams (const Marble::ViewportParams&);
0054 //end
0055 public:
0056     Marble::GeoDataCoordinates  focusPoint () const;
0057     void                    setFocusPoint (const Marble::GeoDataCoordinates& focusPoint);
0058     void                    resetFocusPoint ();
0059     void                    centerOn (qreal lon, qreal lat);
0060     qreal                   centerLongitude () const;
0061     qreal                   centerLatitude () const;
0062     Marble::GeoDataLatLonAltBox  latLonAltBox (const QRect& screenRect) const;
0063     void                    centerCoordinates (qreal& centerLon, qreal& centerLat) const;
0064     bool                    screenCoordinates (const qreal lon, const qreal lat, qreal& x, qreal& y) const;
0065     bool                    screenCoordinates (const Marble::GeoDataCoordinates& geopoint, qreal& x, qreal& y, bool& globeHidesPoint) const;
0066 //    bool                    screenCoordinates (const Marble::GeoDataCoordinates& geopoint, qreal& x, qreal& y) const;
0067     bool                    screenCoordinates (const Marble::GeoDataCoordinates& geopoint, QPointF& screenpoint) const;
0068 //    bool                    screenCoordinates (const Marble::GeoDataCoordinates& coordinates, qreal* x, qreal& y, int& pointRepeatNum, bool& globeHidesPoint) const;
0069 //    bool                    screenCoordinates (const Marble::GeoDataCoordinates& coordinates, qreal* x, qreal& y, int& pointRepeatNum, const QSizeF& size, bool& globeHidesPoint) const;
0070 //    bool                    screenCoordinates (const Marble::GeoDataLineString& lineString, QVector<QPolygonF*>& polygons) const;
0071     bool                    geoCoordinates (const int x, const int y, qreal& lon, qreal& lat, Marble::GeoDataCoordinates::Unit unit = Marble::GeoDataCoordinates::Degree) const;
0072     QPainterPath            mapShape () const;
0073     QRegion                 mapRegion () const;
0074 
0075 //ig    bool                    screenCoordinates (const Marble::GeoDataCoordinates& geopoint, qreal& x, qreal& y) const;
0076 //ig    bool                    screenCoordinates (const Marble::GeoDataCoordinates& coordinates, qreal* x, qreal& y, int& pointRepeatNum, bool& globeHidesPoint) const;
0077     bool                    screenCoordinates (const Marble::GeoDataCoordinates& coordinates, qreal* x, qreal& y, int& pointRepeatNum, const QSizeF& size, bool& globeHidesPoint) const;
0078 //ig    bool                    screenCoordinates (const Marble::GeoDataLineString& lineString, QVector<QPolygonF*>& polygons) const;
0079     explicit                ViewportParams (Marble::Projection projection, qreal centerLongitude = 0, qreal centerLatatitude = 0, int radius = 2000, const QSize& size = QSize(100,100));
0080 };
0081 // ViewportParams
0082 
0083 };
0084 // Marble
0085 
0086