OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimImageTypeLut.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: David Burken
6 //
7 // Description:
8 //
9 // Contains class definition for ImageTypeLUT. Currently has mapping of
10 // output image writes from enumeration to string and string to
11 // enumeration.
12 //
13 //*******************************************************************
14 // $Id: ossimImageTypeLut.cpp 22221 2013-04-11 15:30:08Z dburken $
15 
17 
18 //***
19 // Pixel type keyword to use for getState/saveState methods.
20 //***
22  "Image type.\n\
23 Valid types are: ccf, tiff, tiled_tiff, jpeg, and general_raster.");
24 
25 static const int TABLE_SIZE = 9;
26 
27 //*******************************************************************
28 // Public Constructor:
29 //*******************************************************************
31  :
32  ossimLookUpTable(TABLE_SIZE)
33 {
34  //***
35  // Complete initialization of data member "theImageTypeTable".
36  // Note: Output type enumerations defined in constants.h file.
37  //***
38  theTable[0].theKey = OSSIM_TIFF_STRIP;
39  theTable[0].theValue = "tiff_strip";
41  theTable[1].theValue = "tiff_strip_band_separate";
42  theTable[2].theKey = OSSIM_TIFF_TILED;
43  theTable[2].theValue = "tiff_tiled";
45  theTable[3].theValue = "tiff_tiled_band_separate";
47  theTable[4].theValue = "general_raster_bip";
49  theTable[5].theValue = "general_raster_bil";
51  theTable[6].theValue = "general_raster_bsq";
52  theTable[7].theKey = OSSIM_JPEG;
53  theTable[7].theValue = "jpeg";
54  theTable[8].theKey = OSSIM_PDF;
55  theTable[8].theValue = "ossim_pdf";
56 }
std::vector< ossimKeyValueMap > theTable
static const ossimKeyword IMAGE_TYPE_KW