Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TilingOptions.h
1 //
2 // TilingOptions.h
3 //
4 // Copyright (c) 2006-2008 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef TilingOptions_H
9 #define TilingOptions_H
10 
11 #include "ElevDrawOptions.h"
12 
13 enum TextureCompressionType { TC_OPENGL, TC_SQUISH_FAST, TC_SQUISH_SLOW, TC_JPEG };
14 
19 {
20 public:
22  {
23  bCreateDerivedImages = false;
24  bMaskUnknownAreas = false;
25  bOmitFlatTiles = false;
26  bUseTextureCompression = false;
27  eCompressionType = TC_OPENGL;
28  iNoDataFilled = 0;
29  iMinCol = -1;
30  iMaxCol = -1;
31  iMinRow = -1;
32  iMaxRow = -1;
33  }
34 
35  int cols, rows;
36  int lod0size;
37  int numlods;
38  vtString fname;
39 
40  // If this is an elevation tileset, then optionally a corresponding
41  // derived image tileset can be created.
42  bool bCreateDerivedImages;
43  bool bMaskUnknownAreas;
44  vtString fname_images;
45  ElevDrawOptions draw;
46 
47  // If elevation, we can omit flat (sea-level) tiles
48  bool bOmitFlatTiles;
49 
50  // If imagery (or deriving imagery from elevation) then it can be compressed
51  bool bUseTextureCompression;
52  TextureCompressionType eCompressionType;
53 
54  // These can be set to restrict the output to certain (tile) rows only
55  int iMinCol, iMaxCol;
56  int iMinRow, iMaxRow;
57 
58  // after the sampling, will contain the number of NODATA heixels filled in
59  int iNoDataFilled;
60 };
61 
62 #endif // TilingOptions_H
63