|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the Minimum Bounding Rectangle (MBR) interface. An MBR is represented by a low point and a high point.
Method Summary | |
boolean |
contains(double[] pt) Checks if the point is contained in the MBR. |
boolean |
contains(double[] pt, double tolerance) Checks if the point is contained in the MBR. |
boolean |
contains(MBR mbr) Checks if the MBR is contained in the specified MBR. |
boolean |
contains(MBR mbr, double tolerance) Checks if the MBR is contained in the specified MBR. |
boolean |
contains(MDPoint pt) Checks if the point is contained in the MBR. |
boolean |
contains(MDPoint pt, double tolerance) Checks if the point is contained in the MBR. |
MDPoint |
getHigh() Returns the high point. |
double |
getHigh(int index) Returns the specified ordinate from the high point. |
MDPoint |
getLength() Returns the lengths in an MDPoint. |
double |
getLength(int index) Returns the length of the specified dimension. |
MDPoint |
getLow() Returns the low point. |
double |
getLow(int index) Returns the specified ordinate from the low point. |
int |
getNoOfDims() Returns the number of dimensiosns. |
boolean |
interacts(MBR mbr) Checks if the MBR interacts with the specified MBR. |
boolean |
interacts(MBR mbr, double tolerance) Checks if the MBR interacts with the specified MBR. |
MBR |
intersect(MBR mbr) Creates a new MBR by intersecting with the specified MBR. |
void |
setHigh(int index, double high) Sets the specified ordinate of the high point. |
void |
setHigh(MDPoint high) Sets the high point. |
void |
setLow(int index, double low) Sets the specified ordinate of the low point. |
void |
setLow(MDPoint low) Sets the low point. |
JGeometry |
toGeometry(int srid) Return a JGeometry. |
java.lang.String |
toSDOGeometry(int srid) Retunrs a String for constructing an SDO_GEOMETRY in the database. |
Method Detail |
public int getNoOfDims()
public MDPoint getLow()
MDPoint
public double getLow(int index)
index
- the specified dimension index (starting from zero)public MDPoint getHigh()
MDPoint
public double getHigh(int index)
index
- the specified dimension index (starting from zero)public MDPoint getLength()
public double getLength(int index)
index
- the specified dimension index (starting from zero)public void setLow(MDPoint low)
low
- the low point to be setpublic void setLow(int index, double low)
index
- the ordinate indexlow
- the ordinate value to be setpublic void setHigh(MDPoint high)
high
- the high point to be setpublic void setHigh(int index, double high)
index
- the ordinate indexhigh
- the ordinate value to be setpublic boolean contains(MBR mbr, double tolerance)
mbr
- the specified MBRtolerance
- the tolerance value for comparisonpublic boolean contains(MBR mbr)
mbr
- the specified MBRpublic boolean contains(MDPoint pt, double tolerance)
pt
- the specified pointtolerance
- the tolerance value for comparisonpublic boolean contains(MDPoint pt)
pt
- the specified pointpublic boolean contains(double[] pt, double tolerance)
pt
- the specified pointtolerance
- the tolerance value for comparisonpublic boolean contains(double[] pt)
pt
- the specified pointpublic boolean interacts(MBR mbr, double tolerance)
mbr
- the specified MBRtolerance
- the tolerance value for comparisonpublic boolean interacts(MBR mbr)
mbr
- the specified MBRpublic MBR intersect(MBR mbr)
mbr
- the specified MBRpublic java.lang.String toSDOGeometry(int srid)
srid
- the SRID of the geometrypublic JGeometry toGeometry(int srid)
srid
- the SRID of the geometry
|
Oracle® Spatial Java API Reference 10g Release 2 (10.2) B14373-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |