Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

XyRange Class Reference

XyRange is a 2-dimensional axis parallel range. More...

#include <Rtree.h>

List of all members.

Public Methods

 XyRange ()
 XyRange (XyPoint &ll, XyPoint &ur)
void fromLlUr (XyPoint &ll, XyPoint &ur)
void fromCoords (int *coords)
 XyRange (int *coords)
void toCoords (int *coords)
void fromRngI (XyRangeI &r)
 XyRange (XyRangeI &r)
XyRangeD & rngD ()
XyRangeI rngI ()
void setEmpty ()
 Sets an empty range.

void setUnlimited ()
 Sets extremal values in coordinates, so the range is interpreted as unlimited.

sbool isEmpty () const
sbool isUnlimited () const
const char * str ()

Public Attributes

XyPoint ll
XyPoint ur


Detailed Description

XyRange is a 2-dimensional axis parallel range.

Also known as minimum bounding box (mbb) or minimum bounding rectangle (mbr), meaning minimum cartesian interval covering an object given in Euclidean space. Here, the term (xy-)range is preferred, because it can be used with search ranges (i.e. rectangles specifying search requests). The second reason not to use the mbb or mbr notation might be that the minimality is not necessary.

A range is expressed as a pair of extremal corners. Though double precision is used for coordinates, the domain is supposed not to exceed the long values domain.

A range is interpreted as an empty one, if ll.x > ur.x.

Parameters:
ll  is lower left corner.
ur  is upper right corner.


Constructor & Destructor Documentation

XyRange   [inline]
 

XyRange XyPoint   ll,
XyPoint   ur
[inline]
 

XyRange int *    coords [inline]
 

XyRange XyRangeI &    r [inline]
 


Member Function Documentation

void fromLlUr XyPoint   ll,
XyPoint   ur
[inline]
 

void fromCoords int *    coords [inline]
 

void toCoords int *    coords [inline]
 

void fromRngI XyRangeI &    r
 

XyRangeD& rngD   [inline]
 

XyRangeI rngI  
 

setEmpty   [inline]
 

Sets an empty range.

setUnlimited   [inline]
 

Sets extremal values in coordinates, so the range is interpreted as unlimited.

isEmpty   const [inline]
 

Returns:
TRUE iff the range is interpreted as empty.

isUnlimited   const [inline]
 

Returns:
TRUE iff the range is interpreted as being unlimited in all directions.

str  
 

Returns:
temporary character string as a textual form of xy-range information.


Member Data Documentation

XyPoint ll
 

XyPoint ur
 


Generated on Mon Mar 24 22:59:19 2003 for Mg R-tree Library by doxygen1.2.16