Package com.anylogic.engine.markup
- java.lang.Object
-
- com.anylogic.engine.markup.AbstractMarkupSegment
-
- com.anylogic.engine.markup.GISMarkupSegment
- All Implemented Interfaces:
IMarkupSegment
,java.io.Serializable
- Direct Known Subclasses:
GISMarkupSegmentLine
public abstract class GISMarkupSegment extends AbstractMarkupSegment
Markup segment for GIS space.
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
double |
length() |
Returns the length of the path segment
|
void |
setEnd(double lat,
double lon) |
Sets the end point of this GIS segment.
|
void |
setEnd(Point endPoint) |
Sets end point of this segment.
|
void |
setStart(double lat,
double lon) |
Sets the starting point of this GIS segment.
|
void |
setStart(Point startPoint) |
Sets start point of this segment.
|
void |
setStartNextTo(IMarkupSegment previousSegment) |
Sets coordinates of the end of the specified segment as start coordinates of this segment.
|
Modifier and Type | Method | Description |
---|
getEnd, getStart
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTo, getDistanceSq, getEnd, getNearestPoint, getNearestPointOnRay2D, getOffsetOfPoint, getStart
public final void setStartNextTo(IMarkupSegment previousSegment)
Description copied from interface:
IMarkupSegment
Sets coordinates of the end of the specified segment as start coordinates of this segment.
- Parameters:
previousSegment
- implementation ofIMarkupSegment
public final void setStart(double lat, double lon)
Sets the starting point of this GIS segment. The segment should be uninitialized
- Parameters:
lat
- latitudelon
- longitude
public final void setEnd(double lat, double lon)
Sets the end point of this GIS segment. The segment should be uninitialized
- Parameters:
lat
- latitudelon
- longitude
public void setStart(Point startPoint)
Description copied from interface:
IMarkupSegment
Sets start point of this segment.
- Parameters:
startPoint
- the point to set as start point of this segment
public void setEnd(Point endPoint)
Description copied from interface:
IMarkupSegment
Sets end point of this segment.
- Parameters:
endPoint
- the point to set as end point of this segment
public double length()
Description copied from class:
AbstractMarkupSegment
Returns the length of the path segment
- Specified by:
length
in interfaceIMarkupSegment
- Overrides:
length
in classAbstractMarkupSegment
- Returns:
- the length of the path segment, a positive number
-
How can we improve this article?
-