WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::ColorFill Class Reference

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 ()
 

Detailed Description

This class sets up color fill parameters.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ ColorFill()

ColorFill::ColorFill ( ColorMap color,
const char *  str 
)

Constructor. Sets color fill values from a string and color map.

Parameters
colorColor map to extract color info from
strString with color fill parameters

References init().

Member Function Documentation

◆ getBase()

float WXP::ColorFill::getBase ( )
inline

Returns base value

◆ getInterval()

float WXP::ColorFill::getInterval ( )
inline

Returns interval

◆ init()

int ColorFill::init ( )

Initializes class values

References WXP::Const::MISS.

Referenced by ColorFill(), WXP::ContPlot::init(), WXP::DatumPlot::init(), set(), and setFill().

◆ isSet()

bool WXP::ColorFill::isSet ( )
inline

Returns true if fill attributes set

◆ operator=()

ColorFill ColorFill::operator= ( const ColorFill fill)

Assignment operator. Used to overload copying

Parameters
stringsString class to copy from

◆ set() [1/2]

int ColorFill::set ( ColorMap colormap,
const char *  str 
)

Sets color fill values from a string and color map.

Parameters
colormapColor map to extract color info from
strString with color fill parameters

References WXP::ColorMap::getName(), WXP::Strings::getNum(), WXP::ColorMap::getNumFill(), WXP::Strings::getString(), WXP::StrLib::index(), and init().

◆ set() [2/2]

int ColorFill::set ( const char *  str)

Sets color fill values from a string and color map.

Parameters
colormapColor map to extract color info from
strString with color fill parameters

References WXP::Strings::getNum(), WXP::Strings::getString(), WXP::StrLib::index(), and init().

◆ setFill()

int ColorFill::setFill ( ColorMap colormap,
const char *  str 
)

Sets color fill values from a string and color map. Uses color_fill resource if available

Parameters
colormapColor map to extract color info from
strString with color fill parameters

References WXP::StrLib::iequal(), and init().

Referenced by WXP::Lev2Plot::draw().

◆ validLabel()

bool ColorFill::validLabel ( int  ind)

Returns fill label for annotation


The documentation for this class was generated from the following files: