MoSync 3.3
MAP::PixelCoordinateT< MagnificationT > Class Template Reference

Describes a pixel coordinate on the global grid of pixels. More...

#include <MAP/PixelCoordinate.h>

List of all members.

Public Member Functions

 PixelCoordinateT ()
 PixelCoordinateT (const MagnificationT magnification, const int x, const int y)
int getX () const
int getY () const
MagnificationT getMagnification () const
bool operator== (const PixelCoordinateT< MagnificationT > &b) const
bool operator!= (const PixelCoordinateT< MagnificationT > &b) const

Detailed Description

template<typename MagnificationT>
class MAP::PixelCoordinateT< MagnificationT >

Describes a pixel coordinate on the global grid of pixels.

Range is determined by magnification, e.g. for a tile size of 256 and a magnification of 2 the global grid is 1024x1024 pixels. For a magnification of 10, the global grid is 262144x262144 pixels.


Constructor & Destructor Documentation

template<typename MagnificationT>
MAP::PixelCoordinateT< MagnificationT >::PixelCoordinateT ( ) [inline]

Creates a new pixel coordinate.

template<typename MagnificationT>
MAP::PixelCoordinateT< MagnificationT >::PixelCoordinateT ( const MagnificationT  magnification,
const int  x,
const int  y 
) [inline]

Creates a new pixel coordinate.


Member Function Documentation

template<typename MagnificationT>
int MAP::PixelCoordinateT< MagnificationT >::getX ( ) const [inline]
template<typename MagnificationT>
int MAP::PixelCoordinateT< MagnificationT >::getY ( ) const [inline]
template<typename MagnificationT>
MagnificationT MAP::PixelCoordinateT< MagnificationT >::getMagnification ( ) const [inline]
template<typename MagnificationT>
bool MAP::PixelCoordinateT< MagnificationT >::operator== ( const PixelCoordinateT< MagnificationT > &  b) const [inline]

Compares two pixel coordinates, returns true if the first coordinate is equal to the second.

template<typename MagnificationT>
bool MAP::PixelCoordinateT< MagnificationT >::operator!= ( const PixelCoordinateT< MagnificationT > &  b) const [inline]

Compare two pixel coordinates, returns true if the first coordinate is not equal to the second.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines