Static Public Member Functions | List of all members
QwtScaleArithmetic Class Reference

Arithmetic including a tolerance. More...

#include <qwt_scale_engine.h>

Static Public Member Functions

static double ceilEps (double value, double intervalSize)
 
static double divideEps (double intervalSize, double numSteps)
 Divide an interval into steps. More...
 
static double divideInterval (double intervalSize, int numSteps, uint base)
 
static double floorEps (double value, double intervalSize)
 

Detailed Description

Arithmetic including a tolerance.

Definition at line 22 of file qwt_scale_engine.h.

Member Function Documentation

◆ ceilEps()

double QwtScaleArithmetic::ceilEps ( double  value,
double  intervalSize 
)
static

Ceil a value, relative to an interval

Parameters
valueValue to be ceiled
intervalSizeInterval size
Returns
Rounded value
See also
floorEps()

Definition at line 108 of file qwt_scale_engine.cpp.

◆ divideEps()

double QwtScaleArithmetic::divideEps ( double  intervalSize,
double  numSteps 
)
static

Divide an interval into steps.

$stepSize = (intervalSize - intervalSize * 10e^{-6}) / numSteps$

Parameters
intervalSizeInterval size
numStepsNumber of steps
Returns
Step size

Definition at line 143 of file qwt_scale_engine.cpp.

◆ divideInterval()

double QwtScaleArithmetic::divideInterval ( double  intervalSize,
int  numSteps,
uint  base 
)
static

Calculate a step size for a given interval

Parameters
intervalSizeInterval size
numStepsNumber of steps
baseBase for the division ( usually 10 )
Returns
Calculated step size

Definition at line 160 of file qwt_scale_engine.cpp.

◆ floorEps()

double QwtScaleArithmetic::floorEps ( double  value,
double  intervalSize 
)
static

Floor a value, relative to an interval

Parameters
valueValue to be floored
intervalSizeInterval size
Returns
Rounded value
See also
floorEps()

Definition at line 126 of file qwt_scale_engine.cpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51