MAP::PixelCoordinate Class Reference

#include <MAP/PixelCoordinate.h>

List of all members.


Detailed Description

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.


Public Member Functions

 PixelCoordinate ()
 PixelCoordinate (const int magnification, const int x, const int y)
int getX () const
int getY () const
int getMagnification () const
bool operator== (const PixelCoordinate &b) const
bool operator!= (const PixelCoordinate &b) const


Constructor & Destructor Documentation

MAP::PixelCoordinate::PixelCoordinate  )  [inline]
 

Creates a new pixel coordinate.

MAP::PixelCoordinate::PixelCoordinate const int  magnification,
const int  x,
const int  y
[inline]
 

Creates a new pixel coordinate.


Member Function Documentation

int MAP::PixelCoordinate::getX  )  const [inline]
 

Returns the horizontal (longitude) component of the pixel coordinate.

int MAP::PixelCoordinate::getY  )  const [inline]
 

Returns the vertical (latitude) component of the pixel coordinate.

int MAP::PixelCoordinate::getMagnification  )  const [inline]
 

Returns the magnification component of the pixel coordinate.

bool MAP::PixelCoordinate::operator== const PixelCoordinate b  )  const [inline]
 

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

bool MAP::PixelCoordinate::operator!= const PixelCoordinate b  )  const [inline]
 

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


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO