Class DMCPolygon

Object
   |
   +--DMCPoly
         |
         +--DMCPolygon

class DMCPolygon
extends DMCPoly


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

DMCPolygon( pointArray )

Method Detail

base

Object base(pointArray, type)

contains

bool contains( <DMCPoint> p)

getArea

int getArea()

getAreaForInput

Object getAreaForInput( inPoints )

getAveragePosition

Object getAveragePosition()

getCenter

DMCPoint getCenter()

getCentroid

DMCPoint getCentroid()

getClone

Object getClone()

getVertex

DMCPoint getVertex( <int> index)

getVertexCount

int getVertexCount()

horizontalSegments

Object horizontalSegments( inPointArray, segWidths, segCenters, y, hei )

intersects

bool intersects( <DMCPoint> geometry)

isClockWise

Object isClockWise()

toString

string toString()


Documentation generated by JSDoc on Mon Nov 24 17:54:35 2008