Package oracle.spatial.network
Interface MBR
-
- All Superinterfaces:
java.lang.Cloneable
,java.io.Serializable
public interface MBR extends java.lang.Cloneable, java.io.Serializable
This interface defines the Minimum Bounding Rectangle (MBR) interface. An MBR is represented by a low point and a high point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
-
getNoOfDims
int getNoOfDims()
Returns the number of dimensiosns.
-
getLow
double getLow(int index)
Returns the specified ordinate from the low point.- Parameters:
index
- the specified dimension index (starting from zero)
-
getHigh
double getHigh(int index)
Returns the specified ordinate from the high point.- Parameters:
index
- the specified dimension index (starting from zero)
-
getLength
MDPoint getLength()
Returns the lengths in an MDPoint. Each length represents the length for each dimension.
-
getLength
double getLength(int index)
Returns the length of the specified dimension.- Parameters:
index
- the specified dimension index (starting from zero)
-
setLow
void setLow(MDPoint low)
Sets the low point.- Parameters:
low
- the low point to be set
-
setLow
void setLow(int index, double low)
Sets the specified ordinate of the low point.- Parameters:
index
- the ordinate indexlow
- the ordinate value to be set
-
setHigh
void setHigh(MDPoint high)
Sets the high point.- Parameters:
high
- the high point to be set
-
setHigh
void setHigh(int index, double high)
Sets the specified ordinate of the high point.- Parameters:
index
- the ordinate indexhigh
- the ordinate value to be set
-
contains
boolean contains(MBR mbr, double tolerance)
Checks if the MBR is contained in the specified MBR.- Parameters:
mbr
- the specified MBRtolerance
- the tolerance value for comparison
-
contains
boolean contains(MBR mbr)
Checks if the MBR is contained in the specified MBR.- Parameters:
mbr
- the specified MBR
-
contains
boolean contains(MDPoint pt, double tolerance)
Checks if the point is contained in the MBR.- Parameters:
pt
- the specified pointtolerance
- the tolerance value for comparison
-
contains
boolean contains(MDPoint pt)
Checks if the point is contained in the MBR.- Parameters:
pt
- the specified point
-
contains
boolean contains(double[] pt, double tolerance)
Checks if the point is contained in the MBR.- Parameters:
pt
- the specified pointtolerance
- the tolerance value for comparison
-
contains
boolean contains(double[] pt)
Checks if the point is contained in the MBR.- Parameters:
pt
- the specified point
-
interacts
boolean interacts(MBR mbr, double tolerance)
Checks if the MBR interacts with the specified MBR.- Parameters:
mbr
- the specified MBRtolerance
- the tolerance value for comparison
-
interacts
boolean interacts(MBR mbr)
Checks if the MBR interacts with the specified MBR.- Parameters:
mbr
- the specified MBR
-
intersect
MBR intersect(MBR mbr)
Creates a new MBR by intersecting with the specified MBR.- Parameters:
mbr
- the specified MBR
-
unite
MBR unite(MBR mbr)
Creates a new MBR by uniting with the specified MBR.- Parameters:
mbr
- the specified MBR
-
toSDOGeometry
java.lang.String toSDOGeometry(int srid)
Retunrs a String for constructing an SDO_GEOMETRY in the database.- Parameters:
srid
- the SRID of the geometry
-
toGeometry
JGeometry toGeometry(int srid)
Return a JGeometry.- Parameters:
srid
- the SRID of the geometry
-
-