|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sdoapi.geom.EnvelopeImpl
EnvelopeImpl is a helper class that represents a 2D OGC-specified envelope, that is, a Minimum Bounding Rectangle of a geometry object.
Constructor Summary | |
EnvelopeImpl()
Constructs a default envelope (MBR) that is empty. |
|
EnvelopeImpl(CoordPoint point)
Constructs an envelope (MBR) for a coordinate point. |
|
EnvelopeImpl(CoordPoint min,
CoordPoint max)
Constructs an envelope (MBR) with lower-left and upper-right corner coordinate points. |
|
EnvelopeImpl(double xMin,
double yMin,
double xMax,
double yMax)
Constructs an envelope (MBR) with lower-left and upper-right coordinates. |
|
EnvelopeImpl(double xMin,
double yMin,
double zMin,
double xMax,
double yMax,
double zMax)
Constructs an envelope (MBR) with 3-D coordinates. |
|
EnvelopeImpl(Envelope envelope)
Copy constructor |
|
EnvelopeImpl(Point point)
Constructs an envelope (MBR) for a geometric point. |
Method Summary | |
java.lang.Object |
clone()
Clones this envelope to generate another envelope object. |
boolean |
contains(CoordPoint point)
Determines if this envelope object (MBR) contains the input coordinate point. |
boolean |
contains(double x,
double y)
Determines if this envelope object (MBR) contains the input (x, y) coordinate. |
boolean |
contains(double x,
double y,
double z)
Determines if this envelope object (MBR) contains the input (x, y) coordinate. |
boolean |
contains(Envelope envelope)
Determines if this envelope object (MBR) contains the input envelope. |
Envelope |
expand(CoordPoint point)
Expands this envelope object (MBR) to contain the input coordinate point. |
Envelope |
expand(double x,
double y)
Expands this envelope object (MBR) to contain the input coordinates. |
Envelope |
expand(double x,
double y,
double z)
Expands this envelope object (MBR) to contain the input coordinates. |
Envelope |
expand(Envelope envelope)
Expands this envelope object (MBR) to contain the input envelope. |
Envelope |
expandBy(double w,
double h)
Expands this envelope by w amount in X-axis (w/2 on each side); also expands by h amount in Y-axis (h/2 on each side). |
double |
getHeight()
Gets the height of this envelope (MBR). |
CoordPoint |
getLowerLeft()
Gets the lower-left coordinate point. |
void |
getLowerLeft(CoordPoint point)
Gets the lower-left coordinate point. |
double |
getMaxOrd(int i)
Gets the i-th ordinate of upper-right corner. |
double |
getMaxX()
Gets the x coordinate of upper-right corner. |
double |
getMaxY()
Gets the y coordinate of upper-right corner. |
double |
getMinOrd(int i)
Gets the i-th ordinate of lower-left corner. |
double |
getMinX()
Gets the x coordinate of lower-left corner. |
double |
getMinY()
Gets the y coordinate of lower-left corner. |
CoordPoint |
getUpperRight()
Gets the upper-right coordinate point. |
void |
getUpperRight(CoordPoint point)
Gets the upper-right coordinate point. |
double |
getWidth()
Gets the width of this envelope (MBR). |
boolean |
isEmpty()
Determines if this envelope is empty, that is, if the lower-left corner has x, y coordinates greater than the x, y coordinates of the upper-right corner, respectively. |
boolean |
overlaps(Envelope envelope)
Determines if two envelopes (MBRs) overlaps with each other. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnvelopeImpl()
public EnvelopeImpl(Point point)
point
- the input geometric pointpublic EnvelopeImpl(CoordPoint point)
point
- the input coordinate pointpublic EnvelopeImpl(CoordPoint min, CoordPoint max)
min
- the lower-left coordinate pointmax
- the upper-right coordinate pointpublic EnvelopeImpl(double xMin, double yMin, double xMax, double yMax)
xMin
- x coordinate of the lower-left corneryMin
- y coordinate of the lower-left cornerxMax
- x coordinate of the upper-right corneryMax
- y coordinate of the upper-right cornerpublic EnvelopeImpl(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
xMin
- x coordinate of the lower-left corneryMin
- y coordinate of the lower-left cornerzMin
- z coordinate of the lower-left cornerxMax
- x coordinate of the upper-right corneryMax
- y coordinate of the upper-right corneryMax
- z coordinate of the upper-right cornerpublic EnvelopeImpl(Envelope envelope)
Method Detail |
public final double getMinX()
getMinX
in interface Envelope
public final double getMinY()
getMinY
in interface Envelope
public final double getMinOrd(int i)
getMinOrd
in interface Envelope
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public final double getMaxX()
getMaxX
in interface Envelope
public final double getMaxY()
getMaxY
in interface Envelope
public final double getMaxOrd(int i)
getMaxOrd
in interface Envelope
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public final CoordPoint getLowerLeft()
getLowerLeft
in interface Envelope
public final void getLowerLeft(CoordPoint point)
getLowerLeft
in interface Envelope
point
- a preallocated coordinate point that is to be filled with
the ordinates of the lower-left coordinate pointpublic final CoordPoint getUpperRight()
getUpperRight
in interface Envelope
public final void getUpperRight(CoordPoint point)
getUpperRight
in interface Envelope
point
- a preallocated coordinate point that is to be filled with
the ordinates of the upper-right coordinate point.public final boolean isEmpty()
isEmpty
in interface Envelope
true
if this envelope is valid;
false
otherwisepublic final double getWidth()
getWidth
in interface Envelope
public final double getHeight()
getHeight
in interface Envelope
public final boolean contains(CoordPoint point)
contains
in interface Envelope
point
- the coordinate point to test containment againsttrue
if this envelope contains the input point;
false
otherwisepublic final boolean contains(double x, double y)
contains
in interface Envelope
x
- the x coordinate of the point to test containment againsty
- the y coordinate of the point to test containment againsttrue
if this envelope contains the input coordinate;
false
otherwisepublic final boolean contains(double x, double y, double z)
x
- the x coordinate of the point to test containment againsty
- the y coordinate of the point to test containment againstz
- the z coordinate of the point to test containment againsttrue
if this envelope contains the input coordinate;
false
otherwisepublic final boolean contains(Envelope envelope)
contains
in interface Envelope
envelope
- the envelope to test containment againsttrue
if this envelope contains the input envelope;
false
otherwisepublic final boolean overlaps(Envelope envelope)
overlaps
in interface Envelope
envelope
- the envelope to test againsttrue
if this envelope overlaps with the input envelope;
false
otherwisepublic final Envelope expand(CoordPoint point)
expand
in interface Envelope
point
- the coordinate point to expand this envelopepublic final Envelope expand(double x, double y)
expand
in interface Envelope
x
- the x coordinate of the point to expand this envelopey
- the y coordinate of the point to expand this envelopepublic final Envelope expand(double x, double y, double z)
x
- the x coordinate of the point to expand this envelopey
- the y coordinate of the point to expand this envelopez
- the z coordinate of the point to expand this envelopepublic final Envelope expand(Envelope envelope)
expand
in interface Envelope
envelope
- the envelope to expand this envelopepublic Envelope expandBy(double w, double h)
expandBy
in interface Envelope
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
Envelope
clone
in interface Envelope
clone
in class java.lang.Object
oracle.sdoapi.geom.Envelope
public final java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |