Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_interval.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_interval.cpp
r4271 r8127 13 13 14 14 /*! 15 16 17 18 19 20 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() 21 21 */ 22 22 QwtInterval QwtInterval::normalized() const … … 35 35 36 36 /*! 37 38 39 37 Invert the limits of the interval 38 \return Inverted interval 39 \sa normalized() 40 40 */ 41 41 QwtInterval QwtInterval::inverted() const … … 131 131 } 132 132 133 //! Intersect 2 intervals 133 /*! 134 \brief Intersect 2 intervals 135 136 \param other Interval to be intersect with 137 \return Intersection 138 */ 134 139 QwtInterval QwtInterval::intersect( const QwtInterval &other ) const 135 140 { … … 193 198 } 194 199 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 */ 206 QwtInterval& QwtInterval::operator|=( const QwtInterval &other ) 207 { 208 *this = *this | other; 199 209 return *this; 200 210 } 201 211 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 */ 218 QwtInterval& QwtInterval::operator&=( const QwtInterval &other ) 219 { 220 *this = *this & other; 206 221 return *this; 207 222 } 208 223 209 224 /*! 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 211 229 */ 212 230 bool QwtInterval::intersects( const QwtInterval &other ) const … … 244 262 245 263 /*! 246 247 248 249 250 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 251 269 */ 252 270 QwtInterval QwtInterval::symmetrize( double value ) const … … 262 280 263 281 /*! 264 265 266 267 268 269 282 Limit the interval, keeping the border modes 283 284 \param lowerBound Lower limit 285 \param upperBound Upper limit 286 287 \return Limited interval 270 288 */ 271 289 QwtInterval QwtInterval::limited( double lowerBound, double upperBound ) const … … 284 302 285 303 /*! 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() 295 315 */ 296 316 QwtInterval QwtInterval::extend( double value ) const … … 304 324 305 325 /*! 306 307 308 309 310 311 326 Extend an interval 327 328 \param value Value 329 \return Reference of the extended interval 330 331 \sa extend() 312 332 */ 313 333 QwtInterval& QwtInterval::operator|=( double value )
Note:
See TracChangeset
for help on using the changeset viewer.