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

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)
 

Detailed Description

This class contains generic tools.

Author
Dan Vietor

Member Function Documentation

◆ calcInterval()

float Tools::calcInterval ( float  max,
float  min,
int  num 
)
static

Calculates an appropriate contour interval from max and min data

Parameters
maxMaximum value in grid
minMinimum value in grid
numNumber of desired contour intervals

Referenced by WXP::ContPlot::drawFill(), WXP::ContPlot::drawLine(), and WXP::ContPlot::drawValues().


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