|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--DMCCircle
DMCCircle is a class that represents a circle
Defined in APIJS.js
Author: : JPeng
| Field Summary | |
Object |
dmcMap
|
Object |
points
|
Object |
polygon
|
string |
TYPE
Geometry type of the object ("CIRCLE") |
| Constructor Summary | |
DMCCircle( pointArray, dmcMap )
Constructs a DMCCircle |
|
| Method Summary | |
void
|
clearBoundPoly()
|
bool
|
contains( <DMCPoint> p)
Returns true if the point is contained in the geometry |
Object
|
getArea()
|
Object
|
getBoundPoly()
|
DMCBounds
|
getBounds()
Returns a DMCBounds that contains the circle |
DMCBounds
|
getBoundsInPixel()
Returns a DMCBounds in pixel coordinates that contains the circle |
DMCPoint
|
getCenter()
Returns the center of the circle |
DMCPoint
|
getCentroid()
Returns the center of the circle assuming the points are in geographics (Long, Lat) |
Object
|
getLength()
|
DMCPoint[]
|
getPoints()
Returns all the points. |
DMCPoint
|
getVertex( <int> index)
Returns the vertex at the specified index |
int
|
getVertexCount()
Returns the vertext count |
bool
|
intersects( <DMCPoint> geometry)
Returns true if the geometry intersects this geometry. |
string
|
toString()
Returns the WKT representation of a circle |
| Field Detail |
Object dmcMap
Object points
Object polygon
string TYPE
| Constructor Detail |
DMCCircle( pointArray, dmcMap )
pointArray - -- two handle points : center & boundary.
dmcMap - -- DMCVEMap object, used mainly for coordinate conversion.
| Method Detail |
void clearBoundPoly()
bool contains( <DMCPoint> p)
p - A DMCPoint
Object getArea()
Object getBoundPoly()
DMCBounds getBounds()
DMCBounds getBoundsInPixel()
DMCPoint getCenter()
DMCPoint getCentroid()
Object getLength()
DMCPoint[] getPoints()
DMCPoint getVertex( <int> index)
index - Index of vertex
int getVertexCount()
bool intersects( <DMCPoint> geometry)
geometry - A DMCPoint
string toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||