FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
ROIinfo.hpp
1 /*
2  * Copyright 2011, 2012 Lukas Jirkovsky
3  *
4  * This file is part of FotoSHOCKcore.
5  *
6  * FotoSHOCKcore is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * FotoSHOCKcore is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with FotoSHOCKcore. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef ROIINFO_H
20 #define ROIINFO_H
21 
22 namespace FotoSHOCKcore{
23 
25 
28 class ROIinfo {
29  public:
31  unsigned int x;
33  unsigned int y;
35  unsigned int sizeX;
37  unsigned int sizeY;
39 
44 
46  ROIinfo() {
47  x = 0;
48  y = 0;
49  sizeX = 0;
50  sizeY = 0;
51  mipmapLevel = 0;
52  }
53 
55 
62  ROIinfo(unsigned int setX, unsigned int setY, unsigned int setSizeX, unsigned int setSizeY, int setMipmapLevel) {
63  x = setX;
64  y = setY;
65  sizeX = setSizeX;
66  sizeY = setSizeY;
67  mipmapLevel = setMipmapLevel;
68  };
69 };
70 
71 }
72 
73 #endif