28 out <<
"entry" << index <<
" " << lut[index] << endl;
37 theNumberOfEntries(numberOfEntries)
89 if(deltaSumSquare == 0)
91 return static_cast<int>(i);
95 result =
static_cast<int>(i);
106 if(numberOfElements < 0)
115 lut[adjustedDestinationIndex] =
theLut[index] ;
123 if(numberOfElements < 0)
130 *
this = temp->
rotate(numberOfElements);
187 ostr << (int)(
theLut[index].getR())
201 const char* lutFile = kwl.
find(prefix,
"lut_file");
211 lutFile = kwl.
find(prefix,
"filename");
226 const char* numberOfEntries = tempKwl->
find(tempPrefix,
"number_of_entries");
229 numberOfEntries = tempKwl->
find(tempPrefix,
"number_entries");
231 if(!numberOfEntries)
return false;
237 if(tempKwl->
find(tempPrefix,
"entry0"))
250 theLut[index].
setB((
unsigned char)b.toInt32());
260 const char* r = tempKwl->
find(tempPrefix, (newPrefix+
".r").c_str());
261 const char* g = tempKwl->
find(tempPrefix, (newPrefix+
".g").c_str());
262 const char* b = tempKwl->
find(tempPrefix, (newPrefix+
".b").c_str());
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
unsigned char getR() const
Represents serializable keyword/value map.
bool addFile(const char *file)
const char * find(const char *key) const
void setR(unsigned char R)
static ossimString toString(bool aValue)
Numeric to string methods.
virtual ossimString getClassName() const
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
void setB(unsigned char B)
ossim_int32 toInt32() const
void add(const char *prefix, const ossimKeywordlist &kwl, bool overwrite=true)
bool operator==(const ossimRgbLutDataObject &lut) const
ossimRgbLutDataObject & rotate(long numberOfElements=1)
unsigned int ossim_uint32
unsigned long toULong() const
unsigned char getB() const
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
void setG(unsigned char G)
ossimRgbLutDataObject(unsigned long numberOfEntries=0)
const ossimRgbLutDataObject & operator=(const ossimRgbLutDataObject &lut)
unsigned char getG() const
virtual ~ossimRgbLutDataObject()
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
RTTI_DEF1(ossimRgbLutDataObject, "ossimRgbLutDataObject", ossimObject)
std::basic_istringstream< char > istringstream
Class for char input memory streams.
int findIndex(const ossimRgbVector &rgb)
float distance(double lat1, double lon1, double lat2, double lon2, int units)
unsigned char ossim_uint8
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
std::basic_ostream< char > ostream
Base class for char output streams.
ostream & operator<<(ostream &out, const ossimRgbLutDataObject &lut)
ossim_uint32 theNumberOfEntries