MrSID Decode SDK for Raster Reference Manual  9.0.0.3864
lti_pixelLookupTable.h
Go to the documentation of this file.
00001 /* $Id$ */
00002 /* //////////////////////////////////////////////////////////////////////////
00003 //                                                                         //
00004 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue,   //
00005 // Suite 200, Seattle, WA 98104.  Unauthorized use or distribution         //
00006 // prohibited.  Access to and use of this code is permitted only under     //
00007 // license from LizardTech, Inc.  Portions of the code are protected by    //
00008 // US and foreign patents and other filings. All Rights Reserved.          //
00009 //                                                                         //
00011 /* PUBLIC */
00012 
00013 #ifndef LTI_PIXELLOOKUPTABLE_H
00014 #define LTI_PIXELLOOKUPTABLE_H
00015 
00016 // lt_lib_mrsid_core
00017 #include "lti_pixel.h"
00018 
00019 
00020 LT_BEGIN_NAMESPACE(LizardTech)
00021 
00022 
00028 class LTIPixelLookupTable : public LTIPixel
00029 {
00030 public:
00040    LTIPixelLookupTable(const LTIPixel& pixelProps,
00041                        lt_uint32 tableSize);
00042 
00046    LTIPixelLookupTable(const LTIPixelLookupTable&);
00047 
00051    ~LTIPixelLookupTable();
00052 
00060    lt_uint32 getTableSize() const;
00061 
00074    void setTableEntry(lt_uint32 index,
00075                       const LTIPixel& pixelData);
00076 
00087    void setTableEntries(const void* mapData);
00088 
00098    LTIPixel* getTableEntry(lt_uint32 index) const;
00099 
00106    const void* getTableEntries() const;
00107 
00108 private:
00109    LT_STATUS init(const void* data);
00110 
00111    lt_uint32 m_tableSize;
00112 
00113    // for an RGB map, entry I is formed by: R=data[I], G=data[I+256], B=data[I+512]
00114    void* m_data;
00115 
00116    // nope
00117    LTIPixelLookupTable& operator=(const LTIPixelLookupTable&);
00118 };
00119 
00120 
00121 LT_END_NAMESPACE(LizardTech)
00122 
00123 #endif // LTI_PIXELLOOKUPTABLE_H