OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageMetaData.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 //
10 // Description:
11 //
12 // Contains class declaration for ossimImageMetaData.
13 //
14 //*******************************************************************
15 // $Id: ossimImageMetaData.h 21527 2012-08-26 16:50:49Z dburken $
16 #ifndef ossimImageMetaData_HEADER
17 #define ossimImageMetaData_HEADER 1
18 
20 #include <iosfwd>
21 #include <string>
22 #include <vector>
23 
24 class ossimKeywordlist;
25 
27 {
28 public:
31  ossim_uint32 numberOfBands);
33 
34  const ossimImageMetaData& operator=(const ossimImageMetaData& rhs);
35 
37 
38  void clear();
39 
40  void setDefaultsForArrays();
41 
42  void setNumberOfBands(ossim_uint32 numberOfBands);
43 
44  ossim_uint32 getNumberOfBands()const;
45 
50  const std::string& getRgbBands() const;
51 
65  bool getRgbBands(std::vector<ossim_uint32>& bandList) const;
66 
67  void setScalarType(ossimScalarType aType);
68 
70 
72  ossim_uint32 getBytesPerPixel() const;
73 
74  double getMinPix(ossim_uint32 band)const;
75 
76  void setMinPix(ossim_uint32 band, double pix);
77 
78  void setMaxPix(ossim_uint32 band, double pix);
79 
80  void setNullPix(ossim_uint32 band, double pix);
81 
82  double getMaxPix(ossim_uint32 band)const;
83 
84  double getNullPix(ossim_uint32 band)const;
85 
86  const double* getMinPixelArray()const;
87 
88  const double* getMaxPixelArray()const;
89 
90  const double* getNullPixelArray()const;
91 
92  void setMinValuesValid(bool flag);
93 
94  void setMaxValuesValid(bool flag);
95 
96  void setNullValuesValid(bool flag);
97 
98  bool getMinValuesValidFlag()const;
99 
100  bool getMaxValuesValidFlag()const;
101 
102  bool getNullValuesValidFlag()const;
103 
104  bool isValid()const;
105 
106  bool loadState(const ossimKeywordlist& kwl,
107  const char* prefix=0);
108  bool saveState(ossimKeywordlist& kwl,
109  const char* prefix=0)const;
110 
123  void updateMetaData( const ossimKeywordlist& kwl,
124  const std::string& prefix );
125 
130  std::ostream& print(std::ostream& out) const;
131 
137  const ossimImageMetaData& obj);
138 
139 private:
140 
144  ossim_uint32 getBandCount(const ossimKeywordlist& kwl,
145  const std::string& prefix) const;
146 
150 
154 
158 
159  //---
160  // String containing rgb bands, e.g. (2,1,0);
161  // Added to allow tiled tiffs to set band selection correctly by picking
162  // up order from omd file.
163  //---
164  std::string theRgbBands;
165 };
166 
167 #endif /* #ifndef ossimImageMetaData_HEADER */
Represents serializable keyword/value map.
ossimScalarType theScalarType
ossim_uint32 theNumberOfBands
ossimScalarType getScalarType(const H5::DataSet *dataset)
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
Definition: ossimH5Util.cpp:41
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
unsigned int ossim_uint32
ossimScalarType
ossim_uint32 theBytesPerPixel
#define OSSIM_DLL
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23