|
WXP C++ Library Version 6.74.9
|
This class contains generic tools. More...
#include "../include/Tools.h"
Static Public Member Functions | |
| static int | swap (float f1, float f2) |
| static bool | isInt (const char *str) |
| static bool | isFloat (const char *str) |
| static int | printClean (const unsigned char *line, int size) |
| static int | printControl (const unsigned char *line, int size) |
| static int | dumpHex (const unsigned char *buf, int size) |
| static int | toString (float val, String &str) |
| static int | toString (float val, int sig, String &str) |
| static int | toInt (float x) |
| static float | calcInterval (float max, float min, int num) |
This class contains generic tools.
|
static |
Calculates an appropriate contour interval from max and min data
| max | Maximum value in grid |
| min | Minimum value in grid |
| num | Number of desired contour intervals |
Referenced by WXP::ContPlot::drawFill(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawValues().