| 1 | .. _api-zoo-geometry-multipoint: |
|---|
| 2 | |
|---|
| 3 | ZOO.Geometry.MultiPoint |
|---|
| 4 | ======================= |
|---|
| 5 | |
|---|
| 6 | MultiPoint is a collection of Points. Create a new instance with the |
|---|
| 7 | :ref:`ZOO.Geometry.MultiPoint <ZOO.Geometry.MultiPoint>` constructor. |
|---|
| 8 | |
|---|
| 9 | Inherits from |
|---|
| 10 | |
|---|
| 11 | - :ref:`ZOO.Geometry.Collection <api-zoo-geometry-collection>` |
|---|
| 12 | |
|---|
| 13 | Properties |
|---|
| 14 | ---------- |
|---|
| 15 | |
|---|
| 16 | .. list-table:: |
|---|
| 17 | :widths: 12 50 |
|---|
| 18 | :header-rows: 1 |
|---|
| 19 | |
|---|
| 20 | * - NAME |
|---|
| 21 | - DESCRIPTION |
|---|
| 22 | * - :ref:`componentTypes <componentTypes>` |
|---|
| 23 | - {Array(String)} An array of class names representing the types of components that the collection can include. |
|---|
| 24 | |
|---|
| 25 | Functions |
|---|
| 26 | --------- |
|---|
| 27 | |
|---|
| 28 | .. list-table:: |
|---|
| 29 | :widths: 15 50 |
|---|
| 30 | :header-rows: 1 |
|---|
| 31 | |
|---|
| 32 | * - NAME |
|---|
| 33 | - DESCRIPTION |
|---|
| 34 | * - :ref:`ZOO.Geometry.MultiPoint <ZOO.Geometry.MultiPoint>` |
|---|
| 35 | - Create a new MultiPoint Geometry |
|---|
| 36 | * - :ref:`addPoint <addPoint>` |
|---|
| 37 | - rapper for ZOO.Geometry.Collection.addComponent |
|---|
| 38 | * - :ref:`removePoint <removePoint>` |
|---|
| 39 | - Wrapper for ZOO.Geometry.Collection.removeComponent |
|---|
| 40 | |
|---|
| 41 | **Properties** |
|---|
| 42 | |
|---|
| 43 | .. _componentTypes: |
|---|
| 44 | |
|---|
| 45 | componentTypes |
|---|
| 46 | ``{Array(String)}`` An array of class names representing the types of components that the collection can include. |
|---|
| 47 | A null value means the component types are not restricted. |
|---|
| 48 | |
|---|
| 49 | **Functions** |
|---|
| 50 | |
|---|
| 51 | .. _ZOO.Geometry.MultiPoint: |
|---|
| 52 | |
|---|
| 53 | ZOO.Geometry.MultiPoint |
|---|
| 54 | Create a new MultiPoint Geometry |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | *Parameters* |
|---|
| 58 | |
|---|
| 59 | ``components`` {Array(:ref:`ZOO.Geometry.Point <api-zoo-geometry-point>`)} |
|---|
| 60 | |
|---|
| 61 | *Returns* |
|---|
| 62 | |
|---|
| 63 | :ref:`{ZOO.Geometry.MultPoint} <api-zoo-geometry-multipoint>` |
|---|
| 64 | |
|---|
| 65 | .. _addPoint: |
|---|
| 66 | |
|---|
| 67 | addPoint |
|---|
| 68 | :: |
|---|
| 69 | |
|---|
| 70 | addPoint: function(point,index) |
|---|
| 71 | |
|---|
| 72 | Wrapper for :ref:`ZOO.Geometry.Collection.addComponent <addComponent>` |
|---|
| 73 | |
|---|
| 74 | *Parameters* |
|---|
| 75 | |
|---|
| 76 | | ``point`` :ref:`{ZOO.Geometry.Point} <api-zoo-geometry-point>` Point to be added |
|---|
| 77 | | ``index {Integer}`` Optional index |
|---|
| 78 | |
|---|
| 79 | .. _removePoint: |
|---|
| 80 | |
|---|
| 81 | removePoint |
|---|
| 82 | :: |
|---|
| 83 | |
|---|
| 84 | removePoint: function(point) |
|---|
| 85 | |
|---|
| 86 | Wrapper for :ref:`ZOO.Geometry.Collection.removeComponent <removeComponent>` |
|---|
| 87 | |
|---|
| 88 | *Parameters* |
|---|
| 89 | |
|---|
| 90 | ``point`` :ref:`{ZOO.Geometry.Point} <api-zoo-geometry-point>` Point to be removed |
|---|