OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Functions
ossimNBandLutDataObject.cpp File Reference
#include <ossim/base/ossimScalarTypeLut.h>
#include <ossim/base/ossimNBandLutDataObject.h>
#include <ossim/base/ossimKeywordlist.h>
#include <ossim/base/ossimKeywordNames.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimNotifyContext.h>
#include <iostream>
#include <sstream>

Go to the source code of this file.

Functions

 RTTI_DEF1 (ossimNBandLutDataObject, "ossimNBandLutDataObject", ossimObject)
 
std::ostream & operator<< (std::ostream &out, const ossimNBandLutDataObject &lut)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  out,
const ossimNBandLutDataObject lut 
)

Definition at line 23 of file ossimNBandLutDataObject.cpp.

References ossimKeywordNames::ENTRY_KW, ossimKeywordNames::NUMBER_BANDS_KW, ossimKeywordNames::NUMBER_ENTRIES_KW, ossimNBandLutDataObject::theLut, ossimNBandLutDataObject::theNullPixelIndex, ossimNBandLutDataObject::theNumberOfBands, and ossimNBandLutDataObject::theNumberOfEntries.

25 {
26  if(lut.theLut)
27  {
29  << lut.theNumberOfEntries << std::endl;
31  << lut.theNumberOfBands << std::endl;
32  out << "null_pixel_index: " << lut.theNullPixelIndex << std::endl;
33  for(ossim_uint32 idx = 0; idx < lut.theNumberOfEntries; ++idx)
34  {
35  const ossimNBandLutDataObject::LUT_ENTRY_TYPE *bandPtr =lut[idx];
36  ossim_uint32 bandIdx = 0;
37  out << ossimKeywordNames::ENTRY_KW << idx << ": ";
38  for(bandIdx = 0; bandIdx < lut.theNumberOfBands; ++bandIdx)
39  {
40  out << bandPtr[bandIdx] << " ";
41  }
42  if(idx < (lut.theNumberOfEntries-1))
43  {
44  out << std::endl;
45  }
46  }
47  }
48  return out;
49 }
static const char * NUMBER_ENTRIES_KW
unsigned int ossim_uint32
static const char * NUMBER_BANDS_KW
static const char * ENTRY_KW

◆ RTTI_DEF1()

RTTI_DEF1 ( ossimNBandLutDataObject  ,
"ossimNBandLutDataObject"  ,
ossimObject   
)