Open Search
    RangePair Class Reference

    #include <customgui_range.h>

    Detailed Description

    Stores a range for RangeData.

    Since
    R19

    Private Attributes

    Float _min
     
    Float _max
     

    Constructors

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

    Functions

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

    Constructor & Destructor Documentation

    ◆ RangePair()

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

    Default constructor.

    Member Function Documentation

    ◆ Contains()

    Bool Contains ( Float  value) const

    Checks if the range contains the given value.

    Parameters
    [in]valueThe value to check.
    Returns
    true if the value is within the range, otherwise false.

    ◆ GetMin()

    Float GetMin ( ) const

    Retrieves the minimum range value.

    Returns
    The minimum range value.

    ◆ GetMax()

    Float GetMax ( ) const

    Retrieves the maximum range value.

    Returns
    The maximum range value.

    ◆ GetCenter()

    Float GetCenter ( ) const

    Calculates the center value for the range.

    Returns
    The center value for the range.

    Member Data Documentation

    ◆ _min

    Float _min
    private

    ◆ _max

    Float _max
    private