Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::data::IntervalPair Class Reference

Detailed Description

a pair of horizonal / vertical intervals.

Two intervals in separate domains. IntervalPair is heavily used within the k-Fréchet algorithms.

Author
Peter Schäfer

Definition at line 456 of file interval.h.

#include <interval.h>

Public Member Functions

 IntervalPair ()
 empty constructor; creates a pair of invalid intervals More...
 
 IntervalPair (const Interval &ah, const Interval &av)
 constructor with intervals More...
 
QRectF boundingRect () const
 calculate the bounding rectangle, i.e. a rectangle that is defined by the horizontal and vertical intervals More...
 
bool operator== (const IntervalPair &that)
 equality comparator More...
 
bool operator!= (const IntervalPair &that)
 non-equality comparator More...
 
IntervalPairoperator+= (const IntervalPair &that)
 union operator More...
 
IntervalPairclear ()
 clear both intervals (assigning NAN as boundary values) More...
 
IntervalPair translated (double i, double j) const
 translate both intervals More...
 

Public Attributes

Interval H
 horizontal interval More...
 
Interval V
 vertical interval More...
 

Constructor & Destructor Documentation

◆ IntervalPair() [1/2]

frechet::data::IntervalPair::IntervalPair ( )
inline

empty constructor; creates a pair of invalid intervals

Definition at line 465 of file interval.h.

◆ IntervalPair() [2/2]

frechet::data::IntervalPair::IntervalPair ( const Interval ah,
const Interval av 
)
inline

constructor with intervals

Parameters
aha horizontal interval
ava vertical interval

Definition at line 471 of file interval.h.

Member Function Documentation

◆ boundingRect()

QRectF frechet::data::IntervalPair::boundingRect ( ) const
inline

calculate the bounding rectangle, i.e. a rectangle that is defined by the horizontal and vertical intervals

Returns
the bounding rectangle

Definition at line 480 of file interval.h.

◆ clear()

IntervalPair& frechet::data::IntervalPair::clear ( )
inline

clear both intervals (assigning NAN as boundary values)

Returns
this interval pair, now invalid

Definition at line 518 of file interval.h.

◆ operator!=()

bool frechet::data::IntervalPair::operator!= ( const IntervalPair that)
inline

non-equality comparator

Parameters
thatanother pair of intervals
Returns
true, if bouth pairs are not equal

Definition at line 499 of file interval.h.

◆ operator+=()

IntervalPair& frechet::data::IntervalPair::operator+= ( const IntervalPair that)
inline

union operator

Parameters
thatanother pair of intervals
Returns
this interval pair, containing the union of both interval pairs

Definition at line 507 of file interval.h.

◆ operator==()

bool frechet::data::IntervalPair::operator== ( const IntervalPair that)
inline

equality comparator

Parameters
thatanother pair of intervals
Returns
true, if bouth pairs are equal

Definition at line 491 of file interval.h.

◆ translated()

IntervalPair frechet::data::IntervalPair::translated ( double  i,
double  j 
) const
inline

translate both intervals

Parameters
ihorizontal offset
jvertical offset
Returns
a copy of this object, shifted by offsets

Definition at line 530 of file interval.h.

Member Data Documentation

◆ H

Interval frechet::data::IntervalPair::H

horizontal interval

Definition at line 459 of file interval.h.

◆ V

Interval frechet::data::IntervalPair::V

vertical interval

Definition at line 460 of file interval.h.


The documentation for this class was generated from the following file: