OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimNadconGridHeader.h
Go to the documentation of this file.
1 //**************************************************************************
2 // Copyright (C) 2003 Storage Area Networks, Inc.
3 //
4 // Written by: Kenneth Melero <kmelero@sanz.com>
5 //
6 //**************************************************************************
7 
8 #ifndef ossimNadconGridHeader_HEADER
9 #define ossimNadconGridHeader_HEADER 1
12 #include <ossim/base/ossimDrect.h>
13 #include <iostream>
14 
16 {
17 public:
20  :theCols(0),
21  theRows(0),
22  theZ(0),
23  theMinX(0),
24  theDx(0),
25  theMinY(0),
26  theDy(0)
27  {
28  }
29  bool readHeader(const ossimFilename& file);
30  bool readHeader(std::istream& in);
31 
32  int getStartOffset()const
33  {
34  return (theCols+2)*4;
35  }
36 
37  int getBytesPerRow()const
38  {
39  return (theCols+1)*4;
40  }
41 
42  int getNumberOfRows()const
43  {
44  return theRows;
45  }
46  int getNumberOfCols()const
47  {
48  return theCols;
49  }
50  double getDeltaX()const
51  {
52  return (double)theDx;
53  }
54  double getDeltaY()const
55  {
56  return (double)theDy;
57  }
59  {
60  return ossimDrect(theMinX,
61  theMinY + (theRows)*theDy,
62  theMinX + (theCols)*theDx,
63  theMinY,
65  }
66  double getMinX()const
67  {
68  return theMinX;
69  }
70  double getMinY()const
71  {
72  return theMinY;
73  }
75  {
76  return ossimDpt(theDx, theDy);
77  }
78 protected:
79  int* theCharBuf[64];
80  int theCols;
81  int theRows;
82  int theZ;
83  double theMinX;
84  double theDx;
85  double theMinY;
86  double theDy;
87 };
88 
89 #endif
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
ossimDrect getBoundingRect() const
std::basic_istream< char > istream
Base class for char input streams.
Definition: ossimIosFwd.h:20
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23