6 #include "GeoDataImagePyramid.h"
8 #include "GeoDataTypes.h"
13 class GeoDataImagePyramidPrivate
16 GeoDataImagePyramidPrivate();
21 GeoDataImagePyramid::GridOrigin m_gridOrigin;
24 GeoDataImagePyramidPrivate::GeoDataImagePyramidPrivate() :
33 GeoDataImagePyramid::GeoDataImagePyramid() : d( new GeoDataImagePyramidPrivate )
38 GeoDataImagePyramid::GeoDataImagePyramid(
const Marble::GeoDataImagePyramid &other ) :
39 GeoDataObject(), d( new GeoDataImagePyramidPrivate( *other.d ) )
44 GeoDataImagePyramid &GeoDataImagePyramid::operator=(
const GeoDataImagePyramid &other )
46 GeoDataObject::operator=( other );
51 bool GeoDataImagePyramid::operator==(
const GeoDataImagePyramid& other )
const
53 return equals(other) &&
54 d->m_tileSize == other.d->m_tileSize &&
55 d->m_maxWidth == other.d->m_maxWidth &&
56 d->m_maxHeight == other.d->m_maxHeight &&
57 d->m_gridOrigin == other.d->m_gridOrigin;
60 bool GeoDataImagePyramid::operator!=(
const GeoDataImagePyramid& other )
const
65 GeoDataImagePyramid::~GeoDataImagePyramid()
70 const char *GeoDataImagePyramid::nodeType()
const
72 return GeoDataTypes::GeoDataImagePyramidType;
75 int GeoDataImagePyramid::tileSize()
const
80 void GeoDataImagePyramid::setTileSize(
int tileSize)
82 d->m_tileSize = tileSize;
85 int GeoDataImagePyramid::maxWidth()
const
90 void GeoDataImagePyramid::setMaxWidth(
int maxWidth)
92 d->m_maxWidth = maxWidth;
95 int GeoDataImagePyramid::maxHeight()
const
97 return d->m_maxHeight;
100 void GeoDataImagePyramid::setMaxHeight(
int maxHeight)
102 d->m_maxHeight = maxHeight;
105 GeoDataImagePyramid::GridOrigin GeoDataImagePyramid::gridOrigin()
const
107 return d->m_gridOrigin;
110 void GeoDataImagePyramid::setGridOrigin(GridOrigin gridOrigin)
112 d->m_gridOrigin = gridOrigin;