This class reads data from a color table file and populates a ColorMap class. More...
#include "../include/ColorFile.h"
Static Public Member Functions | |
| static int | read (const char *file, ColorMap &color) |
| static int | readFile (const char *file, ColorMap &color) |
This class reads data from a color table file and populates a ColorMap class.
| int ColorFile::read | ( | const char * | file, | |
| ColorMap & | color | |||
| ) | [static] |
Reads color data from a set of files
| file | A list of files (comma separated) |
| color | ColorMap class to put color values into |
References WXP::FileTool::addPath(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::ColorMap::getNum(), WXP::Strings::getNum(), WXP::ColorMap::getNumFill(), WXP::Strings::getString(), readFile(), and WXP::ColorMap::setNumFill().
Referenced by WXP::RcmPlot::draw(), WXP::Lev2Plot::draw(), and WXP::ImagePlot::drawImage().
| int ColorFile::readFile | ( | const char * | file, | |
| ColorMap & | color | |||
| ) | [static] |
Reads data from a specific file
| file | Filename to extract color data |
| color | ColorMap class to put color values into |
References WXP::ColorMap::add(), WXP::String::getChar(), WXP::File::getLine(), WXP::ColorMap::getMax(), WXP::ColorMap::getNum(), WXP::ColorMap::getNumFill(), WXP::String::iequal(), WXP::ColorMap::init(), WXP::File::isOpen(), WXP::String::scanf(), WXP::ColorMap::setNumFill(), and WXP::String::trimWS().
Referenced by read().
1.6.1