WXP C++ Library Version 6.74.9
|
This class sets up color fill parameters. More...
#include "../include/ColorFill.h"
Public Member Functions | |
ColorFill (ColorMap &color, const char *str) | |
ColorFill (const ColorFill &fill) | |
ColorFill | operator= (const ColorFill &fill) |
int | init () |
int | set (const ColorFill &fill) |
int | set (const char *str) |
int | set (ColorMap &color, const char *str) |
bool | isSet () |
int | setFill (ColorMap &color, const char *str) |
int | readFile (const char *file) |
int | readFile (ColorMap &color, const char *file) |
int | validateValues () |
int | decode (const char *str) |
int | decode (ColorMap &color, const char *str) |
int | setValues (float *vals, int num) |
bool | areValuesSet () |
int | getNum () |
float | getBaseVal () |
float | getValue (int ind) |
int | setBase (float rbase) |
float | getBase () |
int | setInterval (float rintrvl) |
float | getInterval () |
int | getInd (float rvalue) |
PlotAttr | get (float rvalue) |
PlotAttr | get (int ind) |
const char * | getColorName (int ind) |
int | getColor (int ind) |
int | getColor (float rvalue) |
bool | validLabel (int ind) |
const char * | getLabel (int ind) |
const char * | getLabel () |
int | print () |
This class sets up color fill parameters.
ColorFill::ColorFill | ( | ColorMap & | color, |
const char * | str | ||
) |
|
inline |
Returns base value
|
inline |
Returns interval
int ColorFill::init | ( | ) |
Initializes class values
References WXP::Const::MISS.
Referenced by ColorFill(), WXP::ContPlot::init(), WXP::DatumPlot::init(), set(), set(), and setFill().
|
inline |
Returns true if fill attributes set
Assignment operator. Used to overload copying
strings | String class to copy from |
int ColorFill::set | ( | ColorMap & | colormap, |
const char * | str | ||
) |
Sets color fill values from a string and color map.
References WXP::ColorMap::getName(), WXP::Strings::getNum(), WXP::ColorMap::getNumFill(), WXP::Strings::getString(), WXP::StrLib::index(), and init().
int ColorFill::set | ( | const char * | str | ) |
Sets color fill values from a string and color map.
References WXP::Strings::getNum(), WXP::Strings::getString(), WXP::StrLib::index(), and init().
int ColorFill::setFill | ( | ColorMap & | colormap, |
const char * | str | ||
) |
Sets color fill values from a string and color map. Uses color_fill resource if available
References WXP::StrLib::iequal(), and init().
Referenced by WXP::Lev2Plot::draw().
bool ColorFill::validLabel | ( | int | ind | ) |
Returns fill label for annotation