1 | /*****************************************************************************/ |
2 | // Copyright 2006 Adobe Systems Incorporated |
3 | // All Rights Reserved. |
4 | // |
5 | // NOTICE: Adobe permits you to use, modify, and distribute this file in |
6 | // accordance with the terms of the Adobe license agreement accompanying it. |
7 | /*****************************************************************************/ |
8 | |
9 | /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_tile_iterator.h#1 $ */ |
10 | /* $DateTime: 2012/05/30 13:28:51 $ */ |
11 | /* $Change: 832332 $ */ |
12 | /* $Author: tknoll $ */ |
13 | |
14 | /*****************************************************************************/ |
15 | |
16 | #ifndef __dng_tile_iterator__ |
17 | #define __dng_tile_iterator__ |
18 | |
19 | /*****************************************************************************/ |
20 | |
21 | #include "dng_classes.h" |
22 | #include "dng_point.h" |
23 | #include "dng_rect.h" |
24 | #include "dng_types.h" |
25 | |
26 | /*****************************************************************************/ |
27 | |
28 | class dng_tile_iterator |
29 | { |
30 | |
31 | private: |
32 | |
33 | dng_rect fArea; |
34 | |
35 | int32 fTileWidth; |
36 | int32 fTileHeight; |
37 | |
38 | int32 fTileTop; |
39 | int32 fTileLeft; |
40 | |
41 | int32 fRowLeft; |
42 | |
43 | int32 fLeftPage; |
44 | int32 fRightPage; |
45 | |
46 | int32 fTopPage; |
47 | int32 fBottomPage; |
48 | |
49 | int32 fHorizontalPage; |
50 | int32 fVerticalPage; |
51 | |
52 | public: |
53 | |
54 | dng_tile_iterator (const dng_image &image, |
55 | const dng_rect &area); |
56 | |
57 | dng_tile_iterator (const dng_point &tileSize, |
58 | const dng_rect &area); |
59 | |
60 | dng_tile_iterator (const dng_rect &tile, |
61 | const dng_rect &area); |
62 | |
63 | bool GetOneTile (dng_rect &tile); |
64 | |
65 | private: |
66 | |
67 | void Initialize (const dng_rect &tile, |
68 | const dng_rect &area); |
69 | |
70 | }; |
71 | |
72 | /*****************************************************************************/ |
73 | |
74 | #endif |
75 | |
76 | /*****************************************************************************/ |
77 | |