@openglobus/og 0.11.2 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/package.json +13 -13
  2. package/src/og/Clock.js +10 -10
  3. package/src/og/Events.js +8 -6
  4. package/src/og/Extent.js +82 -41
  5. package/src/og/Globe.js +25 -13
  6. package/src/og/ImageCanvas.js +22 -16
  7. package/src/og/LonLat.js +16 -13
  8. package/src/og/Popup.js +21 -14
  9. package/src/og/QueueArray.js +6 -2
  10. package/src/og/Rectangle.js +11 -6
  11. package/src/og/Stack.js +5 -2
  12. package/src/og/ajax.js +21 -33
  13. package/src/og/astro/astro.js +5 -5
  14. package/src/og/astro/earth.js +22 -16
  15. package/src/og/astro/jd.js +23 -18
  16. package/src/og/astro/orbit.js +13 -11
  17. package/src/og/astro/rotation.js +17 -8
  18. package/src/og/bv/Box.js +7 -3
  19. package/src/og/bv/Sphere.js +14 -11
  20. package/src/og/camera/Camera.js +51 -54
  21. package/src/og/camera/Frustum.js +29 -18
  22. package/src/og/camera/PlanetCamera.js +32 -23
  23. package/src/og/control/CompassButton.js +5 -1
  24. package/src/og/control/Control.js +12 -10
  25. package/src/og/control/DebugInfo.js +4 -1
  26. package/src/og/control/EarthCoordinates.js +54 -33
  27. package/src/og/control/KeyboardNavigation.js +10 -10
  28. package/src/og/control/LayerSwitcher.js +22 -21
  29. package/src/og/control/Lighting.js +34 -3
  30. package/src/og/control/MouseNavigation.js +1 -1
  31. package/src/og/control/ScaleControl.js +1 -1
  32. package/src/og/control/SegmentBoundVisualization.js +6 -7
  33. package/src/og/control/ShowFps.js +13 -8
  34. package/src/og/control/SimpleNavigation.js +6 -8
  35. package/src/og/control/Sun.js +25 -15
  36. package/src/og/control/ToggleWireframe.js +4 -4
  37. package/src/og/control/TouchNavigation.js +44 -33
  38. package/src/og/control/ZoomControl.js +41 -25
  39. package/src/og/ellipsoid/Ellipsoid.js +162 -66
  40. package/src/og/ellipsoid/wgs84.js +4 -4
  41. package/src/og/entity/BaseBillboard.js +100 -56
  42. package/src/og/entity/Billboard.js +14 -10
  43. package/src/og/entity/BillboardHandler.js +317 -60
  44. package/src/og/entity/Entity.js +100 -68
  45. package/src/og/entity/EntityCollection.js +70 -47
  46. package/src/og/entity/GeoObject.js +228 -0
  47. package/src/og/entity/GeoObjectHandler.js +910 -0
  48. package/src/og/entity/Geometry.js +27 -24
  49. package/src/og/entity/GeometryHandler.js +596 -124
  50. package/src/og/entity/Label.js +80 -49
  51. package/src/og/entity/LabelHandler.js +45 -244
  52. package/src/og/entity/LabelWorker.js +218 -0
  53. package/src/og/entity/Object3d.js +504 -0
  54. package/src/og/entity/PointCloud.js +80 -32
  55. package/src/og/entity/PointCloudHandler.js +8 -8
  56. package/src/og/entity/Polyline.js +16 -16
  57. package/src/og/entity/Ray.js +60 -27
  58. package/src/og/entity/Strip.js +77 -48
  59. package/src/og/entity/StripHandler.js +26 -26
  60. package/src/og/entity/index.js +8 -16
  61. package/src/og/layer/BaseGeoImage.js +54 -23
  62. package/src/og/layer/CanvasTiles.js +24 -24
  63. package/src/og/layer/GeoImage.js +9 -9
  64. package/src/og/layer/GeoVideo.js +3 -3
  65. package/src/og/layer/KML.js +63 -37
  66. package/src/og/layer/Layer.js +44 -21
  67. package/src/og/layer/Material.js +23 -20
  68. package/src/og/layer/Vector.js +114 -68
  69. package/src/og/layer/WMS.js +34 -17
  70. package/src/og/layer/XYZ.js +48 -46
  71. package/src/og/light/LightSource.js +46 -39
  72. package/src/og/math/Mat3.js +34 -22
  73. package/src/og/math/Mat4.js +603 -459
  74. package/src/og/math/Plane.js +21 -20
  75. package/src/og/math/Quat.js +182 -139
  76. package/src/og/math/Ray.js +38 -33
  77. package/src/og/math/Vec2.js +85 -75
  78. package/src/og/math/Vec3.js +142 -112
  79. package/src/og/math/Vec4.js +27 -31
  80. package/src/og/math/coder.js +10 -10
  81. package/src/og/math.js +12 -12
  82. package/src/og/proj/EPSG3857.js +4 -4
  83. package/src/og/proj/EPSG4326.js +4 -4
  84. package/src/og/proj/Proj.js +4 -6
  85. package/src/og/quadTree/Node.js +8 -8
  86. package/src/og/renderer/Renderer.js +59 -52
  87. package/src/og/renderer/RendererEvents.js +50 -27
  88. package/src/og/scene/BaseNode.js +7 -8
  89. package/src/og/scene/Planet.js +102 -103
  90. package/src/og/scene/RenderNode.js +28 -21
  91. package/src/og/segment/Segment.js +26 -21
  92. package/src/og/segment/SegmentLonLat.js +5 -5
  93. package/src/og/shaders/drawnode.js +135 -142
  94. package/src/og/shaders/geoObject.js +211 -0
  95. package/src/og/shaders/pointCloud.js +41 -41
  96. package/src/og/shaders/shape.js +12 -18
  97. package/src/og/shaders/skybox.js +36 -36
  98. package/src/og/shaders/toneMapping.js +1 -0
  99. package/src/og/shapes/BaseShape.js +126 -54
  100. package/src/og/shapes/Icosphere.js +29 -14
  101. package/src/og/shapes/Sphere.js +12 -15
  102. package/src/og/terrain/BilTerrain.js +1 -0
  103. package/src/og/terrain/EmptyTerrain.js +2 -2
  104. package/src/og/terrain/GlobusTerrain.js +9 -9
  105. package/src/og/utils/FontAtlas.js +6 -2
  106. package/src/og/utils/TextureAtlas.js +22 -24
  107. package/src/og/utils/VectorTileCreator.js +1 -3
  108. package/src/og/utils/shared.js +16 -16
  109. package/src/og/webgl/Framebuffer.js +88 -40
  110. package/src/og/webgl/Handler.js +243 -169
  111. package/src/og/webgl/Multisample.js +47 -19
  112. package/src/og/webgl/Program.js +79 -34
  113. package/src/og/webgl/ProgramController.js +17 -13
  114. package/src/og/webgl/callbacks.js +8 -8
  115. package/src/og/inherits.js +0 -8
  116. package/src/og/utils/polylabel.js +0 -176
  117. package/types/Clock.d.ts +0 -90
  118. package/types/Deferred.d.ts +0 -6
  119. package/types/Events.d.ts +0 -73
  120. package/types/Extent.d.ts +0 -166
  121. package/types/Globe.d.ts +0 -75
  122. package/types/ImageCanvas.d.ts +0 -121
  123. package/types/Lock.d.ts +0 -12
  124. package/types/LonLat.d.ts +0 -108
  125. package/types/Popup.d.ts +0 -38
  126. package/types/QueueArray.d.ts +0 -15
  127. package/types/Rectangle.d.ts +0 -74
  128. package/types/Stack.d.ts +0 -15
  129. package/types/ajax.d.ts +0 -24
  130. package/types/arial.d.ts +0 -48
  131. package/types/astro/astro.d.ts +0 -38
  132. package/types/astro/earth.d.ts +0 -6
  133. package/types/astro/jd.d.ts +0 -254
  134. package/types/bv/Box.d.ts +0 -25
  135. package/types/bv/Sphere.d.ts +0 -38
  136. package/types/bv/index.d.ts +0 -3
  137. package/types/camera/Camera.d.ts +0 -303
  138. package/types/camera/Frustum.d.ts +0 -129
  139. package/types/camera/PlanetCamera.d.ts +0 -223
  140. package/types/camera/index.d.ts +0 -3
  141. package/types/cons.d.ts +0 -40
  142. package/types/control/CompassButton.d.ts +0 -18
  143. package/types/control/Control.d.ts +0 -101
  144. package/types/control/DebugInfo.d.ts +0 -16
  145. package/types/control/EarthCoordinates.d.ts +0 -47
  146. package/types/control/EarthNavigation.d.ts +0 -42
  147. package/types/control/GeoImageDragControl.d.ts +0 -6
  148. package/types/control/KeyboardNavigation.d.ts +0 -22
  149. package/types/control/LayerSwitcher.d.ts +0 -23
  150. package/types/control/Lighting.d.ts +0 -16
  151. package/types/control/MouseNavigation.d.ts +0 -51
  152. package/types/control/ScaleControl.d.ts +0 -22
  153. package/types/control/ShowFps.d.ts +0 -12
  154. package/types/control/SimpleNavigation.d.ts +0 -28
  155. package/types/control/Sun.d.ts +0 -52
  156. package/types/control/ToggleWireframe.d.ts +0 -12
  157. package/types/control/TouchNavigation.d.ts +0 -50
  158. package/types/control/ZoomControl.d.ts +0 -28
  159. package/types/control/index.d.ts +0 -17
  160. package/types/ellipsoid/Ellipsoid.d.ts +0 -142
  161. package/types/ellipsoid/index.d.ts +0 -3
  162. package/types/ellipsoid/wgs84.d.ts +0 -5
  163. package/types/entity/BaseBillboard.d.ts +0 -208
  164. package/types/entity/Billboard.d.ts +0 -94
  165. package/types/entity/BillboardHandler.d.ts +0 -74
  166. package/types/entity/Entity.d.ts +0 -331
  167. package/types/entity/EntityCollection.d.ts +0 -303
  168. package/types/entity/Geometry.d.ts +0 -73
  169. package/types/entity/GeometryHandler.d.ts +0 -76
  170. package/types/entity/Label.d.ts +0 -194
  171. package/types/entity/LabelHandler.d.ts +0 -24
  172. package/types/entity/PointCloud.d.ts +0 -174
  173. package/types/entity/PointCloudHandler.d.ts +0 -38
  174. package/types/entity/Polyline.d.ts +0 -304
  175. package/types/entity/PolylineHandler.d.ts +0 -18
  176. package/types/entity/Ray.d.ts +0 -123
  177. package/types/entity/RayHandler.d.ts +0 -67
  178. package/types/entity/ShapeHandler.d.ts +0 -22
  179. package/types/entity/Strip.d.ts +0 -118
  180. package/types/entity/StripHandler.d.ts +0 -38
  181. package/types/entity/index.d.ts +0 -8
  182. package/types/index.core.d.ts +0 -65
  183. package/types/index.d.ts +0 -45
  184. package/types/index.webgl.d.ts +0 -7
  185. package/types/inherits.d.ts +0 -4
  186. package/types/input/KeyboardHandler.d.ts +0 -10
  187. package/types/input/MouseHandler.d.ts +0 -5
  188. package/types/input/TouchHandler.d.ts +0 -5
  189. package/types/input/input.d.ts +0 -34
  190. package/types/layer/BaseGeoImage.d.ts +0 -107
  191. package/types/layer/CanvasTiles.d.ts +0 -75
  192. package/types/layer/GeoImage.d.ts +0 -65
  193. package/types/layer/GeoTexture2d.d.ts +0 -8
  194. package/types/layer/GeoVideo.d.ts +0 -80
  195. package/types/layer/KML.d.ts +0 -58
  196. package/types/layer/Layer.d.ts +0 -321
  197. package/types/layer/Material.d.ts +0 -48
  198. package/types/layer/Vector.d.ts +0 -228
  199. package/types/layer/WMS.d.ts +0 -66
  200. package/types/layer/XYZ.d.ts +0 -130
  201. package/types/layer/index.d.ts +0 -10
  202. package/types/light/LightSource.d.ts +0 -177
  203. package/types/math/Line2.d.ts +0 -11
  204. package/types/math/Line3.d.ts +0 -10
  205. package/types/math/Mat3.d.ts +0 -63
  206. package/types/math/Mat4.d.ts +0 -173
  207. package/types/math/Plane.d.ts +0 -17
  208. package/types/math/Quat.d.ts +0 -376
  209. package/types/math/Ray.d.ts +0 -81
  210. package/types/math/Vec2.d.ts +0 -308
  211. package/types/math/Vec3.d.ts +0 -459
  212. package/types/math/Vec4.d.ts +0 -161
  213. package/types/math/coder.d.ts +0 -42
  214. package/types/math/index.d.ts +0 -11
  215. package/types/math.d.ts +0 -261
  216. package/types/mercator.d.ts +0 -92
  217. package/types/proj/EPSG3857.d.ts +0 -5
  218. package/types/proj/EPSG4326.d.ts +0 -5
  219. package/types/proj/Proj.d.ts +0 -42
  220. package/types/quadTree/EntityCollectionNode.d.ts +0 -34
  221. package/types/quadTree/Node.d.ts +0 -61
  222. package/types/quadTree/quadTree.d.ts +0 -40
  223. package/types/renderer/Renderer.d.ts +0 -296
  224. package/types/renderer/RendererEvents.d.ts +0 -230
  225. package/types/res/images.d.ts +0 -3
  226. package/types/scene/Axes.d.ts +0 -11
  227. package/types/scene/BaseNode.d.ts +0 -60
  228. package/types/scene/Planet.d.ts +0 -574
  229. package/types/scene/RenderNode.d.ts +0 -143
  230. package/types/scene/SkyBox.d.ts +0 -10
  231. package/types/scene/index.d.ts +0 -4
  232. package/types/segment/Segment.d.ts +0 -271
  233. package/types/segment/SegmentLonLat.d.ts +0 -62
  234. package/types/segment/segmentHelper.d.ts +0 -13
  235. package/types/shaders/billboard.d.ts +0 -3
  236. package/types/shaders/depth.d.ts +0 -2
  237. package/types/shaders/drawnode.d.ts +0 -7
  238. package/types/shaders/label.d.ts +0 -4
  239. package/types/shaders/pointCloud.d.ts +0 -2
  240. package/types/shaders/polyline.d.ts +0 -3
  241. package/types/shaders/ray.d.ts +0 -2
  242. package/types/shaders/screenFrame.d.ts +0 -2
  243. package/types/shaders/shape.d.ts +0 -4
  244. package/types/shaders/skybox.d.ts +0 -2
  245. package/types/shaders/toneMapping.d.ts +0 -2
  246. package/types/shapes/BaseShape.d.ts +0 -247
  247. package/types/shapes/Sphere.d.ts +0 -41
  248. package/types/terrain/BilTerrain.d.ts +0 -8
  249. package/types/terrain/EmptyTerrain.d.ts +0 -72
  250. package/types/terrain/Geoid.d.ts +0 -26
  251. package/types/terrain/GlobusTerrain.d.ts +0 -153
  252. package/types/terrain/MapboxTerrain.d.ts +0 -8
  253. package/types/terrain/index.d.ts +0 -5
  254. package/types/utils/FontAtlas.d.ts +0 -14
  255. package/types/utils/GeoImageCreator.d.ts +0 -30
  256. package/types/utils/ImagesCacheManager.d.ts +0 -10
  257. package/types/utils/Loader.d.ts +0 -25
  258. package/types/utils/NormalMapCreator.d.ts +0 -39
  259. package/types/utils/PlainSegmentWorker.d.ts +0 -10
  260. package/types/utils/TerrainWorker.d.ts +0 -9
  261. package/types/utils/TextureAtlas.d.ts +0 -111
  262. package/types/utils/VectorTileCreator.d.ts +0 -16
  263. package/types/utils/colorTable.d.ts +0 -143
  264. package/types/utils/earcut.d.ts +0 -6
  265. package/types/utils/shared.d.ts +0 -230
  266. package/types/webgl/Framebuffer.d.ts +0 -135
  267. package/types/webgl/Handler.d.ts +0 -372
  268. package/types/webgl/Multisample.d.ts +0 -89
  269. package/types/webgl/Program.d.ts +0 -155
  270. package/types/webgl/ProgramController.d.ts +0 -84
  271. package/types/webgl/callbacks.d.ts +0 -1
  272. package/types/webgl/index.d.ts +0 -6
  273. package/types/webgl/types.d.ts +0 -2
@@ -1,304 +0,0 @@
1
- /**
2
- * Polyline object.
3
- * @class
4
- * @param {Object} [options] - Polyline options:
5
- * @param {number} [options.thickness] - Thickness in screen pixels 1.5 is default.
6
- * @param {Number} [options.altitude] - Relative to ground layers altitude value.
7
- * @param {og.Vec4} [options.color] - RGBA color.
8
- * @param {Boolean} [options.opacity] - Line opacity.
9
- * @param {Boolean} [options.visibility] - Polyline visibility. True default.
10
- * @param {Boolean} [options.isClosed] - Closed geometry type identificator.
11
- * @param {Array.<Array.<number>>} [options.pathLonLat] - Polyline geodetic coordinates array. [[0,0,0], [1,1,1],...]
12
- * @param {Array.<Array.<number>>} [options.path3v] - LinesString cartesian coordinates array. [[0,0,0], [1,1,1],...]
13
- * @param {Array.<Array.<number>>} [options.pathColors] - Coordinates color. [[1,0,0,1], [0,1,0,1],...] for right and green colors.
14
- */
15
- export class Polyline {
16
- static set _staticCounter(arg: any);
17
- static get _staticCounter(): any;
18
- /**
19
- * Appends to the line array new cartesian coordinates line data.
20
- * @param {Array.<Array.<number>>} path3v - Line coordinates path array. [[0,0,0], [1,1,1],...]
21
- * @param {Boolean} isClosed - Identificator for the closed line data creation.
22
- * @param {Number[]} outVertices - Out vertices data array.
23
- * @param {Number[]} outOrders - Out vertices orders data array.
24
- * @param {Number[]} outIndexes - Out vertices indexes data array.
25
- * @param {og.Ellipsoid} [ellipsoid] - Ellipsoid to coordinates transformation.
26
- * @param {Array.<Array.<LonLat>>} [outTransformedPathLonLat] - Geodetic coordinates out array.
27
- * @param {Array.<Array.<LonLat>>} [outPath3v] - Cartesian coordinates out array.
28
- * @param {Array.<Array.<LonLat>>} [outTransformedPathMerc] - Mercator coordinates out array.
29
- * @param {og.Extent} [outExtent] - Geodetic line extent.
30
- * @param {Array} [outColors]
31
- * @static
32
- */
33
- static appendLineData3v(path3v: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid?: any, outTransformedPathLonLat?: Array<Array<LonLat>>, outPath3v?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: any, outColors?: any[]): void;
34
- /**
35
- * Appends to the line new cartesian coordinates point data.
36
- * @param {Array.<Array.<number>>} path3v - Line coordinates path array. [[0,0,0], [1,1,1],...]
37
- * @param {Boolean} isClosed - Identificator for the closed line data creation.
38
- * @param {Number[]} outVertices - Out vertices data array.
39
- * @param {Number[]} outOrders - Out vertices orders data array.
40
- * @param {Number[]} outIndexes - Out vertices indexes data array.
41
- * @param {og.Ellipsoid} [ellipsoid] - Ellipsoid to coordinates transformation.
42
- * @param {Array.<Array.<LonLat>>} [outTransformedPathLonLat] - Geodetic coordinates out array.
43
- * @param {Array.<Array.<LonLat>>} [outPath3v] - Cartesian coordinates out array.
44
- * @param {Array.<Array.<LonLat>>} [outTransformedPathMerc] - Mercator coordinates out array.
45
- * @param {og.Extent} [outExtent] - Geodetic line extent.
46
- * @static
47
- */
48
- static appendPoint3v(path3v: Array<Array<number>>, point3v: any, pathColors: any, color: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outColors: any, outOrders: number[], outIndexes: number[], ellipsoid?: any, outTransformedPathLonLat?: Array<Array<LonLat>>, outTransformedPathMerc?: Array<Array<LonLat>>, outExtent?: any): void;
49
- /**
50
- * Appends to the line array new geodetic coordinates line data.
51
- * @param {Array.<Array.<number>>} pathLonLat - Line geodetic coordinates path array. [[0,0,0], [1,1,1],...]
52
- * @param {Boolean} isClosed - Identificator for the closed line data creation.
53
- * @param {Number[]} outVertices - Out vertices data array.
54
- * @param {Number[]} outOrders - Out vertices orders data array.
55
- * @param {Number[]} outIndexes - Out indexes data array.
56
- * @param {og.Ellipsoid} ellipsoid - Ellipsoid to coordinates transformation.
57
- * @param {Array.<Array.<number>>} outTransformedPathCartesian - Cartesian coordinates out array. [[0,0,0], [1,1,1],...]
58
- * @param {Array.<Array.<LonLat>>} outPathLonLat - Geographic coordinates out array.
59
- * @param {Array.<Array.<LonLat>>} outTransformedPathMerc - Mercator coordinates out array.
60
- * @param {og.Extent} outExtent - Geodetic line extent.
61
- * @static
62
- */
63
- static appendLineDataLonLat(pathLonLat: Array<Array<number>>, pathColors: any, defaultColor: any, isClosed: boolean, outVerticesHigh: any, outVerticesLow: any, outOrders: number[], outIndexes: number[], ellipsoid: any, outTransformedPathCartesian: Array<Array<number>>, outPathLonLat: Array<Array<LonLat>>, outTransformedPathMerc: Array<Array<LonLat>>, outExtent: any, outColors: any): void;
64
- constructor(options: any);
65
- /**
66
- * Object unic identifier.
67
- * @public
68
- * @readonly
69
- * @type {number}
70
- */
71
- public readonly id: number;
72
- altitude: any;
73
- /**
74
- * Polyline thickness in screen pixels.
75
- * @public
76
- * @type {number}
77
- */
78
- public thickness: number;
79
- /**
80
- * Polyline RGBA color.
81
- * @public
82
- * @type {Array<number>} - (exactly 4 entries)
83
- */
84
- public _defaultColor: Array<number>;
85
- /**
86
- * Polyline visibility.
87
- * @public
88
- * @type {boolean}
89
- */
90
- public visibility: boolean;
91
- /**
92
- * Polyline geometry ring type identificator.
93
- * @protected
94
- * @type {Boolean}
95
- */
96
- protected _closedLine: boolean;
97
- /**
98
- * Polyline cartesian coordinates.
99
- * @private
100
- * @type {Array.<og.Vec3>}
101
- */
102
- private _path3v;
103
- _pathLengths: any[];
104
- /**
105
- * Polyline geodetic degrees coordiantes.
106
- * @private
107
- * @type {Array.<LonLat>}
108
- */
109
- private _pathLonLat;
110
- /**
111
- * Polyline geodetic mercator coordinates.
112
- * @private
113
- * @type {Array.<LonLat>}
114
- */
115
- private _pathLonLatMerc;
116
- _pathColors: any;
117
- /**
118
- * Polyline geodetic extent.
119
- * @protected
120
- * @type {og.Extent}
121
- */
122
- protected _extent: any;
123
- _verticesHigh: any[];
124
- _verticesLow: any[];
125
- _orders: any[];
126
- _indexes: any[];
127
- _colors: any[];
128
- _verticesHighBuffer: any;
129
- _verticesLowBuffer: any;
130
- _ordersBuffer: any;
131
- _indexesBuffer: any;
132
- _colorsBuffer: any;
133
- _pickingColor: number[];
134
- _renderNode: any;
135
- /**
136
- * Entity instance that holds this Polyline.
137
- * @private
138
- * @type {og.Entity}
139
- */
140
- private _entity;
141
- /**
142
- * Handler that stores and renders this Polyline object.
143
- * @private
144
- * @type {og.PolylineHandler}
145
- */
146
- private _handler;
147
- _handlerIndex: number;
148
- _buffersUpdateCallbacks: (() => void)[];
149
- _changedBuffers: any[];
150
- /**
151
- * Sets polyline path with cartesian coordinates.
152
- * @protected
153
- * @param {pg.math.Vector3[]} path3v - Cartesian coordinates.
154
- */
155
- protected _setEqualPath3v(path3v: any[]): void;
156
- /**
157
- * Sets polyline with geodetic coordinates.
158
- * @protected
159
- * @param {LonLat[]} pathLonLat - Geodetic polyline path coordinates.
160
- */
161
- protected _setEqualPathLonLat(pathLonLat: LonLat[]): void;
162
- setPointLonLat(lonlat: any, index: any, segmentIndex: any): void;
163
- setPoint3v(coordinates: any, index: any, segmentIndex: any, skipLonLat: any): void;
164
- _resizePathLengths(index?: number): void;
165
- removeSegment(index: any): void;
166
- removePoint(index: any, multiLineIndex?: number): void;
167
- insertPoint3v(point3v: any, index: number, color: any, multilineIndex?: number): void;
168
- /**
169
- * Adds a new cartesian point in the end of the path in a last line segment.
170
- * @public
171
- * @param {og.Vec3} point3v - New coordinate.
172
- */
173
- public appendPoint3v(point3v: any, color: any, skipEllipsoid: any): void;
174
- /**
175
- * Adds a new cartesian point in the end of the path.
176
- * @public
177
- * @param {og.Vec3} point3v - New coordinate.
178
- * @param {number} [multiLineIndex=0] - Path part index, first by default.
179
- */
180
- public addPoint3v(point3v: any, multiLineIndex?: number): void;
181
- /**
182
- * Adds a new geodetic point in the end of the path.
183
- * @public
184
- * @param {LonLat} lonLat - New coordinate.
185
- * @param {number} [multiLineIndex=0] - Path part index, first by default.
186
- */
187
- public addPointLonLat(lonLat: LonLat, multiLineIndex?: number): void;
188
- /**
189
- * Clear Polyline object data.
190
- * @public
191
- */
192
- public clear(): void;
193
- setPointColor(color: any, index?: number, segmentIndex?: number): void;
194
- /**
195
- * Sets Polyline opacity.
196
- * @public
197
- * @param {number} opacity - Opacity.
198
- */
199
- public setOpacity(opacity: number): void;
200
- /**
201
- * Sets Polyline thickness in screen pixels.
202
- * @public
203
- * @param {number} thickness - Thickness.
204
- */
205
- public setThickness(thickness: number): void;
206
- /**
207
- * Returns thickness.
208
- * @public
209
- * @return {number} Thickness in screen pixels.
210
- */
211
- public getThickness(): number;
212
- /**
213
- * Sets visibility.
214
- * @public
215
- * @param {boolean} visibility - Polyline visibility.
216
- */
217
- public setVisibility(visibility: boolean): void;
218
- /**
219
- * Gets Polyline visibility.
220
- * @public
221
- * @return {boolean} Polyline visibility.
222
- */
223
- public getVisibility(): boolean;
224
- /**
225
- * Assign with render node.
226
- * @public
227
- * @param {og.scene.RenderNode} renderNode -
228
- */
229
- public setRenderNode(renderNode: any): void;
230
- /**
231
- * @protected
232
- */
233
- protected _clearData(): void;
234
- _createData3v(path3v: any): void;
235
- _createDataLonLat(pathLonlat: any): void;
236
- /**
237
- * Removes from an entity.
238
- * @public
239
- */
240
- public remove(): void;
241
- setPickingColor3v(color: any): void;
242
- /**
243
- * Returns polyline geodetic extent.
244
- * @public
245
- * @returns {og.Extent} - Geodetic extent
246
- */
247
- public getExtent(): any;
248
- /**
249
- * Returns path cartesian coordinates.
250
- * @return {Array.<og.Vec3>} Polyline path.
251
- */
252
- getPath3v(): Array<any>;
253
- /**
254
- * Returns geodetic path coordinates.
255
- * @return {Array.<LonLat>} Polyline path.
256
- */
257
- getPathLonLat(): Array<LonLat>;
258
- getPathColors(): any;
259
- setPathColors(pathColors: any): void;
260
- setColorHTML(htmlColor: any): void;
261
- /**
262
- * Sets geodetic coordinates.
263
- * @public
264
- * @param {Array.<Array.<number>>} pathLonLat - Polyline path cartesian coordinates. (exactly 3 entries)
265
- * @param {Boolean} [forceEqual=false] - Makes assigning faster for size equal coordinates array.
266
- */
267
- public setPathLonLat(pathLonLat: Array<Array<number>>, forceEqual?: boolean): void;
268
- /**
269
- * Sets Polyline cartesian coordinates.
270
- * @public
271
- * @param {Array.<Array.<number>>} path3v - Polyline path cartesian coordinates. (exactly 3 entries)
272
- * @param {Boolean} [forceEqual=false] - Makes assigning faster for size equal coordinates array.
273
- */
274
- public setPath3v(path3v: Array<Array<number>>, pathColors: any, forceEqual?: boolean): void;
275
- draw(): void;
276
- drawPicking(): void;
277
- /**
278
- * Refresh buffers.
279
- * @protected
280
- */
281
- protected _refresh(): void;
282
- /**
283
- * Updates render buffers.
284
- * @protected
285
- */
286
- protected _update(): void;
287
- /**
288
- * Clear GL buffers.
289
- * @protected
290
- */
291
- protected _deleteBuffers(): void;
292
- /**
293
- * Creates gl main data buffer.
294
- * @protected
295
- */
296
- protected _createVerticesBuffer(): void;
297
- /**
298
- * Creates gl index and order buffer.
299
- * @protected
300
- */
301
- protected _createIndexBuffer(): void;
302
- _createColorsBuffer(): void;
303
- }
304
- import { LonLat } from "../LonLat.js";
@@ -1,18 +0,0 @@
1
- export class PolylineHandler {
2
- static set _staticCounter(arg: any);
3
- static get _staticCounter(): any;
4
- constructor(entityCollection: any);
5
- _entityCollection: any;
6
- _renderer: any;
7
- _polylines: any[];
8
- __staticId: number;
9
- pickingEnabled: boolean;
10
- _initProgram(): void;
11
- setRenderNode(renderNode: any): void;
12
- add(polyline: any): void;
13
- remove(polyline: any): void;
14
- reindexPolylineArray(startIndex: any): void;
15
- draw(): void;
16
- drawPicking(): void;
17
- clear(): void;
18
- }
@@ -1,123 +0,0 @@
1
- /**
2
- * Ray class.
3
- * @class
4
- * @param {Object} [options] - Options:
5
- * @param {og.Vec3|Array.<number>} [options.startPosition] - Ray start point position.
6
- * @param {og.Vec3|Array.<number>} [options.endPosition] - Ray end point position.
7
- * @param {og.Vec3|Array.<number>} [options.startColor] - Ray start point color.
8
- * @param {og.Vec3|Array.<number>} [options.endColor] - Ray end point color.
9
- * @param {boolean} [options.visibility] - Visibility.
10
- */
11
- export class Ray {
12
- constructor(options: any);
13
- /**
14
- * Object unic identifier.
15
- * @public
16
- * @readonly
17
- * @type {number}
18
- */
19
- public readonly id: number;
20
- _thickness: any;
21
- _length: any;
22
- _lengthHighLow: Float32Array;
23
- _startPosition: any;
24
- _startPositionHigh: Vec3;
25
- _startPositionLow: Vec3;
26
- _endPosition: any;
27
- _endPositionHigh: Vec3;
28
- _endPositionLow: Vec3;
29
- _startColor: any;
30
- _endColor: any;
31
- /**
32
- * Ray visibility.
33
- * @protected
34
- * @type {boolean}
35
- */
36
- protected _visibility: boolean;
37
- /**
38
- * Entity instance that holds this billboard.
39
- * @protected
40
- * @type {og.Entity}
41
- */
42
- protected _entity: any;
43
- /**
44
- * Handler that stores and renders this billboard object.
45
- * @protected
46
- * @type {og.BillboardHandler}
47
- */
48
- protected _handler: any;
49
- /**
50
- * Billboard handler array index.
51
- * @protected
52
- * @type {number}
53
- */
54
- protected _handlerIndex: number;
55
- /**
56
- * Sets ray start position.
57
- * @public
58
- * @param {number} x - X coordinate.
59
- * @param {number} y - Y coordinate.
60
- * @param {number} z - Z coordinate.
61
- */
62
- public setStartPosition(x: number, y: number, z: number): void;
63
- /**
64
- * Sets ray start position.
65
- * @public
66
- * @param {og.Vec3} position - Cartesian coordinates.
67
- */
68
- public setStartPosition3v(position: any): void;
69
- /**
70
- * Sets ray end position.
71
- * @public
72
- * @param {number} x - X coordinate.
73
- * @param {number} y - Y coordinate.
74
- * @param {number} z - Z coordinate.
75
- */
76
- public setEndPosition(x: number, y: number, z: number): void;
77
- /**
78
- * Sets ray end position.
79
- * @public
80
- * @param {og.Vec3} position - Cartesian coordinates.
81
- */
82
- public setEndPosition3v(position: any): void;
83
- setLength(length: any): void;
84
- setThickness(thickness: any): void;
85
- setColors4v(startColor: any, endColor: any): void;
86
- setColorsHTML(startColor: any, endColor: any): void;
87
- /**
88
- * Returns ray start position.
89
- * @public
90
- * @returns {og.Vec3}
91
- */
92
- public getStartPosition(): any;
93
- /**
94
- * Returns ray end position.
95
- * @public
96
- * @returns {og.Vec3}
97
- */
98
- public getEndPosition(): any;
99
- /**
100
- * Sets billboard visibility.
101
- * @public
102
- * @param {boolean} visibility - Visibility flag.
103
- */
104
- public setVisibility(visibility: boolean): void;
105
- /**
106
- * Returns billboard visibility.
107
- * @public
108
- * @returns {boolean}
109
- */
110
- public getVisibility(): boolean;
111
- /**
112
- * Removes billboard from hander.
113
- * @public
114
- */
115
- public remove(): void;
116
- /**
117
- * Sets billboard picking color.
118
- * @public
119
- * @param {og.Vec3} color - Picking color.
120
- */
121
- public setPickingColor3v(color: any): void;
122
- }
123
- import { Vec3 } from "../math/Vec3.js";
@@ -1,67 +0,0 @@
1
- export class RayHandler {
2
- static set _staticCounter(arg: any);
3
- static get _staticCounter(): any;
4
- static concArr(dest: any, curr: any): void;
5
- constructor(entityCollection: any);
6
- /**
7
- * Picking rendering option.
8
- * @public
9
- * @type {boolean}
10
- */
11
- public pickingEnabled: boolean;
12
- _entityCollection: any;
13
- _renderer: any;
14
- _rays: any[];
15
- _vertexBuffer: any;
16
- _startPositionHighBuffer: any;
17
- _startPositionLowBuffer: any;
18
- _endPositionHighBuffer: any;
19
- _endPositionLowBuffer: any;
20
- _lengthBuffer: any;
21
- _thicknessBuffer: any;
22
- _rgbaBuffer: any;
23
- _vertexArr: any[];
24
- _startPositionHighArr: any[];
25
- _startPositionLowArr: any[];
26
- _endPositionHighArr: any[];
27
- _endPositionLowArr: any[];
28
- _lengthArr: any[];
29
- _thicknessArr: any[];
30
- _rgbaArr: any[];
31
- _pickingColorBuffer: any;
32
- _pickingColorArr: any[];
33
- _buffersUpdateCallbacks: (() => void)[];
34
- _changedBuffers: any[];
35
- __staticId: number;
36
- initProgram(): void;
37
- setRenderer(renderer: any): void;
38
- refresh(): void;
39
- _removeRays(): void;
40
- clear(): void;
41
- _deleteBuffers(): void;
42
- update(): void;
43
- add(ray: any): void;
44
- _addRayToArrays(ray: any): void;
45
- _displayPASS(): void;
46
- _pickingPASS(): void;
47
- draw(): void;
48
- drawPicking(): void;
49
- reindexRaysArray(startIndex: any): void;
50
- _removeRay(ray: any): void;
51
- remove(ray: any): void;
52
- setStartPositionArr(index: any, positionHigh: any, positionLow: any): void;
53
- setEndPositionArr(index: any, positionHigh: any, positionLow: any): void;
54
- setPickingColorArr(index: any, color: any): void;
55
- setRgbaArr(index: any, startColor: any, endColor: any): void;
56
- setThicknessArr(index: any, thickness: any): void;
57
- setLengthArr(index: any, length: any): void;
58
- setVisibility(index: any, visibility: any): void;
59
- setVertexArr(index: any, vertexArr: any): void;
60
- createStartPositionBuffer(): void;
61
- createEndPositionBuffer(): void;
62
- createRgbaBuffer(): void;
63
- createThicknessBuffer(): void;
64
- createLengthBuffer(): void;
65
- createVertexBuffer(): void;
66
- createPickingColorBuffer(): void;
67
- }
@@ -1,22 +0,0 @@
1
- export class ShapeHandler {
2
- static set _staticCounter(arg: any);
3
- static get _staticCounter(): any;
4
- constructor(entityCollection: any);
5
- /**
6
- * Picking rendering option.
7
- * @public
8
- * @type {boolean}
9
- */
10
- public pickingEnabled: boolean;
11
- _entityCollection: any;
12
- _renderer: any;
13
- _shapes: any[];
14
- __staticId: number;
15
- _initProgram(): void;
16
- setRenderNode(renderNode: any): void;
17
- add(shape: any): void;
18
- remove(shape: any): void;
19
- draw(): void;
20
- drawPicking(): void;
21
- clear(): void;
22
- }
@@ -1,118 +0,0 @@
1
- /**
2
- * Strip object.
3
- * @class
4
- * @param {*} [options] - Strip options:
5
- * @param {boolean} [options.visibility] - Strip visibility.
6
- * @example <caption>Stripe example</caption>
7
- * new og.Entity({
8
- * strip: {
9
- * gridSize: 10,
10
- * path: [
11
- * [[],[]],
12
- * [[],[]]
13
- * ]
14
- * }
15
- * });
16
- */
17
- export class Strip {
18
- static set _staticCounter(arg: any);
19
- static get _staticCounter(): any;
20
- constructor(options: any);
21
- /**
22
- * Object unic identifier.
23
- * @public
24
- * @readonly
25
- * @type {number}
26
- */
27
- public readonly id: number;
28
- /**
29
- * Cloud visibility.
30
- * @public
31
- * @type {boolean}
32
- */
33
- public visibility: boolean;
34
- color: Float32Array;
35
- /**
36
- * Parent collection render node.
37
- * @private
38
- * @type {og.scene.RenderNode}
39
- */
40
- private _renderNode;
41
- /**
42
- * Entity instance that holds this strip.
43
- * @private
44
- * @type {og.Entity}
45
- */
46
- private _entity;
47
- _verticesHighBuffer: any;
48
- _verticesLowBuffer: any;
49
- _indexesBuffer: any;
50
- _verticesHigh: any[];
51
- _verticesLow: any[];
52
- _indexes: any[];
53
- _path: any[];
54
- _pickingColor: Float32Array;
55
- _gridSize: number;
56
- /**
57
- * Handler that stores and renders this object.
58
- * @private
59
- * @type {og.StripHandler}
60
- */
61
- private _handler;
62
- _handlerIndex: number;
63
- /**
64
- * Assign picking color.
65
- * @protected
66
- * @param {og.Vec3} color - Picking RGB color.
67
- */
68
- protected setPickingColor3v(color: any): void;
69
- /**
70
- * Clears object
71
- * @public
72
- */
73
- public clear(): void;
74
- setColor(r: any, g: any, b: any, a: any): void;
75
- /**
76
- * Set strip opacity.
77
- * @public
78
- * @param {number} opacity - opacity.
79
- */
80
- public setOpacity(opacity: number): void;
81
- /**
82
- * Sets cloud visibility.
83
- * @public
84
- * @param {number} visibility - Visibility flag.
85
- */
86
- public setVisibility(visibility: number): void;
87
- /**
88
- * @return {boolean} Strip visibily.
89
- */
90
- getVisibility(): boolean;
91
- /**
92
- * Assign rendering scene node.
93
- * @public
94
- * @param {og.scene.RenderNode} renderNode - Assigned render node.
95
- */
96
- public setRenderNode(renderNode: any): void;
97
- /**
98
- * Removes from entity.
99
- * @public
100
- */
101
- public remove(): void;
102
- draw(): void;
103
- drawPicking(): void;
104
- /**
105
- * Delete buffers
106
- * @private
107
- */
108
- private _deleteBuffers;
109
- _indexBuffer: any;
110
- _createBuffers(): void;
111
- addEdge3v(p2: any, p3: any): void;
112
- setEdge3v(p2: any, p3: any, index: any): void;
113
- removeEdge(index: any): void;
114
- setGridSize(gridSize: any): void;
115
- getPath(): any[];
116
- setPath(path: any): void;
117
- insertEdge3v(p0: any, p1: any, index: any): void;
118
- }
@@ -1,38 +0,0 @@
1
- export class StripHandler {
2
- static set _staticCounter(arg: any);
3
- static get _staticCounter(): any;
4
- constructor(entityCollection: any);
5
- /**
6
- * Picking rendering option.
7
- * @public
8
- * @type {boolean}
9
- */
10
- public pickingEnabled: boolean;
11
- /**
12
- * Parent collection
13
- * @private
14
- * @type {og.EntityCollection}
15
- */
16
- private _entityCollection;
17
- /**
18
- * Renderer
19
- * @private
20
- * @type {og.Renderer}
21
- */
22
- private _renderer;
23
- /**
24
- * Point cloud array
25
- * @private
26
- * @type {Array.<og.Strip>}
27
- */
28
- private _strips;
29
- __staticId: number;
30
- _initProgram(): void;
31
- setRenderNode(renderNode: any): void;
32
- add(strip: any): void;
33
- remove(strip: any): void;
34
- reindexStripArray(startIndex: any): void;
35
- draw(): void;
36
- drawPicking(): void;
37
- clear(): void;
38
- }
@@ -1,8 +0,0 @@
1
- import { Entity } from "./Entity";
2
- import { EntityCollection } from "./EntityCollection";
3
- import { Billboard } from "./Billboard";
4
- import { Geometry } from "./Geometry";
5
- import { Label } from "./Label";
6
- import { PointCloud } from "./PointCloud";
7
- import { Polyline } from "./Polyline";
8
- export { Entity, EntityCollection, Billboard, Geometry, Label, PointCloud, Polyline };