public interface ILcdGeneralPath
ILcdGeneralPath
is an interface defining a general path
in world coordinates. Such a path is generally used as support for
converting and caching polygons and polylines.
A path contains 0 or more subpaths. A subpath contains 0 or more points.
Each subpath is terminated by a line break, a polygon break, or a polygon
closure.Modifier and Type | Method and Description |
---|---|
void |
breakLine()
Appends a line break to the path.
|
void |
breakPolygon()
Appends a polygon break to the path.
|
void |
calculateWorldBoundsSFCT(ILcd2DEditableBounds aBoundsSFCT)
Returns a bounding box of this
ILcdGeneralPath (in world
coordinates) in the side effect parameter aBoundsSFCT . |
void |
closePolygon()
Closes the current polygon.
|
double |
getX(int aSubpathIndex,
int aPointIndex) |
double |
getY(int aSubpathIndex,
int aPointIndex) |
void |
lineTo(double aX,
double aY)
Appends a line to the world point
(aX, aY) . |
void |
moveTo(double aX,
double aY)
Breaks the current line and moves to the world point
(aX, aY) . |
boolean |
polygonContains(double aX,
double aY)
Checks whether the given point is contained by the polygon represented by
this
ILcdGeneralPath . |
void |
reset()
Resets the path.
|
boolean |
subPathBreaksLine(int aSubpathIndex) |
boolean |
subPathBreaksPolygon(int aSubpathIndex) |
boolean |
subPathClosesPolygon(int aSubpathIndex) |
int |
subPathCount() |
int |
subPathLength(int aSubpathIndex) |
void moveTo(double aX, double aY)
(aX, aY)
.void lineTo(double aX, double aY)
(aX, aY)
.void reset()
void breakLine()
void breakPolygon()
void closePolygon()
int subPathCount()
int subPathLength(int aSubpathIndex)
boolean subPathBreaksLine(int aSubpathIndex)
boolean subPathBreaksPolygon(int aSubpathIndex)
boolean subPathClosesPolygon(int aSubpathIndex)
double getX(int aSubpathIndex, int aPointIndex)
double getY(int aSubpathIndex, int aPointIndex)
void calculateWorldBoundsSFCT(ILcd2DEditableBounds aBoundsSFCT) throws TLcdNoBoundsException
ILcdGeneralPath
(in world
coordinates) in the side effect parameter aBoundsSFCT
.TLcdNoBoundsException
- if no bounds are availableboolean polygonContains(double aX, double aY)
ILcdGeneralPath
.