libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::MapView Class Reference

Object thats carry information about view center, angle and magnification. More...

#include <InputHandler.h>

Inheritance diagram for osmscout::MapView:

Public Member Functions

double GetAngle () const
double GetLat () const
double GetLon () const
double GetMag () const
double GetMagLevel () const
double GetMapDpi () const
bool IsValid () const
 MapView (const MapView &mv)
 This copy constructor don't transfer ownership in Qt hierarchy - it may cause troubles.
 MapView (const osmscout::GeoCoord &center, const Bearing &angle, const osmscout::Magnification &magnification, double mapDpi)
 MapView (QObject *parent, const osmscout::GeoCoord &center, const Bearing &angle, const osmscout::Magnification &magnification, double mapDpi)
 MapView (QObject *parent=nullptr)
MapView & operator= (const MapView &mv)
 ~MapView () override=default

Public Attributes

Bearing angle
osmscout::GeoCoord center
osmscout::Magnification magnification

Properties

double angle
double lat
double lon
double mag
uint32_t magLevel
double mapDpi {0}

Detailed Description

Object thats carry information about view center, angle and magnification.

Constructor & Destructor Documentation

◆ MapView() [1/4]

osmscout::MapView::MapView ( QObject * parent = nullptr)
inlineexplicit

References MapView().

Referenced by MapView(), MapView(), and operator=().

◆ MapView() [2/4]

osmscout::MapView::MapView ( QObject * parent,
const osmscout::GeoCoord & center,
const Bearing & angle,
const osmscout::Magnification & magnification,
double mapDpi )
inline

References angle, center, magnification, and mapDpi.

◆ MapView() [3/4]

osmscout::MapView::MapView ( const osmscout::GeoCoord & center,
const Bearing & angle,
const osmscout::Magnification & magnification,
double mapDpi )
inline

References angle, center, magnification, and mapDpi.

◆ MapView() [4/4]

osmscout::MapView::MapView ( const MapView & mv)
inline

This copy constructor don't transfer ownership in Qt hierarchy - it may cause troubles.

Parameters
mv

References angle, center, magnification, mapDpi, and MapView().

◆ ~MapView()

osmscout::MapView::~MapView ( )
overridedefault

Member Function Documentation

◆ GetAngle()

double osmscout::MapView::GetAngle ( ) const
inline

References angle.

◆ GetLat()

double osmscout::MapView::GetLat ( ) const
inline

References center.

Referenced by osmscout::MapWidget::changeView().

◆ GetLon()

double osmscout::MapView::GetLon ( ) const
inline

References center.

Referenced by osmscout::MapWidget::changeView().

◆ GetMag()

double osmscout::MapView::GetMag ( ) const
inline

References magnification.

◆ GetMagLevel()

double osmscout::MapView::GetMagLevel ( ) const
inline

References magnification.

◆ GetMapDpi()

double osmscout::MapView::GetMapDpi ( ) const
inline

References mapDpi.

◆ IsValid()

bool osmscout::MapView::IsValid ( ) const
inline

References mapDpi.

◆ operator=()

MapView & osmscout::MapView::operator= ( const MapView & mv)
inline

References angle, center, magnification, mapDpi, and MapView().

Member Data Documentation

◆ angle

Bearing osmscout::MapView::angle

◆ center

◆ magnification

Property Documentation

◆ angle

◆ lat

double osmscout::MapView::lat
read

◆ lon

double osmscout::MapView::lon
read

◆ mag

double osmscout::MapView::mag
read

◆ magLevel

uint32_t osmscout::MapView::magLevel
read

◆ mapDpi

double osmscout::MapView::mapDpi {0}
read

The documentation for this class was generated from the following file: