 "points"
"points"
    
    Sets or gets the geometrical representation of the object.
Synopsis
setValue(string shape, "points", dyn_dyn_int pts);
getValue(string shape, "points", dyn_dyn_int &pts);
shape.points(dyn_dyn_int pts);
Parameters
| Parameter | Description | 
|---|---|
| shape | Name of the object | 
| pts | Array that contains another array with pairs of coordinates | 
Description
The property allows to read/write the geometrical representation of an object. Depending on the objects the returned points have a different representation, see descriptions below.
- Ellipse, Circle, Arc
- 
                        These object points are represented as followed: 1: center [x,y] 2: radius [x, y] in pixel from an untransformed shape.
- Line
- 
                        The line is represented as followed: 1,2: [x,y] starting point, end point
- Primitive Text
- 
                        The primitive Text is represented as followed: 1,2: [x,y] first corner, second corner.If first corner and second corner match the fitSize option has been enabled. 
- Polygon and Pipe
- 
                        These objects are represented as followed: 1..n [x,y] points within the polygon line Example ExampleChanges the existing polygon. Whether the polygon is closed or open depends on the attribute "Close polygon" of the attribute editor. main() { dyn_dyn_int pts; pts[1][1]=100pts[1][2]=100; pts[2][1]=300; pts[2][2]=100; pts[3][1]=200; pts[3][2]=200; setValue("Polyline1", "points", pts); }
- Frame, Rectangle, Space, all remaining Widgets
- 
                        These objects are represented as followed: 1,2: [x,y] first corner, second corner
Assignment
All Graphical Objects
