WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::Range Struct Reference

This struct defines a simple range of values. More...

#include "../include/Range.h"

Public Member Functions

 Range ()
 Range (float min, float max)
int init ()
int set (float min, float max)
float getMin ()
float getMax ()
float getRange ()
int print ()

Public Attributes

float min
float max

Detailed Description

This struct defines a simple range of values.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Range() [1/2]

Range::Range ( )

Constructor

References init().

◆ Range() [2/2]

Range::Range ( float rmin,
float rmax )

Constructor. Sets the values

Parameters
rminMinimum value
rmaxMaximum value

References set().

Member Function Documentation

◆ getMax()

float WXP::Range::getMax ( )
inline

Returns the maximum

◆ getMin()

float WXP::Range::getMin ( )
inline

Returns the minimum

Referenced by WXP::ImagePlot::draw(), and WXP::RadPlot::draw().

◆ getRange()

float Range::getRange ( )

Gets the range between max and min

Returns
The range

References WXP::Const::MISS.

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

◆ init()

int Range::init ( )

Initializes the object

References WXP::Const::MISS.

Referenced by Range().

◆ print()

int Range::print ( )

Prints the object data

◆ set()

int Range::set ( float rmin,
float rmax )

Sets the values

Parameters
rminMinimum value
rmaxMaximum value

Referenced by Range().


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