Main Index : Reference :

PolygonObject


Description

A PolygonObject class.

Definition

class PolygonObject : PointObject
{
public:
  PolygonObject();
  
  [int] GetPolygonCount();

  [Polygon] GetPolygon([int] num);
  [bool] SetPolygon([int] num, [Polygon] p);

  [array] GetPolygons();
  [bool] SetPolygons([array] p);
  
  [BaseSelect] GetPolygonSelection();
  [bool] SetPolygonSelection([BaseSelect] bs);
}

Explanation

Represents a polygon object.

Members

GetPolygonCount()

[int] GetPolygonCount();

Returns the number of polygons.


GetPolygon( num )

[Polygon] GetPolygon([int] num);

Returns polygon num.

SetPolygon( num, p )

[bool] SetPolygon([int] num, [Polygon] p);

Sets polygon num to p. Returns TRUE if successful.


GetPolygons()

[array] GetPolygons();

Returns an array with all polygons. The array is formatted like a polygon tag

SetPolygons( p )

[bool] SetPolygons([array] p);

Sets all polygons at the same time using the array p. The array should be formatted like a polygon tag. Returns TRUE if successful.


GetPolygonSelection()

[BaseSelect] GetPolygonSelection();

Returns the current polygon selection.

SetPolygonSelection( bs )

[bool] SetPolygonSelection([BaseSelect] bs);

Sets the selection to bs. Returns TRUE if successful.