OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimRgbLutDataObject.h>
Public Member Functions | |
ossimRgbLutDataObject (unsigned long numberOfEntries=0) | |
ossimRgbLutDataObject (const ossimRgbLutDataObject &lut) | |
virtual ossimObject * | dup () const |
const ossimRgbVector & | operator[] (unsigned int index) const |
ossimRgbVector & | operator[] (unsigned int index) |
const ossimRgbVector & | operator[] (int index) const |
ossimRgbVector & | operator[] (int index) |
const ossimRgbVector & | operator[] (double normalizedIndex) const |
ossimRgbVector & | operator[] (double normalizedIndex) |
long | getNumberOfEntries () const |
int | findIndex (const ossimRgbVector &rgb) |
int | findIndex (ossim_uint8 r, ossim_uint8 g, ossim_uint8 b) |
ossimRgbLutDataObject & | rotate (long numberOfElements=1) |
ossimRgbLutDataObject | rotate (long numberOfElements=1) const |
const ossimRgbLutDataObject & | operator= (const ossimRgbLutDataObject &lut) |
bool | operator== (const ossimRgbLutDataObject &lut) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
Protected Member Functions | |
virtual | ~ossimRgbLutDataObject () |
![]() | |
virtual | ~ossimReferenced () |
Protected Attributes | |
ossimRgbVector * | theLut |
ossim_uint32 | theNumberOfEntries |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimRgbLutDataObject &lut) |
Definition at line 18 of file ossimRgbLutDataObject.h.
ossimRgbLutDataObject::ossimRgbLutDataObject | ( | unsigned long | numberOfEntries = 0 | ) |
Will allocate 256 values for the color table
Definition at line 34 of file ossimRgbLutDataObject.cpp.
References theLut, and theNumberOfEntries.
ossimRgbLutDataObject::ossimRgbLutDataObject | ( | const ossimRgbLutDataObject & | lut | ) |
Definition at line 47 of file ossimRgbLutDataObject.cpp.
References theLut, and theNumberOfEntries.
|
protectedvirtual |
Definition at line 63 of file ossimRgbLutDataObject.cpp.
References theLut, and theNumberOfEntries.
|
inlinevirtual |
Reimplemented from ossimObject.
Definition at line 28 of file ossimRgbLutDataObject.h.
Referenced by ossimRgbToIndexFilter::setLut().
|
inline |
Definition at line 67 of file ossimRgbLutDataObject.h.
References ossimRgbVector::getB(), ossimRgbVector::getG(), and ossimRgbVector::getR().
Referenced by ossimRgbToIndexFilter::convertInputTile().
int ossimRgbLutDataObject::findIndex | ( | ossim_uint8 | r, |
ossim_uint8 | g, | ||
ossim_uint8 | b | ||
) |
Definition at line 73 of file ossimRgbLutDataObject.cpp.
References distance(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), theLut, and theNumberOfEntries.
|
inline |
Definition at line 66 of file ossimRgbLutDataObject.h.
|
virtual |
Method to the load (recreate) the state of the object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimObject.
Definition at line 199 of file ossimRgbLutDataObject.cpp.
References ossimKeywordlist::addFile(), ossimString::c_str(), ossimFilename::exists(), ossimKeywordlist::find(), ossimRgbVector::setB(), ossimRgbVector::setG(), ossimRgbVector::setR(), theLut, theNumberOfEntries, ossimString::toInt32(), ossimString::toString(), and ossimString::toULong().
Referenced by ossimRgbToIndexFilter::loadState().
const ossimRgbLutDataObject & ossimRgbLutDataObject::operator= | ( | const ossimRgbLutDataObject & | lut | ) |
Definition at line 135 of file ossimRgbLutDataObject.cpp.
References theLut, and theNumberOfEntries.
bool ossimRgbLutDataObject::operator== | ( | const ossimRgbLutDataObject & | lut | ) | const |
Definition at line 156 of file ossimRgbLutDataObject.cpp.
References theLut, and theNumberOfEntries.
|
inline |
Definition at line 32 of file ossimRgbLutDataObject.h.
|
inline |
Definition at line 36 of file ossimRgbLutDataObject.h.
|
inline |
Definition at line 40 of file ossimRgbLutDataObject.h.
|
inline |
Definition at line 44 of file ossimRgbLutDataObject.h.
|
inline |
Definition at line 48 of file ossimRgbLutDataObject.h.
|
inline |
Definition at line 57 of file ossimRgbLutDataObject.h.
ossimRgbLutDataObject & ossimRgbLutDataObject::rotate | ( | long | numberOfElements = 1 | ) |
Definition at line 121 of file ossimRgbLutDataObject.cpp.
References ossimNotify(), ossimNotifyLevel_FATAL, and rotate().
Referenced by rotate().
ossimRgbLutDataObject ossimRgbLutDataObject::rotate | ( | long | numberOfElements = 1 | ) | const |
Definition at line 104 of file ossimRgbLutDataObject.cpp.
References ossimNotify(), ossimNotifyLevel_FATAL, theLut, and theNumberOfEntries.
|
virtual |
Method to save the state of the object to a keyword list. Return true if ok or false on error.
Reimplemented from ossimObject.
Definition at line 172 of file ossimRgbLutDataObject.cpp.
References ossimKeywordlist::add(), ossimString::c_str(), ossimRgbVector::getB(), ossimObject::getClassName(), ossimRgbVector::getG(), theLut, theNumberOfEntries, and ossimString::toString().
Referenced by ossimRgbToIndexFilter::saveState().
|
friend |
|
protected |
Definition at line 85 of file ossimRgbLutDataObject.h.
Referenced by findIndex(), loadState(), operator=(), operator==(), ossimRgbLutDataObject(), rotate(), saveState(), and ~ossimRgbLutDataObject().
|
protected |
Definition at line 86 of file ossimRgbLutDataObject.h.
Referenced by findIndex(), loadState(), operator<<(), operator=(), operator==(), ossimRgbLutDataObject(), rotate(), saveState(), and ~ossimRgbLutDataObject().