|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MBR
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. |
MBR |
unite(MBR mbr) Creates a new MBR by uniting with the specified MBR. |
Method Detail |
---|
int getNoOfDims()
MDPoint getLow()
MDPoint
double getLow(int index)
index
- the specified dimension index (starting from zero)MDPoint getHigh()
MDPoint
double getHigh(int index)
index
- the specified dimension index (starting from zero)MDPoint getLength()
double getLength(int index)
index
- the specified dimension index (starting from zero)void setLow(MDPoint low)
low
- the low point to be setvoid setLow(int index, double low)
index
- the ordinate indexlow
- the ordinate value to be setvoid setHigh(MDPoint high)
high
- the high point to be setvoid setHigh(int index, double high)
index
- the ordinate indexhigh
- the ordinate value to be setboolean contains(MBR mbr, double tolerance)
mbr
- the specified MBRtolerance
- the tolerance value for comparisonboolean contains(MBR mbr)
mbr
- the specified MBRboolean contains(MDPoint pt, double tolerance)
pt
- the specified pointtolerance
- the tolerance value for comparisonboolean contains(MDPoint pt)
pt
- the specified pointboolean contains(double[] pt, double tolerance)
pt
- the specified pointtolerance
- the tolerance value for comparisonboolean contains(double[] pt)
pt
- the specified pointboolean interacts(MBR mbr, double tolerance)
mbr
- the specified MBRtolerance
- the tolerance value for comparisonboolean interacts(MBR mbr)
mbr
- the specified MBRMBR intersect(MBR mbr)
mbr
- the specified MBRMBR unite(MBR mbr)
mbr
- the specified MBRjava.lang.String toSDOGeometry(int srid)
srid
- the SRID of the geometryJGeometry toGeometry(int srid)
srid
- the SRID of the geometry
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |