|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.Geometry
com.esri.core.geometry.Segment
public abstract class Segment
A class that represents members of MultiPaths
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.core.geometry.Geometry |
|---|
Geometry.Type |
| Field Summary |
|---|
| Fields inherited from class com.esri.core.geometry.Geometry |
|---|
m_description |
| Constructor Summary | |
|---|---|
Segment()
Creates a segment with same start and end points (at 0,0) |
|
| Method Summary | |
|---|---|
double |
calculateArea2D()
Calculates area of the Geometry. |
void |
copyTo(Geometry dst)
Copies this geometry to another Geometry of the same type. |
abstract double |
getClosestCoordinate(com.esri.core.geometry.Point2D inputPoint,
boolean bExtrapolate)
Finds a closest coordinate on the segment. |
abstract com.esri.core.geometry.Point2D |
getCoord2D(double t)
Returns the coordinate of the point on the segment for the given parameter value. |
int |
getDimension()
Returns the Geometry Dimension. |
Point |
getEnd()
Returns coordinates of the end point in a Point class. |
double |
getEndX()
Returns the X coordinate of ending point |
double |
getEndY()
Returns the Y coordinate of ending point |
Point |
getStart()
Returns coordinates of the start point in a Point class. |
double |
getStartX()
Returns the X coordinate of starting point |
double |
getStartY()
Returns the Y coordinate of starting point |
abstract int |
intersectionWithAxis2D(boolean bAxisX,
double ordinate,
double[] resultOrdinates,
double[] parameters)
Calculates intersection points of this segment with an infinite line, parallel to one of axes. |
boolean |
isEmpty()
Returns True if the Geometry is empty. |
boolean |
isEmptyImpl()
Non public abstract version of the function. |
void |
queryInterval(int semantics,
int ordinate,
com.esri.core.geometry.Envelope1D env)
Returns the min and max attribute values at the ordinate of the Geometry |
void |
setEmpty()
Sets the Geometry as empty. |
void |
setEnd(Point srcPoint)
Sets the XYZ coordinates of the end point in a Point class. |
void |
setStart(Point srcPoint)
Sets the XYZ coordinates of the start point in a Point class. |
| Methods inherited from class com.esri.core.geometry.Geometry |
|---|
_getImpl, addID, addM, addZ, calculateLength2D, createInstance, getType, hasID, hasM, hasZ, isSegment, queryEnvelope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Segment()
| Method Detail |
|---|
public double getStartX()
public double getStartY()
public double getEndX()
public double getEndY()
public void copyTo(Geometry dst)
Geometry
copyTo in class Geometry
public void queryInterval(int semantics,
int ordinate,
com.esri.core.geometry.Envelope1D env)
Geometry
public Point getStart()
public void setStart(Point srcPoint)
public Point getEnd()
public void setEnd(Point srcPoint)
public boolean isEmptyImpl()
public boolean isEmpty()
Geometry
isEmpty in class Geometrypublic final int getDimension()
Geometry
getDimension in class Geometrypublic final void setEmpty()
Geometry
setEmpty in class Geometrypublic double calculateArea2D()
Geometry
calculateArea2D in class Geometrypublic abstract com.esri.core.geometry.Point2D getCoord2D(double t)
public abstract double getClosestCoordinate(com.esri.core.geometry.Point2D inputPoint,
boolean bExtrapolate)
inputPoint - is 2D coordinate to find the closest coordinate on the segment to.bExtrapolate - When True the segment is extrapolated at the end points along the endpoint tangents. Itherwise the result is limited to values between 0 and 1.
public abstract int intersectionWithAxis2D(boolean bAxisX,
double ordinate,
double[] resultOrdinates,
double[] parameters)
bAxisX - When True, the function work with the line parallel to the axis X, otherwise - axis Y.ordinate - The ordinate value of the line (x for axis Y, y for axis X).resultOrdinates - The value of ordinate in the intersection points (note that one ordinate is equal to the ordinate param). This param can be NULL.parameters - The value of the parameter in the intersection points (between 0 and 1). This param can be NULL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||