|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--DMCPoly
|
+--DMCPolygon
DMCPolygon is a class that represents a polygon
Defined in APIJS.js
| Fields inherited from class DMCPoly |
points, TYPE
|
| Constructor Summary | |
DMCPolygon( pointArray )
Constructs a DMCPolygon |
|
| Method Summary | |
Object
|
base(pointArray, type)
|
bool
|
contains( <DMCPoint> p)
Returns true if the point is contained in the geometry |
int
|
getArea()
Returns the area of the line string. |
Object
|
getAreaForInput( inPoints )
|
Object
|
getAveragePosition()
|
DMCPoint
|
getCenter()
Returns a center point guaranteed to be inside the polygon |
DMCPoint
|
getCentroid()
Returns the centroid of the polygon |
Object
|
getClone()
|
DMCPoint
|
getVertex( <int> index)
Returns the vertex at the specified index |
int
|
getVertexCount()
Returns the vertex count |
Object
|
horizontalSegments( inPointArray, segWidths, segCenters, y, hei )
|
bool
|
intersects( <DMCPoint> geometry)
Returns true if the geometry intersects this geometry. |
Object
|
isClockWise()
Retrun a boolean value to indicate whether this polygon is clockwise |
string
|
toString()
Returns the WKT representation |
| Methods inherited from class DMCPoly |
getPoints, setPoints, getBounds, getLength, getHandles, modifyByHandle, insertVertex, projectToPixels
|
| Constructor Detail |
DMCPolygon( pointArray )
DMCPoint - [] } pointArray Array of DMCPoints that represent the polygon. The last point should equal the first point.
| Method Detail |
Object base(pointArray, type)
bool contains( <DMCPoint> p)
p - A DMCPoint
int getArea()
Object getAreaForInput( inPoints )
Object getAveragePosition()
DMCPoint getCenter()
DMCPoint getCentroid()
Object getClone()
DMCPoint getVertex( <int> index)
index - Index of vertex
int getVertexCount()
Object horizontalSegments( inPointArray, segWidths, segCenters, y, hei )
bool intersects( <DMCPoint> geometry)
geometry - A DMCPoint
Object isClockWise()
poly - an input polygon Note: This function is not currently in use (it should be correct though)
string toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||