1 /***************************************************************************
2                             qgsrasterpyramid.h
3 
4                              -------------------
5     begin                : 2007
6     copyright            : (C) 2007 by Gary E. Sherman
7     email                : sherman@mrcc.com
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 
23 /**
24  * \ingroup core
25   * \brief This struct is used to store pyramid info for the raster layer.
26   */
27 class CORE_EXPORT QgsRasterPyramid
28 {
29   public:
30     //! \brief The pyramid level as implemented in gdal (level 2 is half original raster size etc)
31     int level;
32     //! \brief XDimension for this pyramid layer
33     int xDim;
34     //! \brief YDimension for this pyramid layer
35     int yDim;
36     //! \brief Whether the pyramid layer has been built yet
37     bool exists;
38     //! \brief Whether the pyramid should be built
39     bool build;
40 
QgsRasterPyramid()41     QgsRasterPyramid()
42     {
43       level = 0;
44       xDim = 0;
45       yDim = 0;
46       exists = false;
47       build = false;
48     }
49 
50 };
51 #endif
52