• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • SphericalProjection
Public Member Functions | Protected Member Functions | List of all members
Marble::SphericalProjection Class Reference

#include <SphericalProjection.h>

Inheritance diagram for Marble::SphericalProjection:
Inheritance graph
[legend]

Public Member Functions

 SphericalProjection ()
 
virtual ~SphericalProjection ()
 
bool geoCoordinates (const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const
 
GeoDataLatLonAltBox latLonAltBox (const QRect &screenRect, const ViewportParams *viewport) const
 
bool mapCoversViewport (const ViewportParams *viewport) const
 
virtual QPainterPath mapShape (const ViewportParams *viewport) const
 
virtual qreal maxValidLat () const
 
virtual qreal minValidLat () const
 
virtual PreservationType preservationType () const
 
virtual bool repeatableX () const
 
virtual bool screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *params, qreal &x, qreal &y, bool &globeHidesPoint) const
 
virtual bool screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *viewport, qreal *x, qreal &y, int &pointRepeatNum, const QSizeF &size, bool &globeHidesPoint) const
 
virtual bool screenCoordinates (const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
 
virtual SurfaceType surfaceType () const
 
virtual bool traversableDateLine () const
 
virtual bool traversablePoles () const
 
- Public Member Functions inherited from Marble::AbstractProjection
 AbstractProjection ()
 
virtual ~AbstractProjection ()
 
virtual bool isOrientedNormal () const
 
QRegion mapRegion (const ViewportParams *viewport) const
 
qreal maxLat () const
 
qreal minLat () const
 
bool screenCoordinates (const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const
 
bool screenCoordinates (const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y) const
 
void setMaxLat (qreal maxLat)
 
void setMinLat (qreal minLat)
 

Protected Member Functions

 SphericalProjection (SphericalProjectionPrivate *dd)
 
- Protected Member Functions inherited from Marble::AbstractProjection
 AbstractProjection (AbstractProjectionPrivate *dd)
 

Additional Inherited Members

- Public Types inherited from Marble::AbstractProjection
enum  PreservationType { NoPreservation, Conformal, EqualArea }
 
enum  SurfaceType {
  Cylindrical, Pseudocylindrical, Hybrid, Conical,
  Pseudoconical, Azimuthal
}
 
- Protected Attributes inherited from Marble::AbstractProjection
const QScopedPointer
< AbstractProjectionPrivate > 
d_ptr
 

Detailed Description

A class to implement the spherical projection used by the "Globe" view.

Definition at line 36 of file SphericalProjection.h.

Constructor & Destructor Documentation

Marble::SphericalProjection::SphericalProjection ( )

Construct a new SphericalProjection.

Definition at line 94 of file SphericalProjection.cpp.

Marble::SphericalProjection::~SphericalProjection ( )
virtual

Definition at line 108 of file SphericalProjection.cpp.

Marble::SphericalProjection::SphericalProjection ( SphericalProjectionPrivate *  dd)
protected

Definition at line 101 of file SphericalProjection.cpp.

Member Function Documentation

bool Marble::SphericalProjection::geoCoordinates ( const int  x,
const int  y,
const ViewportParams *  params,
qreal &  lon,
qreal &  lat,
GeoDataCoordinates::Unit  unit = GeoDataCoordinates::Degree 
) const
virtual

Get the earth coordinates corresponding to a pixel in the map.

Parameters
xthe x coordinate of the pixel
ythe y coordinate of the pixel
lonthe longitude angle is returned through this parameter
latthe latitude angle is returned through this parameter
Returns
true if the pixel (x, y) is within the globe false if the pixel (x, y) is outside the globe, i.e. in space.

Implements Marble::AbstractProjection.

Definition at line 207 of file SphericalProjection.cpp.

GeoDataLatLonAltBox Marble::SphericalProjection::latLonAltBox ( const QRect &  screenRect,
const ViewportParams *  viewport 
) const
virtual

Reimplemented from Marble::AbstractProjection.

Definition at line 235 of file SphericalProjection.cpp.

bool Marble::SphericalProjection::mapCoversViewport ( const ViewportParams *  viewport) const
virtual

Implements Marble::AbstractProjection.

Definition at line 296 of file SphericalProjection.cpp.

QPainterPath Marble::SphericalProjection::mapShape ( const ViewportParams *  viewport) const
virtual

Implements Marble::AbstractProjection.

Definition at line 315 of file SphericalProjection.cpp.

qreal Marble::SphericalProjection::maxValidLat ( ) const
virtual

Reimplemented from Marble::AbstractProjection.

Definition at line 125 of file SphericalProjection.cpp.

qreal Marble::SphericalProjection::minValidLat ( ) const
virtual

Reimplemented from Marble::AbstractProjection.

Definition at line 130 of file SphericalProjection.cpp.

virtual PreservationType Marble::SphericalProjection::preservationType ( ) const
inlinevirtual

Reimplemented from Marble::AbstractProjection.

Definition at line 57 of file SphericalProjection.h.

bool Marble::SphericalProjection::repeatableX ( ) const
virtual

Reimplemented from Marble::AbstractProjection.

Definition at line 120 of file SphericalProjection.cpp.

bool Marble::SphericalProjection::screenCoordinates ( const GeoDataCoordinates &  coordinates,
const ViewportParams *  params,
qreal &  x,
qreal &  y,
bool &  globeHidesPoint 
) const
virtual

Get the screen coordinates corresponding to geographical coordinates in the map.

Parameters
lonthe lon coordinate of the requested pixel position
latthe lat coordinate of the requested pixel position
xthe x coordinate of the pixel is returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen

Implements Marble::AbstractProjection.

Definition at line 135 of file SphericalProjection.cpp.

bool Marble::SphericalProjection::screenCoordinates ( const GeoDataCoordinates &  coordinates,
const ViewportParams *  viewport,
qreal *  x,
qreal &  y,
int &  pointRepeatNum,
const QSizeF &  size,
bool &  globeHidesPoint 
) const
virtual

Get the coordinates of screen points for geographical coordinates in the map.

Parameters
coordinatesthe point on earth, including altitude, that we want the coordinates for.
viewportthe viewport parameters
xthe x coordinates of the pixels are returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
pointRepeatNumthe amount of times that a single geographical point gets represented on the map
globeHidesPointwhether the point gets hidden on the far side of the earth
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen
See also
ViewportParams

Implements Marble::AbstractProjection.

Definition at line 182 of file SphericalProjection.cpp.

bool Marble::SphericalProjection::screenCoordinates ( const GeoDataLineString &  lineString,
const ViewportParams *  viewport,
QVector< QPolygonF * > &  polygons 
) const
virtual

Implements Marble::AbstractProjection.

Definition at line 341 of file SphericalProjection.cpp.

virtual SurfaceType Marble::SphericalProjection::surfaceType ( ) const
inlinevirtual

Implements Marble::AbstractProjection.

Definition at line 55 of file SphericalProjection.h.

virtual bool Marble::SphericalProjection::traversableDateLine ( ) const
inlinevirtual

Reimplemented from Marble::AbstractProjection.

Definition at line 53 of file SphericalProjection.h.

virtual bool Marble::SphericalProjection::traversablePoles ( ) const
inlinevirtual

Reimplemented from Marble::AbstractProjection.

Definition at line 52 of file SphericalProjection.h.


The documentation for this class was generated from the following files:
  • SphericalProjection.h
  • SphericalProjection.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal