OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
imaging
ossimAdrgHeader.h
Go to the documentation of this file.
1
//*******************************************************************
2
//
3
// License: See top level LICENSE.txt file.
4
//
5
// Author: Ken Melero
6
// Description: This class encapsulates the image parameters and
7
// support data for a ADRG image file(s).
8
//
9
//********************************************************************
10
// $Id: ossimAdrgHeader.h 10266 2007-01-14 19:27:14Z dburken $
11
12
#ifndef ossimAdrgHeader_H
13
#define ossimAdrgHeader_H
14
15
#include <
ossim/base/ossimConstants.h
>
16
#include <
ossim/base/ossimFilename.h
>
17
#include <
ossim/base/ossimIrect.h
>
18
19
class
OSSIM_DLL
ossimAdrgHeader
20
{
21
public
:
22
// Instantiated with the image file (.img)
23
ossimAdrgHeader
(
const
ossimFilename
& img_file);
24
~
ossimAdrgHeader
();
25
26
enum
ErrorStatus
27
{
28
OSSIM_OK = 0,
29
OSSIM_ERROR = 1
30
};
31
32
enum
33
{
34
ADRG_TILE_SIZE = 128
35
};
36
37
int
errorStatus
()
const
{
return
theErrorStatus; }
38
39
ossimFilename
file
()
40
const
{
return
theHeaderFile; }
41
ossimFilename
imageFile
()
42
const
{
return
theImageFile; }
43
ossimIrect
validImageRect
()
44
const
{
return
theValidImageRect; }
45
46
ossim_uint32
pixelType
()
const
{
return
thePixelType; }
47
ossim_uint32
interleaveType
()
const
{
return
theInterleaveType; }
48
ossim_uint32
numberOfBands
()
const
{
return
theNumberOfBands; }
49
ossim_uint32
lines
()
const
{
return
theLines; }
50
ossim_uint32
tlines
()
const
{
return
theLinesInTiles; }
51
ossim_uint32
samples
()
const
{
return
theSamples; }
52
ossim_uint32
tsamples
()
const
{
return
theSamplesInTiles; }
53
ossim_uint32
headerSize
()
const
{
return
theHeaderSize; }
54
ossim_uint32
startRow
()
const
{
return
theStartRow; }
55
ossim_uint32
startCol
()
const
{
return
theStartCol; }
56
ossim_uint32
stopRow
()
const
{
return
theStopRow; }
57
ossim_uint32
stopCol
()
const
{
return
theStopCol; }
58
59
ossim_uint32
tim(
ossim_uint32
row,
ossim_uint32
col)
const
;
60
61
ossimString
minLon
()
const
{
return
theMinLon; }
62
ossimString
minLat
()
const
{
return
theMinLat; }
63
ossimString
maxLon
()
const
{
return
theMaxLon; }
64
ossimString
maxLat
()
const
{
return
theMaxLat; }
65
66
double
minLongitude()
const
;
67
double
minLatitude()
const
;
68
double
maxLongitude()
const
;
69
double
maxLatitude()
const
;
70
71
friend
OSSIM_DLL
std::ostream
&
operator<<
(
std::ostream
& os,
72
const
ossimAdrgHeader
& adrg);
73
74
private
:
75
76
// Returns the longitude in decimal degrees given the formatted string.
77
double
parseLongitudeString(
const
ossimString
& lon)
const
;
78
79
// Returns the latitude in decimal degrees given the formatted string.
80
double
parseLatitudeString(
const
ossimString
& lat)
const
;
81
82
// prevent use.
83
ossimAdrgHeader
();
84
ossimAdrgHeader
(
const
ossimAdrgHeader
& source);
85
86
ErrorStatus
theErrorStatus
;
87
88
ossimFilename
theHeaderFile
;
89
ossimFilename
theImageFile
;
90
ossimIrect
theValidImageRect
;
91
92
ossim_uint32
thePixelType
;
93
ossim_uint32
theInterleaveType
;
94
ossim_uint32
theNumberOfBands
;
95
ossim_uint32
theLines
;
96
ossim_uint32
theLinesInTiles
;
97
ossim_uint32
theSamples
;
98
ossim_uint32
theSamplesInTiles
;
99
ossim_uint32
theHeaderSize
;
100
ossim_uint32
theStartRow
;
101
ossim_uint32
theStartCol
;
102
ossim_uint32
theStopRow
;
103
ossim_uint32
theStopCol
;
104
ossim_uint32
*
theTim
;
// Tile index map value -- only valid if TIF is 'Y'.
105
106
ossimString
theMinLon
;
107
ossimString
theMinLat
;
108
ossimString
theMaxLon
;
109
ossimString
theMaxLat
;
110
ossimString
theTif
;
// Tile index map flag -- Y indicates there are tiles
111
// with no data; N indicates that all tiles contain
112
// RGB graphic data.
113
114
void
parse();
115
};
116
117
#endif
ossimAdrgHeader::startRow
ossim_uint32 startRow() const
Definition:
ossimAdrgHeader.h:54
ossimAdrgHeader::theSamplesInTiles
ossim_uint32 theSamplesInTiles
Definition:
ossimAdrgHeader.h:98
ossimAdrgHeader::errorStatus
int errorStatus() const
Definition:
ossimAdrgHeader.h:37
ossimConstants.h
ossimAdrgHeader::file
ossimFilename file() const
Definition:
ossimAdrgHeader.h:39
ossimAdrgHeader::minLon
ossimString minLon() const
Definition:
ossimAdrgHeader.h:61
ossimAdrgHeader::pixelType
ossim_uint32 pixelType() const
Definition:
ossimAdrgHeader.h:46
ossimIrect
Definition:
ossimIrect.h:48
ossimAdrgHeader::theMinLon
ossimString theMinLon
Definition:
ossimAdrgHeader.h:106
ossimAdrgHeader::theMaxLon
ossimString theMaxLon
Definition:
ossimAdrgHeader.h:108
ossimAdrgHeader::minLat
ossimString minLat() const
Definition:
ossimAdrgHeader.h:62
ossimAdrgHeader::numberOfBands
ossim_uint32 numberOfBands() const
Definition:
ossimAdrgHeader.h:48
ossimAdrgHeader
Definition:
ossimAdrgHeader.h:19
ossimAdrgHeader::ErrorStatus
ErrorStatus
Definition:
ossimAdrgHeader.h:26
ossimAdrgHeader::theImageFile
ossimFilename theImageFile
Definition:
ossimAdrgHeader.h:89
ossimAdrgHeader::startCol
ossim_uint32 startCol() const
Definition:
ossimAdrgHeader.h:55
ossimAdrgHeader::theTif
ossimString theTif
Definition:
ossimAdrgHeader.h:110
operator<<
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition:
ossimAxes.h:88
ossimAdrgHeader::tsamples
ossim_uint32 tsamples() const
Definition:
ossimAdrgHeader.h:52
ossimIrect.h
ossimAdrgHeader::imageFile
ossimFilename imageFile() const
Definition:
ossimAdrgHeader.h:41
ossimAdrgHeader::thePixelType
ossim_uint32 thePixelType
Definition:
ossimAdrgHeader.h:92
ossimAdrgHeader::lines
ossim_uint32 lines() const
Definition:
ossimAdrgHeader.h:49
ossim_uint32
unsigned int ossim_uint32
Definition:
ossimConstants.h:235
ossimAdrgHeader::maxLat
ossimString maxLat() const
Definition:
ossimAdrgHeader.h:64
ossimAdrgHeader::theErrorStatus
ErrorStatus theErrorStatus
Definition:
ossimAdrgHeader.h:86
ossimAdrgHeader::stopCol
ossim_uint32 stopCol() const
Definition:
ossimAdrgHeader.h:57
ossimAdrgHeader::theTim
ossim_uint32 * theTim
Definition:
ossimAdrgHeader.h:104
ossimAdrgHeader::theStopCol
ossim_uint32 theStopCol
Definition:
ossimAdrgHeader.h:103
ossimAdrgHeader::theStartCol
ossim_uint32 theStartCol
Definition:
ossimAdrgHeader.h:101
ossimAdrgHeader::theLines
ossim_uint32 theLines
Definition:
ossimAdrgHeader.h:95
ossimFilename
Definition:
ossimFilename.h:20
ossimAdrgHeader::theStartRow
ossim_uint32 theStartRow
Definition:
ossimAdrgHeader.h:100
ossimAdrgHeader::theStopRow
ossim_uint32 theStopRow
Definition:
ossimAdrgHeader.h:102
ossimFilename.h
ossimAdrgHeader::theInterleaveType
ossim_uint32 theInterleaveType
Definition:
ossimAdrgHeader.h:93
OSSIM_DLL
#define OSSIM_DLL
Definition:
ossimConstants.h:72
ossimAdrgHeader::tlines
ossim_uint32 tlines() const
Definition:
ossimAdrgHeader.h:50
ossimAdrgHeader::theMaxLat
ossimString theMaxLat
Definition:
ossimAdrgHeader.h:109
ossimAdrgHeader::theHeaderSize
ossim_uint32 theHeaderSize
Definition:
ossimAdrgHeader.h:99
ossimAdrgHeader::theMinLat
ossimString theMinLat
Definition:
ossimAdrgHeader.h:107
ossimAdrgHeader::theNumberOfBands
ossim_uint32 theNumberOfBands
Definition:
ossimAdrgHeader.h:94
ossimAdrgHeader::validImageRect
ossimIrect validImageRect() const
Definition:
ossimAdrgHeader.h:43
ossimAdrgHeader::theLinesInTiles
ossim_uint32 theLinesInTiles
Definition:
ossimAdrgHeader.h:96
ossimAdrgHeader::theSamples
ossim_uint32 theSamples
Definition:
ossimAdrgHeader.h:97
ossimAdrgHeader::theHeaderFile
ossimFilename theHeaderFile
Definition:
ossimAdrgHeader.h:88
ossimAdrgHeader::stopRow
ossim_uint32 stopRow() const
Definition:
ossimAdrgHeader.h:56
ossimAdrgHeader::maxLon
ossimString maxLon() const
Definition:
ossimAdrgHeader.h:63
ossimAdrgHeader::theValidImageRect
ossimIrect theValidImageRect
Definition:
ossimAdrgHeader.h:90
ossimAdrgHeader::samples
ossim_uint32 samples() const
Definition:
ossimAdrgHeader.h:51
ossimAdrgHeader::headerSize
ossim_uint32 headerSize() const
Definition:
ossimAdrgHeader.h:53
ossimAdrgHeader::interleaveType
ossim_uint32 interleaveType() const
Definition:
ossimAdrgHeader.h:47
ossim::ostream
std::basic_ostream< char > ostream
Base class for char output streams.
Definition:
ossimIosFwd.h:23
ossimString
Definition:
ossimString.h:22
Generated on Fri Aug 3 2018 08:46:45 for OSSIM - Open Source Software Image Map by
1.8.14