Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_interval.cpp


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_interval.cpp

    r4271 r8127  
    1313
    1414/*!
    15    \brief Normalize the limits of the interval
    16 
    17    If maxValue() < minValue() the limits will be inverted.
    18    \return Normalized interval
    19 
    20    \sa isValid(), inverted()
     15  \brief Normalize the limits of the interval
     16
     17  If maxValue() < minValue() the limits will be inverted.
     18  \return Normalized interval
     19
     20  \sa isValid(), inverted()
    2121*/
    2222QwtInterval QwtInterval::normalized() const
     
    3535
    3636/*!
    37    Invert the limits of the interval
    38    \return Inverted interval
    39    \sa normalized()
     37  Invert the limits of the interval
     38  \return Inverted interval
     39  \sa normalized()
    4040*/
    4141QwtInterval QwtInterval::inverted() const
     
    131131}
    132132
    133 //! Intersect 2 intervals
     133/*!
     134  \brief Intersect 2 intervals
     135 
     136  \param other Interval to be intersect with
     137  \return Intersection
     138 */
    134139QwtInterval QwtInterval::intersect( const QwtInterval &other ) const
    135140{
     
    193198}
    194199
    195 //! Unites this interval with the given interval.
    196 QwtInterval& QwtInterval::operator|=( const QwtInterval & interval )
    197 {
    198     *this = *this | interval;
     200/*!
     201  \brief Unite this interval with the given interval.
     202
     203  \param other Interval to be united with
     204  \return This interval
     205 */
     206QwtInterval& QwtInterval::operator|=( const QwtInterval &other )
     207{
     208    *this = *this | other;
    199209    return *this;
    200210}
    201211
    202 //! Intersects this interval with the given interval.
    203 QwtInterval& QwtInterval::operator&=( const QwtInterval & interval )
    204 {
    205     *this = *this & interval;
     212/*!
     213  \brief Intersect this interval with the given interval.
     214
     215  \param other Interval to be intersected with
     216  \return This interval
     217 */
     218QwtInterval& QwtInterval::operator&=( const QwtInterval &other )
     219{
     220    *this = *this & other;
    206221    return *this;
    207222}
    208223
    209224/*!
    210    Test if two intervals overlap
     225  \brief Test if two intervals overlap
     226
     227  \param other Interval
     228  \return True, when the intervals are intersecting
    211229*/
    212230bool QwtInterval::intersects( const QwtInterval &other ) const
     
    244262
    245263/*!
    246    Adjust the limit that is closer to value, so that value becomes
    247    the center of the interval.
    248 
    249    \param value Center
    250    \return Interval with value as center
     264  Adjust the limit that is closer to value, so that value becomes
     265  the center of the interval.
     266
     267  \param value Center
     268  \return Interval with value as center
    251269*/
    252270QwtInterval QwtInterval::symmetrize( double value ) const
     
    262280
    263281/*!
    264    Limit the interval, keeping the border modes
    265 
    266    \param lowerBound Lower limit
    267    \param upperBound Upper limit
    268 
    269    \return Limited interval
     282  Limit the interval, keeping the border modes
     283
     284  \param lowerBound Lower limit
     285  \param upperBound Upper limit
     286
     287  \return Limited interval
    270288*/
    271289QwtInterval QwtInterval::limited( double lowerBound, double upperBound ) const
     
    284302
    285303/*!
    286    Extend the interval
    287 
    288    If value is below minValue, value becomes the lower limit.
    289    If value is above maxValue, value becomes the upper limit.
    290 
    291    extend has no effect for invalid intervals
    292 
    293    \param value Value
    294    \sa isValid()
     304  \brief Extend the interval
     305
     306  If value is below minValue(), value becomes the lower limit.
     307  If value is above maxValue(), value becomes the upper limit.
     308
     309  extend() has no effect for invalid intervals
     310
     311  \param value Value
     312  \return extended interval
     313
     314  \sa isValid()
    295315*/
    296316QwtInterval QwtInterval::extend( double value ) const
     
    304324
    305325/*!
    306    Extend an interval
    307 
    308    \param value Value
    309    \return Reference of the extended interval
    310 
    311    \sa extend()
     326  Extend an interval
     327
     328  \param value Value
     329  \return Reference of the extended interval
     330
     331  \sa extend()
    312332*/
    313333QwtInterval& QwtInterval::operator|=( double value )
Note: See TracChangeset for help on using the changeset viewer.