00001 #ifndef SICK_SCAN_GNU_PLOT_PALETTE_H 00002 #define SICK_SCAN_GNU_PLOT_PALETTE_H 00003 00004 class GnuPlotPalette 00005 { 00006 public: 00007 GnuPlotPalette(); 00008 unsigned char getRbgValue(unsigned char greyIdx, unsigned int channelIdx); 00009 int load(std::string palettName); 00010 void setErrorStatus(int _errorCode) 00011 { 00012 errorStatus = _errorCode; 00013 } 00014 00015 int getErrorStatus(void) 00016 { 00017 return(errorStatus); 00018 } 00019 00020 private: 00021 unsigned char rgbTable[256][3]; // r g b - table entries 00022 int errorStatus; 00023 }; 00024 #endif