OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimAigHeader.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks.com)
6 //
7 //*******************************************************************
8 // $Id: ossimAigHeader.h 9968 2006-11-29 14:01:53Z gpotts $
9 
10 #ifndef ossimAigHeader_HEADER
11 #define ossimAigHeader_HEADER
12 #include <iostream>
14 #include "string.h"
15 
17 {
18 public:
19  friend std::ostream& operator <<(std::ostream& out, const ossimAigHeader& header)
20  {
21  out << "Magic number: " << header.theMagic << std::endl
22  << "Coverage: " << (header.theCellType==1?"Integer":"float") << std::endl
23  << "Pixel size x: " << header.thePixelSizeX << std::endl
24  << "Pixel size y: " << header.thePixelSizeY << std::endl
25  << "Tiles per row: " << header.theNumberOfTilesPerRow << std::endl
26  << "Tiles per col: " << header.theNumberOfTilesPerColumn << std::endl
27  << "Tile width: " << header.theWidthOfTileInPixels << std::endl
28  << "Tile height: " << header.theHeightOfTileInPixels;
29 
30  return out;
31  }
33  {
34  reset();
35  }
36 
37  void reset()
38  {
39  memset(theMagic, '\0', 8);
40  strcpy(theMagic, "GRID1.2");
41  memset(theUnknownData, '\0', 8);
43  memset(theUnknownAssortedData, '\0', 236);
44  thePixelSizeX = 1.0;
45  thePixelSizeY = 1.0;
51  theUnknownValue = 1;
53  }
54 
55  bool writeStream(std::ostream& out);
56 
58  {
59  theCellType = 2;
60  }
62  {
63  theCellType = 1;
64  }
65  char theMagic[8];
66  char theUnknownData[8];
67 
72 
74 
79  double thePixelSizeX;
80 
85  double thePixelSizeY;
86 
88 
93 
98 
104 
106 
112 };
113 
114 #endif
friend std::ostream & operator<<(std::ostream &out, const ossimAigHeader &header)
int theNumberOfTilesPerColumn
bool writeStream(std::ostream &out)
void setIntCoverage()
int theNumberOfTilesPerRow
double theUnknownGeoReferencingValues[2]
double thePixelSizeX
char theUnknownAssortedData[236]
double thePixelSizeY
void setFloatCoverage()
char theUnknownData[8]
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23
ossim_int32 theCellType
int ossim_int32