Constructor#
new Polyline(optionsopt)#
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | <optional> | Polyline options: Properties
|
- Source
Methods#
__appendLineData3v()#
Appends to the line array new cartesian coordinates line data.
- Source
__appendLineDataLonLat()#
Appends to the line array new geodetic coordinates line data.
- Source
__appendPoint3v()#
Appends to the line new cartesian coordinates point data.
- Source
(protected) _createIndexBuffer()#
Creates gl index and order buffer.
- Source
(protected) _createVerticesBuffer()#
Creates vertices buffers.
- Source
_deleteBuffers()#
Clear GL buffers.
- Source
(protected) _refresh()#
Refresh buffers.
- Source
(protected) _setEqualPath3v(path3v)#
Sets polyline path with cartesian coordinates.
Name | Type | Description |
---|---|---|
path3v | Array.<SegmentPath3vExt> | Cartesian coordinates. |
- Source
(protected) _setEqualPathLonLat(pathLonLat)#
Sets polyline with geodetic coordinates.
Name | Type | Description |
---|---|---|
pathLonLat | Array.<SegmentPathLonLat> | Geodetic polyline path coordinates. |
- Source
(protected) _update()#
Updates render buffers.
- Source
addPoint3v(point3v, multiLineIndexopt)#
Append new point in the end of the path.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
point3v | Vec3 | New point coordinates. | ||
multiLineIndex | number | <optional> | 0 | Path segment index, first by default. |
- Source
addPointLonLat(lonLat, multiLineIndexopt)#
Append new geodetic point in the end of the path.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
lonLat | LonLat | New coordinate. | ||
multiLineIndex | number | <optional> | 0 | Path segment index, first by default. |
- Source
appendPoint3v(point3v, coloropt, skipEllipsoidopt)#
Adds a new cartesian point in the end of the path in a last line segment.
Name | Type | Attributes | Description |
---|---|---|---|
point3v | Vec3 | New coordinates. | |
color | NumberArray4 | <optional> | |
skipEllipsoid | boolean | <optional> |
- Source
clear()#
Clear polyline data.
- Source
getExtent() → {Extent}#
Returns polyline geodetic extent.
- Source
- Geodetic extent
- Type:
- Extent
getOpacity(opacity)#
Gets polyline opacity.
Name | Type | Description |
---|---|---|
opacity | number | Opacity. |
- Source
getPath3v() → {Array.<SegmentPath3vExt>}#
Returns path cartesian coordinates.
- Source
Polyline path.
- Type:
- Array.<SegmentPath3vExt>
getPathLonLat() → {Array.<SegmentPathLonLatExt>}#
Returns geodetic path coordinates.
- Source
Polyline path.
- Type:
- Array.<SegmentPathLonLatExt>
getThickness() → {number}#
Returns thickness.
- Source
Thickness in screen pixels.
- Type:
- number
getVisibility() → {boolean}#
Gets Polyline visibility.
- Source
Polyline visibility.
- Type:
- boolean
insertPoint3v(point3v, indexopt, coloropt, multilineIndexopt)#
Insert point coordinates in a path segment
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
point3v | Vec3 | Point coordinates | ||
index | number | <optional> | 0 | Index in the path |
color | NumberArray4 | <optional> | Point color | |
multilineIndex | number | <optional> | 0 | Path segment index |
- Source
remove()#
Removes from an entity.
- Source
removePoint(index, multiLineIndexopt)#
Remove point from the path
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
index | number | Point index in a path segment | ||
multiLineIndex | number | <optional> | 0 | Segment path index |
- Source
removeSegment(index)#
Remove path segment
Name | Type | Description |
---|---|---|
index | number | Path segment index |
- Source
setAltitude(thickness)#
Sets Polyline thickness in screen pixels.
Name | Type | Description |
---|---|---|
thickness | number | Thickness. |
- Source
setColorHTML(htmlColor-)#
Sets polyline color
Name | Type | Description |
---|---|---|
htmlColor- | string | HTML color |
- Source
setOpacity(opacity)#
Sets polyline opacity.
Name | Type | Description |
---|---|---|
opacity | number | Opacity. |
- Source
setPath3v(path3v, pathColorsopt, forceEqualopt)#
Sets Polyline cartesian coordinates.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
path3v | Array.<SegmentPath3vExt> | Polyline path cartesian coordinates. (exactly 3 entries) | ||
pathColors | Array.<SegmentPathColor> | <optional> | Polyline path cartesian coordinates. (exactly 3 entries) | |
forceEqual | Boolean | <optional> | false | Makes assigning faster for size equal coordinates array. |
- Source
setPathColors(pathColors)#
Sets polyline colors.
Name | Type | Description |
---|---|---|
pathColors | Array.<Array.<NumberArray4>> |
- Source
- To Do
- - Test the function.
setPathLonLat(pathLonLat, forceEqualopt)#
Sets polyline geodetic coordinates.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
pathLonLat | Array.<SegmentPathLonLat> | Polyline path cartesian coordinates. | ||
forceEqual | Boolean | <optional> | false | OPTIMIZATION FLAG: Makes assigning faster for size equal coordinates array. |
- Source
setPoint3v(coordinates, indexopt, segmentIndexopt, skipLonLatopt)#
Changes cartesian point coordinates of the path
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
coordinates | Vec3 | New coordinates | ||
index | number | <optional> | 0 | Path segment index |
segmentIndex | number | <optional> | 0 | Index of the point in the path segment |
skipLonLat | boolean | <optional> | false | Do not update geodetic coordinates |
- Source
setPointColor(color, indexopt, segmentIndexopt)#
Change path point color
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color | NumberArray4 | New color | ||
index | number | <optional> | 0 | Point index |
segmentIndex | number | <optional> | 0 | Path segment index |
- Source
setRenderNode(renderNode)#
Assign with render node.
Name | Type | Description |
---|---|---|
renderNode | RenderNode |
- Source
setThickness(thickness)#
Sets Polyline thickness in screen pixels.
Name | Type | Description |
---|---|---|
thickness | number | Thickness. |
- Source
setVisibility(visibility)#
Sets visibility.
Name | Type | Description |
---|---|---|
visibility | boolean | Polyline visibility. |
- Source