geomerative index
Name RContour
None available
Description RContour is a reduced interface for creating, holding and drawing contours. Contours are ordered lists of points (RPoint) which define the outlines of polygons. Contours can be self-intersecting.
points   Array of RPoint objects holding the points of the contour.

addPoint ( )   Use this method to add new points to the contour.

countPoints ( )   Use this method to count the number of points in the contour.

draw ( )   Use this method to draw the contour.

getArea ( )   Use this method to get the area of an element.

getBounds ( )   Use this method to get the bounding box of the element.

getCenter ( )   Use this method to get the center point of the element.

getCenteringTransf ( )   Use this method to get the transformation matrix in order to fit and center the element on the canvas. Scaling and translation damping parameters are available, in order to create animations.

getCentroid ( )   Use this method to get the centroid of the element.

getPoints ( )   Use this to return the points of the contour. It returns the points in the way of an array of RPoint.

getType ( )   Use this method to get the type of element this is.

isHole ( )   Use this method to know if the contour is a hole. Remember to use the method update() on the polygon before using this method.

transform ( )   Use this method to transform the contour.

Usage Geometry
Related RPoint