RangePair Class Reference

#include <customgui_range.h>

详细描述

Stores a range for RangeData .

由于
R19

Private Attributes

Float   _min
Float   _max

Constructors

  RangePair ( Float min=0.0, Float max=0.0)
  RangePair (const RangePair &src)

函数

Bool   Contains ( Float value) const
Float   GetMin () const
Float   GetMax () const
Float   GetCenter () const

构造函数 & 析构函数文档编制

◆  RangePair() [1/2]

RangePair ( Float   min = 0.0 ,
Float   max = 0.0  
)

Default constructor.

◆  RangePair() [2/2]

RangePair ( const RangePair src )

Copy constructor.

参数
[in] src The source RangePair .

成员函数文档编制

◆  Contains()

Bool Contains ( Float   value ) const

Checks if the range contains the given value .

参数
[in] value The value to check.
返回
true value is within the range, otherwise false .

◆  GetMin()

Float GetMin ( ) const

Retrieves the minimum range value.

返回
The minimum range value.

◆  GetMax()

Float GetMax ( ) const

Retrieves the maximum range value.

返回
The maximum range value.

◆  GetCenter()

Float GetCenter ( ) const

Calculates the center value for the range.

返回
The center value for the range.

Member Data Documentation

◆  _min

Float _min
private

◆  _max

Float _max
private