Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/ViewportParams.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
93 | 93 | | |||
94 | /** | 94 | /** | ||
95 | * @brief Change the radius of the planet | 95 | * @brief Change the radius of the planet | ||
96 | * @param radius Size of the planet radius in pixel. Non-positive values are ignored. | 96 | * @param radius Size of the planet radius in pixel. Non-positive values are ignored. | ||
97 | */ | 97 | */ | ||
98 | void setRadius(int radius); | 98 | void setRadius(int radius); | ||
99 | 99 | | |||
100 | void centerOn( qreal lon, qreal lat ); | 100 | void centerOn( qreal lon, qreal lat ); | ||
101 | void setHeading( qreal heading ); | ||||
101 | 102 | | |||
102 | Quaternion planetAxis() const; | 103 | Quaternion planetAxis() const; | ||
103 | const matrix &planetAxisMatrix() const; | 104 | const matrix &planetAxisMatrix() const; | ||
104 | 105 | | |||
105 | int width() const; | 106 | int width() const; | ||
106 | int height() const; | 107 | int height() const; | ||
107 | QSize size() const; | 108 | QSize size() const; | ||
108 | 109 | | |||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
181 | * @param unit the unit of the angles for lon and lat. | 182 | * @param unit the unit of the angles for lon and lat. | ||
182 | * @return @c true if the pixel (x, y) is within the globe | 183 | * @return @c true if the pixel (x, y) is within the globe | ||
183 | * @c false if the pixel (x, y) is outside the globe, i.e. in space. | 184 | * @c false if the pixel (x, y) is outside the globe, i.e. in space. | ||
184 | */ | 185 | */ | ||
185 | bool geoCoordinates( const int x, const int y, | 186 | bool geoCoordinates( const int x, const int y, | ||
186 | qreal &lon, qreal &lat, | 187 | qreal &lon, qreal &lat, | ||
187 | GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const; | 188 | GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const; | ||
188 | 189 | | |||
190 | qreal heading() const; | ||||
189 | bool mapCoversViewport() const; | 191 | bool mapCoversViewport() const; | ||
190 | 192 | | |||
191 | QPainterPath mapShape() const; | 193 | QPainterPath mapShape() const; | ||
192 | 194 | | |||
193 | QRegion mapRegion() const; | 195 | QRegion mapRegion() const; | ||
194 | 196 | | |||
195 | /** | 197 | /** | ||
196 | * @return The current point of focus, e.g. the point that is not moved | 198 | * @return The current point of focus, e.g. the point that is not moved | ||
Show All 27 Lines |