QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
Loading...
Searching...
No Matches
qgsrasterpyramid.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrasterpyramid.h
3
4 -------------------
5 begin : 2007
6 copyright : (C) 2007 by Gary E. Sherman
8***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18#ifndef QGSRASTERPYRAMID
19#define QGSRASTERPYRAMID
20
21#include "qgis_core.h"
22#include "qgis_sip.h"
23
28class CORE_EXPORT QgsRasterPyramid
29{
30 public:
31 //TODO QGIS 5.0 - rename get* to remove get prefix, and remove
32 //temporary SIP_PROPERTY definitions
33
42 int getLevel() const { return mLevel; }
43
52 void setLevel( int level ) { mLevel = level; }
53
54#ifdef SIP_RUN
55 SIP_PROPERTY( name = level, get = getLevel, set = setLevel )
56#endif
57
63 void setXDim( int dimension ) { mXDim = dimension; }
64
70 int getXDim() const { return mXDim; }
71
72#ifdef SIP_RUN
73 SIP_PROPERTY( name = xDim, get = getXDim, set = setXDim )
74#endif
75
81 void setYDim( int dimension ) { mYDim = dimension; }
82
88 int getYDim() const { return mYDim; }
89
90#ifdef SIP_RUN
91 SIP_PROPERTY( name = yDim, get = getYDim, set = setYDim )
92#endif
93
99 bool getExists() const { return mExists; }
100
106 void setExists( bool exists ) { mExists = exists; }
107
108#ifdef SIP_RUN
109 SIP_PROPERTY( name = exists, get = getExists, set = setExists )
110#endif
111
120 bool getBuild() const { return mBuild; }
121
131 void setBuild( bool build ) { mBuild = build; }
132
133#ifdef SIP_RUN
134 SIP_PROPERTY( name = build, get = getBuild, set = setBuild )
135#endif
136
137 private:
139 int mLevel = 0;
141 int mXDim = 0;
143 int mYDim = 0;
145 bool mExists = false;
147 bool mBuild = false;
148};
149#endif
This struct is used to store pyramid info for the raster layer.
void setBuild(bool build)
Sets whether the pyramid layer will be built.
int getLevel() const
Returns the pyramid level.
void setExists(bool exists)
Sets whether the pyramid layer currently exists.
void setYDim(int dimension)
Sets the y dimension for this pyramid layer.
bool getExists() const
Returns true if the pyramid layer currently exists.
bool getBuild() const
Returns true if the pyramid layer will be built.
void setLevel(int level)
Sets the pyramid level.
int getXDim() const
Returns the x dimension for this pyramid layer.
int getYDim() const
Returns the y dimension for this pyramid layer.
void setXDim(int dimension)
Sets the x dimension for this pyramid layer.
#define SIP_PROPERTY(name, getter, setter)
Definition qgis_sip.h:279