WXP::ColorFill Class Reference

This class sets up color fill parameters. More...

#include "../include/ColorFill.h"

List of all members.

Public Member Functions

 ColorFill (ColorMap &color, const char *str)
 ColorFill (ColorFill &fill)
int init ()
int set (ColorMap &color, const char *str)
bool isSet ()
int setFill (ColorMap &color, const char *str)
int readFile (ColorMap &color, const char *file)
int validateValues ()
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 ()
PlotAttr get (float rvalue)
PlotAttr get (int ind)
const char * getColorName (int ind)
int getColor (int ind)
int getColor (float rvalue)
const char * getLabel ()
int print ()

Detailed Description

This class sets up color fill parameters.

Author:
Dan Vietor

Constructor & Destructor Documentation

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

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

Parameters:
color Color map to extract color info from
str String with color fill parameters

References init().


Member Function Documentation

int ColorFill::init (  ) 

Initializes class values

References WXP::Const::MISS.

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

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

Sets color fill values from a string and color map.

Parameters:
colormap Color map to extract color info from
str String with color fill parameters

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

Referenced by WXP::LightPlot::draw(), WXP::Lev2Plot::draw(), WXP::CityPlot::draw(), and WXP::ImagePlot::drawImage().

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:
colormap Color map to extract color info from
str String with color fill parameters

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

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


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1