WXP C++ Library Version 6.74.9
|
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.
|
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::HurPlot::draw(), WXP::Lev2Plot::draw(), WXP::LightPlot::draw(), WXP::RcmPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::DatumPlot::draw(), WXP::VectPlot::draw(), WXP::ContPlot::drawFill(), WXP::ImagePlot::drawImage(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawValues().
|
static |
Reads and decodes color 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().