libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::Magnification Class Referencefinal

#include <Magnification.h>

Public Member Functions

uint32_t GetLevel () const
 
double GetMagnification () const
 
 Magnification ()=default
 
 Magnification (const MagnificationLevel &level) noexcept
 
 Magnification (double magnification) noexcept
 Create specific magnification. More...
 
bool operator!= (const Magnification &other) const
 
Magnificationoperator++ ()
 
Magnification operator++ (int)
 
bool operator< (const Magnification &other) const
 
bool operator<= (const Magnification &other) const
 
bool operator== (const Magnification &other) const
 
bool operator> (const Magnification &other) const
 
bool operator>= (const Magnification &other) const
 
void SetLevel (const MagnificationLevel &level)
 
void SetMagnification (double magnification)
 Set magnification. More...
 

Static Public Attributes

static MagnificationLevel magBlock
 
static MagnificationLevel magCity
 
static MagnificationLevel magCityOver
 
static MagnificationLevel magClose
 
static MagnificationLevel magCloser
 
static MagnificationLevel magContinent
 
static MagnificationLevel magCounty
 
static MagnificationLevel magDetail
 
static MagnificationLevel magHouse
 
static MagnificationLevel magProximity
 
static MagnificationLevel magRegion
 
static MagnificationLevel magState
 
static MagnificationLevel magStateOver
 
static MagnificationLevel magStreet
 
static MagnificationLevel magSuburb
 
static MagnificationLevel magVeryClose
 
static MagnificationLevel magWorld
 

Constructor & Destructor Documentation

◆ Magnification() [1/3]

osmscout::Magnification::Magnification ( )
default

◆ Magnification() [2/3]

osmscout::Magnification::Magnification ( double  magnification)
inlineexplicitnoexcept

Create specific magnification.

Parameters
magnificationvalue, have to be valid - greater or equals to 1 (magnification level >= 0)

◆ Magnification() [3/3]

osmscout::Magnification::Magnification ( const MagnificationLevel level)
inlineexplicitnoexcept

Member Function Documentation

◆ GetLevel()

◆ GetMagnification()

◆ operator!=()

bool osmscout::Magnification::operator!= ( const Magnification other) const
inline

◆ operator++() [1/2]

Magnification& osmscout::Magnification::operator++ ( )
inline

◆ operator++() [2/2]

Magnification osmscout::Magnification::operator++ ( int  )
inline

◆ operator<()

bool osmscout::Magnification::operator< ( const Magnification other) const
inline

◆ operator<=()

bool osmscout::Magnification::operator<= ( const Magnification other) const
inline

◆ operator==()

bool osmscout::Magnification::operator== ( const Magnification other) const
inline

◆ operator>()

bool osmscout::Magnification::operator> ( const Magnification other) const
inline

◆ operator>=()

bool osmscout::Magnification::operator>= ( const Magnification other) const
inline

◆ SetLevel()

◆ SetMagnification()

void osmscout::Magnification::SetMagnification ( double  magnification)

Set magnification.

Parameters
magnificationvalue, have to be valid - greater or equals to 1 (magnification level >= 0)

Referenced by osmscout::ZoomGestureHandler::touch(), osmscout::MultitouchHandler::touch(), osmscout::VehicleFollowHandler::vehiclePosition(), and osmscout::MoveHandler::zoom().

Member Data Documentation

◆ magBlock

MagnificationLevel osmscout::Magnification::magBlock
static

◆ magCity

MagnificationLevel osmscout::Magnification::magCity
static

◆ magCityOver

MagnificationLevel osmscout::Magnification::magCityOver
static

◆ magClose

◆ magCloser

MagnificationLevel osmscout::Magnification::magCloser
static

◆ magContinent

◆ magCounty

MagnificationLevel osmscout::Magnification::magCounty
static

◆ magDetail

MagnificationLevel osmscout::Magnification::magDetail
static

◆ magHouse

MagnificationLevel osmscout::Magnification::magHouse
static

◆ magProximity

MagnificationLevel osmscout::Magnification::magProximity
static

◆ magRegion

MagnificationLevel osmscout::Magnification::magRegion
static

◆ magState

MagnificationLevel osmscout::Magnification::magState
static

◆ magStateOver

MagnificationLevel osmscout::Magnification::magStateOver
static

◆ magStreet

MagnificationLevel osmscout::Magnification::magStreet
static

◆ magSuburb

◆ magVeryClose

◆ magWorld

MagnificationLevel osmscout::Magnification::magWorld
static

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