@openglobus/og 0.22.2 → 0.23.0
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.
- package/css/og.css +137 -1
- package/lib/@openglobus/js/Object3d.d.ts +20 -10
- package/lib/@openglobus/js/camera/Camera.d.ts +9 -0
- package/lib/@openglobus/js/camera/Frustum.d.ts +3 -0
- package/lib/@openglobus/js/control/CameraLock.d.ts +38 -0
- package/lib/@openglobus/js/control/SimpleNavigation.d.ts +27 -10
- package/lib/@openglobus/js/control/geoObjectEditor/ArrowEntity.d.ts +15 -0
- package/lib/@openglobus/js/control/geoObjectEditor/AxisTrackEntity.d.ts +9 -0
- package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditor.d.ts +13 -0
- package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +69 -0
- package/lib/@openglobus/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +78 -9
- package/lib/@openglobus/js/control/geoObjectEditor/MoveAxisEntity.d.ts +17 -0
- package/lib/@openglobus/js/control/geoObjectEditor/MovePlaneEntity.d.ts +7 -0
- package/lib/@openglobus/js/control/geoObjectEditor/RotateEntity.d.ts +9 -0
- package/lib/@openglobus/js/control/geoObjectEditor/colors.d.ts +8 -0
- package/lib/@openglobus/js/control/index.d.ts +2 -0
- package/lib/@openglobus/js/entity/Entity.d.ts +278 -19
- package/lib/@openglobus/js/entity/EntityCollection.d.ts +8 -9
- package/lib/@openglobus/js/entity/GeoObject.d.ts +141 -36
- package/lib/@openglobus/js/entity/GeoObjectHandler.d.ts +39 -63
- package/lib/@openglobus/js/entity/InstanceData.d.ts +76 -0
- package/lib/@openglobus/js/entity/Polyline.d.ts +19 -6
- package/lib/@openglobus/js/entity/PolylineHandler.d.ts +7 -0
- package/lib/@openglobus/js/index.d.ts +2 -1
- package/lib/@openglobus/js/layer/Vector.d.ts +4 -0
- package/lib/@openglobus/js/light/LightSource.d.ts +1 -139
- package/lib/@openglobus/js/math/Quat.d.ts +46 -33
- package/lib/@openglobus/js/math/Ray.d.ts +10 -4
- package/lib/@openglobus/js/math/Vec3.d.ts +15 -0
- package/lib/@openglobus/js/math.d.ts +2 -2
- package/lib/@openglobus/js/quadTree/EntityCollectionNode.d.ts +2 -2
- package/lib/@openglobus/js/quadTree/Node.d.ts +1 -1
- package/lib/@openglobus/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +1 -1
- package/lib/@openglobus/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +1 -1
- package/lib/@openglobus/js/renderer/Renderer.d.ts +63 -44
- package/lib/@openglobus/js/renderer/RendererEvents.d.ts +1 -0
- package/lib/@openglobus/js/scene/Planet.d.ts +11 -7
- package/lib/@openglobus/js/scene/RenderNode.d.ts +10 -25
- package/lib/@openglobus/js/shaders/drawnode.d.ts +1 -0
- package/lib/@openglobus/js/shaders/geoObject.d.ts +1 -0
- package/lib/@openglobus/js/shaders/utils.d.ts +1 -1
- package/lib/@openglobus/js/ui/Checkbox.d.ts +31 -0
- package/lib/@openglobus/js/ui/Dialog.d.ts +3 -0
- package/lib/@openglobus/js/ui/Input.d.ts +32 -0
- package/lib/@openglobus/js/ui/View.d.ts +3 -1
- package/lib/@openglobus/js/utils/objParser.d.ts +44 -12
- package/lib/@openglobus/js/utils/shared.d.ts +22 -0
- package/lib/@openglobus/js/webgl/BaseFramebuffer.d.ts +0 -1
- package/lib/@openglobus/js/webgl/Framebuffer.d.ts +35 -8
- package/lib/@openglobus/js/webgl/Handler.d.ts +1 -0
- package/lib/@openglobus/og.css +1 -1
- package/lib/@openglobus/og.esm.js +1 -1
- package/lib/@openglobus/og.esm.js.map +1 -1
- package/lib/@openglobus/og.umd.js +1 -1
- package/lib/@openglobus/og.umd.js.map +1 -1
- package/lib/js/Object3d.d.ts +20 -10
- package/lib/js/Object3d.js +124 -48
- package/lib/js/camera/Camera.d.ts +9 -0
- package/lib/js/camera/Camera.js +27 -1
- package/lib/js/camera/Frustum.d.ts +3 -0
- package/lib/js/camera/Frustum.js +7 -0
- package/lib/js/control/Atmosphere.js +10 -6
- package/lib/js/control/CameraLock.d.ts +38 -0
- package/lib/js/control/CameraLock.js +216 -0
- package/lib/js/control/Control.js +1 -1
- package/lib/js/control/DebugInfo.js +13 -3
- package/lib/js/control/KeyboardNavigation.js +1 -1
- package/lib/js/control/ScaleControl.js +9 -3
- package/lib/js/control/SimpleNavigation.d.ts +27 -10
- package/lib/js/control/SimpleNavigation.js +148 -49
- package/lib/js/control/Sun.js +1 -1
- package/lib/js/control/elevationProfile/ElevationProfileScene.js +4 -4
- package/lib/js/control/geoObjectEditor/ArrowEntity.d.ts +15 -0
- package/lib/js/control/geoObjectEditor/ArrowEntity.js +59 -0
- package/lib/js/control/geoObjectEditor/AxisTrackEntity.d.ts +9 -0
- package/lib/js/control/geoObjectEditor/AxisTrackEntity.js +93 -0
- package/lib/js/control/geoObjectEditor/GeoObjectEditor.d.ts +13 -0
- package/lib/js/control/geoObjectEditor/GeoObjectEditor.js +30 -0
- package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.d.ts +69 -0
- package/lib/js/control/geoObjectEditor/GeoObjectEditorDialog.js +502 -0
- package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.d.ts +78 -9
- package/lib/js/control/geoObjectEditor/GeoObjectEditorScene.js +487 -43
- package/lib/js/control/geoObjectEditor/MoveAxisEntity.d.ts +17 -0
- package/lib/js/control/geoObjectEditor/MoveAxisEntity.js +106 -0
- package/lib/js/control/geoObjectEditor/MovePlaneEntity.d.ts +7 -0
- package/lib/js/control/geoObjectEditor/MovePlaneEntity.js +34 -0
- package/lib/js/control/geoObjectEditor/RotateEntity.d.ts +9 -0
- package/lib/js/control/geoObjectEditor/RotateEntity.js +105 -0
- package/lib/js/control/geoObjectEditor/colors.d.ts +8 -0
- package/lib/js/control/geoObjectEditor/colors.js +8 -0
- package/lib/js/control/index.d.ts +2 -0
- package/lib/js/control/index.js +2 -0
- package/lib/js/control/timeline/TimelineControl.js +2 -0
- package/lib/js/entity/Entity.d.ts +278 -19
- package/lib/js/entity/Entity.js +483 -63
- package/lib/js/entity/EntityCollection.d.ts +8 -9
- package/lib/js/entity/EntityCollection.js +48 -45
- package/lib/js/entity/GeoObject.d.ts +141 -36
- package/lib/js/entity/GeoObject.js +153 -90
- package/lib/js/entity/GeoObjectHandler.d.ts +39 -63
- package/lib/js/entity/GeoObjectHandler.js +198 -295
- package/lib/js/entity/InstanceData.d.ts +76 -0
- package/lib/js/entity/InstanceData.js +344 -0
- package/lib/js/entity/Polyline.d.ts +19 -6
- package/lib/js/entity/Polyline.js +76 -36
- package/lib/js/entity/PolylineHandler.d.ts +7 -0
- package/lib/js/entity/PolylineHandler.js +26 -1
- package/lib/js/index.d.ts +2 -1
- package/lib/js/index.js +2 -1
- package/lib/js/layer/Bing.js +2 -2
- package/lib/js/layer/Vector.d.ts +4 -0
- package/lib/js/layer/Vector.js +16 -0
- package/lib/js/light/LightSource.d.ts +1 -139
- package/lib/js/light/LightSource.js +21 -227
- package/lib/js/math/Quat.d.ts +46 -33
- package/lib/js/math/Quat.js +91 -90
- package/lib/js/math/Ray.d.ts +10 -4
- package/lib/js/math/Ray.js +20 -4
- package/lib/js/math/Vec3.d.ts +15 -0
- package/lib/js/math/Vec3.js +30 -1
- package/lib/js/math.d.ts +2 -2
- package/lib/js/math.js +3 -3
- package/lib/js/quadTree/EntityCollectionNode.d.ts +2 -2
- package/lib/js/quadTree/EntityCollectionNode.js +8 -8
- package/lib/js/quadTree/Node.d.ts +1 -1
- package/lib/js/quadTree/Node.js +2 -2
- package/lib/js/quadTree/QuadTreeStrategy.js +1 -1
- package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.d.ts +1 -1
- package/lib/js/quadTree/earth/EarthEntityCollectionNodeLonLat.js +2 -2
- package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.d.ts +1 -1
- package/lib/js/quadTree/equi/EquiEntityCollectionNodeLonLat.js +2 -2
- package/lib/js/renderer/Renderer.d.ts +63 -44
- package/lib/js/renderer/Renderer.js +260 -263
- package/lib/js/renderer/RendererEvents.d.ts +1 -0
- package/lib/js/renderer/RendererEvents.js +2 -1
- package/lib/js/scene/Planet.d.ts +11 -7
- package/lib/js/scene/Planet.js +109 -87
- package/lib/js/scene/RenderNode.d.ts +10 -25
- package/lib/js/scene/RenderNode.js +70 -58
- package/lib/js/shaders/depth.js +2 -5
- package/lib/js/shaders/drawnode.d.ts +1 -0
- package/lib/js/shaders/drawnode.js +51 -52
- package/lib/js/shaders/geoObject.d.ts +1 -0
- package/lib/js/shaders/geoObject.js +154 -91
- package/lib/js/shaders/polyline.js +68 -51
- package/lib/js/shaders/utils.d.ts +1 -1
- package/lib/js/shaders/utils.js +11 -0
- package/lib/js/ui/Checkbox.d.ts +31 -0
- package/lib/js/ui/Checkbox.js +110 -0
- package/lib/js/ui/Color.js +2 -1
- package/lib/js/ui/Dialog.d.ts +3 -0
- package/lib/js/ui/Dialog.js +20 -0
- package/lib/js/ui/Input.d.ts +32 -0
- package/lib/js/ui/Input.js +107 -0
- package/lib/js/ui/View.d.ts +3 -1
- package/lib/js/ui/View.js +6 -0
- package/lib/js/utils/objParser.d.ts +44 -12
- package/lib/js/utils/objParser.js +241 -149
- package/lib/js/utils/shared.d.ts +22 -0
- package/lib/js/utils/shared.js +34 -0
- package/lib/js/webgl/BaseFramebuffer.d.ts +0 -1
- package/lib/js/webgl/Framebuffer.d.ts +35 -8
- package/lib/js/webgl/Framebuffer.js +136 -29
- package/lib/js/webgl/Handler.d.ts +1 -0
- package/lib/js/webgl/Handler.js +11 -1
- package/lib/js/webgl/Program.js +0 -8
- package/package.json +4 -2
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
|
+
import { X_COLOR } from "./colors";
|
|
3
|
+
import { Object3d } from "../../Object3d";
|
|
4
|
+
import { Vec3 } from "../../math/Vec3";
|
|
5
|
+
const SCALE = 0.1;
|
|
6
|
+
const SCALE_VEC = new Vec3(SCALE, SCALE, SCALE);
|
|
7
|
+
const TIP_LENGTH = 0.17;
|
|
8
|
+
const TIP_RADIUS = 0.04;
|
|
9
|
+
const SPIN_RADIUS = 0.0095;
|
|
10
|
+
const lineObj = Object3d.createCylinder(SPIN_RADIUS, SPIN_RADIUS, 1.0 - TIP_LENGTH).scale(SCALE_VEC);
|
|
11
|
+
const tipObj = Object3d.createCylinder(0, TIP_RADIUS, TIP_LENGTH, 16, 16, false, true, 0, -TIP_LENGTH).scale(SCALE_VEC);
|
|
12
|
+
export class ArrowEntity extends Entity {
|
|
13
|
+
constructor(params = {}) {
|
|
14
|
+
const scale = 1.0;
|
|
15
|
+
super({
|
|
16
|
+
independentPicking: true,
|
|
17
|
+
yaw: params.yaw || 0,
|
|
18
|
+
pitch: params.pitch || 0,
|
|
19
|
+
roll: params.roll || 0,
|
|
20
|
+
forceGlobalPosition: true,
|
|
21
|
+
geoObject: {
|
|
22
|
+
color: params.color || X_COLOR,
|
|
23
|
+
scale,
|
|
24
|
+
tag: "line",
|
|
25
|
+
object3d: lineObj,
|
|
26
|
+
},
|
|
27
|
+
properties: params.properties
|
|
28
|
+
});
|
|
29
|
+
this._size = params.size != undefined ? params.size : 1.0;
|
|
30
|
+
this.appendChild(new Entity({
|
|
31
|
+
yaw: params.yaw || 0,
|
|
32
|
+
pitch: params.pitch || 0,
|
|
33
|
+
roll: params.roll || 0,
|
|
34
|
+
forceGlobalPosition: true,
|
|
35
|
+
geoObject: {
|
|
36
|
+
color: params.color || X_COLOR,
|
|
37
|
+
scale,
|
|
38
|
+
tag: "tip",
|
|
39
|
+
object3d: tipObj,
|
|
40
|
+
},
|
|
41
|
+
properties: params.properties
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
setSize(size) {
|
|
45
|
+
this._size = size;
|
|
46
|
+
const scale = new Vec3(1, (this._size - TIP_LENGTH) / (1.0 - TIP_LENGTH), 1);
|
|
47
|
+
const trans = new Vec3(0, this._size * SCALE, 0);
|
|
48
|
+
let line = this;
|
|
49
|
+
let tip = line.childEntities[0];
|
|
50
|
+
line.setScale3v(scale);
|
|
51
|
+
tip.geoObject.setTranslate3v(trans);
|
|
52
|
+
}
|
|
53
|
+
setColorHTML(color) {
|
|
54
|
+
let line = this;
|
|
55
|
+
let tip = line.childEntities[0];
|
|
56
|
+
line.geoObject.setColorHTML(color);
|
|
57
|
+
tip.geoObject.setColorHTML(color);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entity, IEntityParams } from "../../entity/Entity";
|
|
2
|
+
import { Vec3 } from "../../math/Vec3";
|
|
3
|
+
export interface IAxisTrackEntityParams extends IEntityParams {
|
|
4
|
+
}
|
|
5
|
+
export declare class AxisTrackEntity extends Entity {
|
|
6
|
+
constructor(params?: IAxisTrackEntityParams);
|
|
7
|
+
private _init;
|
|
8
|
+
setCartesian3v(cart: Vec3): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Entity } from "../../entity/Entity";
|
|
2
|
+
import { Vec3 } from "../../math/Vec3";
|
|
3
|
+
import { SEL_X_COLOR, SEL_Y_COLOR, SEL_Z_COLOR } from "./colors";
|
|
4
|
+
import { LonLat } from "../../LonLat";
|
|
5
|
+
import { htmlColorToFloat32Array } from "../../utils/shared";
|
|
6
|
+
const SEG_SIZE = 20;
|
|
7
|
+
export class AxisTrackEntity extends Entity {
|
|
8
|
+
constructor(params = {}) {
|
|
9
|
+
super({ ...params, forceGlobalPosition: true });
|
|
10
|
+
this._init();
|
|
11
|
+
}
|
|
12
|
+
_init() {
|
|
13
|
+
const length = SEG_SIZE;
|
|
14
|
+
let lonColors = [], latCoords = [], yColors = [];
|
|
15
|
+
let lonCol = htmlColorToFloat32Array(SEL_X_COLOR), yCol = htmlColorToFloat32Array(SEL_Y_COLOR), latCol = htmlColorToFloat32Array(SEL_Z_COLOR);
|
|
16
|
+
for (let i = 0; i < length; i++) {
|
|
17
|
+
let op = 1;
|
|
18
|
+
if (i < 5) {
|
|
19
|
+
let t = i / 5;
|
|
20
|
+
op = 0.5 * (1 - Math.cos(Math.PI * t));
|
|
21
|
+
}
|
|
22
|
+
else if (i > 15) {
|
|
23
|
+
let t = (i - 15) / 5;
|
|
24
|
+
op = 1 - 0.5 * (1 - Math.cos(Math.PI * t));
|
|
25
|
+
}
|
|
26
|
+
latCoords.push([latCol[0], latCol[1], latCol[2], op]);
|
|
27
|
+
lonColors.push([lonCol[0], lonCol[1], lonCol[2], op]);
|
|
28
|
+
yColors.push([yCol[0], yCol[1], yCol[2], op]);
|
|
29
|
+
}
|
|
30
|
+
let axisX = new Entity({
|
|
31
|
+
polyline: {
|
|
32
|
+
path3v: [Array.from({ length }, (_, i) => new Vec3())],
|
|
33
|
+
thickness: 2.5,
|
|
34
|
+
pathColors: [lonColors],
|
|
35
|
+
isClosed: false
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
let axisY = new Entity({
|
|
39
|
+
polyline: {
|
|
40
|
+
path3v: [Array.from({ length }, (_, i) => new Vec3())],
|
|
41
|
+
thickness: 2.5,
|
|
42
|
+
pathColors: [yColors],
|
|
43
|
+
isClosed: false
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
let axisZ = new Entity({
|
|
47
|
+
polyline: {
|
|
48
|
+
path3v: [Array.from({ length }, (_, i) => new Vec3())],
|
|
49
|
+
thickness: 2.5,
|
|
50
|
+
pathColors: [latCoords],
|
|
51
|
+
isClosed: false
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
this.appendChild(axisX);
|
|
55
|
+
this.appendChild(axisY);
|
|
56
|
+
this.appendChild(axisZ);
|
|
57
|
+
}
|
|
58
|
+
setCartesian3v(cart) {
|
|
59
|
+
super.setCartesian3v(cart);
|
|
60
|
+
if (this._entityCollection && this._entityCollection.renderNode) {
|
|
61
|
+
let rn = this._entityCollection.renderNode;
|
|
62
|
+
let cam = rn.renderer.activeCamera;
|
|
63
|
+
let r = cam.eye.distance(cart) * 0.05;
|
|
64
|
+
if (rn.planet) {
|
|
65
|
+
let yCoords = [], lonCoords = [], latCoords = [];
|
|
66
|
+
let n = rn.planet.ellipsoid.getSurfaceNormal3v(cart);
|
|
67
|
+
let ll = this._lonLat;
|
|
68
|
+
let size = SEG_SIZE / 2;
|
|
69
|
+
for (let i = -size; i < size; i++) {
|
|
70
|
+
latCoords.push(new LonLat(ll.lon, ll.lat + i, ll.height));
|
|
71
|
+
lonCoords.push(new LonLat(ll.lon + i, ll.lat, ll.height));
|
|
72
|
+
yCoords.push(cart.add(n.scaleTo(i * r)));
|
|
73
|
+
}
|
|
74
|
+
this.childEntities[0].polyline.setPathLonLatFast([lonCoords]);
|
|
75
|
+
this.childEntities[1].polyline.setPath3vFast([yCoords]);
|
|
76
|
+
this.childEntities[2].polyline.setPathLonLatFast([latCoords]);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
let zCoords = [], xCoords = [], yCoords = [];
|
|
80
|
+
let y = Vec3.UNIT_Y, x = Vec3.UNIT_X, z = Vec3.UNIT_Z;
|
|
81
|
+
let size = SEG_SIZE / 2;
|
|
82
|
+
for (let i = -size; i < size; i++) {
|
|
83
|
+
xCoords.push(cart.add(x.scaleTo(i * r)));
|
|
84
|
+
yCoords.push(cart.add(y.scaleTo(i * r)));
|
|
85
|
+
zCoords.push(cart.add(z.scaleTo(i * r)));
|
|
86
|
+
}
|
|
87
|
+
this.childEntities[0].polyline.setPath3vFast([xCoords]);
|
|
88
|
+
this.childEntities[1].polyline.setPath3vFast([yCoords]);
|
|
89
|
+
this.childEntities[2].polyline.setPath3vFast([zCoords]);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Control, IControlParams } from "../Control";
|
|
2
|
+
import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
|
|
3
|
+
import { GeoObjectPropertiesDialog } from "./GeoObjectEditorDialog";
|
|
4
|
+
export interface IGeoObjectEditorParams extends IControlParams {
|
|
5
|
+
}
|
|
6
|
+
export declare class GeoObjectEditor extends Control {
|
|
7
|
+
protected _geoObjectEditopScene: GeoObjectEditorScene;
|
|
8
|
+
protected _dialog: GeoObjectPropertiesDialog;
|
|
9
|
+
constructor(options?: IGeoObjectEditorParams);
|
|
10
|
+
oninit(): void;
|
|
11
|
+
onactivate(): void;
|
|
12
|
+
ondeactivate(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Control } from "../Control";
|
|
2
|
+
import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
|
|
3
|
+
import { GeoObjectPropertiesDialog } from "./GeoObjectEditorDialog";
|
|
4
|
+
import { CameraLock } from "../CameraLock";
|
|
5
|
+
export class GeoObjectEditor extends Control {
|
|
6
|
+
constructor(options = {}) {
|
|
7
|
+
super(options);
|
|
8
|
+
this._geoObjectEditopScene = new GeoObjectEditorScene({
|
|
9
|
+
name: `geoObjectEditorScene:${this.__id}`
|
|
10
|
+
});
|
|
11
|
+
this._dialog = new GeoObjectPropertiesDialog({
|
|
12
|
+
model: this._geoObjectEditopScene
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
oninit() {
|
|
16
|
+
if (this.renderer) {
|
|
17
|
+
this.renderer.addControl(new CameraLock({ planet: this.planet }));
|
|
18
|
+
this._geoObjectEditopScene.bindPlanet(this.planet);
|
|
19
|
+
this._dialog.appendTo(this.renderer.div || document.body);
|
|
20
|
+
this.activate();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
onactivate() {
|
|
24
|
+
this.renderer && this.renderer.addNode(this._geoObjectEditopScene);
|
|
25
|
+
}
|
|
26
|
+
ondeactivate() {
|
|
27
|
+
this.renderer && this.renderer.removeNode(this._geoObjectEditopScene);
|
|
28
|
+
this._dialog.hide();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Dialog, IDialogParams } from "../../ui/Dialog";
|
|
2
|
+
import { GeoObjectEditorScene } from "./GeoObjectEditorScene";
|
|
3
|
+
import { Entity } from "../../entity/Entity";
|
|
4
|
+
import { Input } from "../../ui/Input";
|
|
5
|
+
import { Checkbox } from "../../ui/Checkbox";
|
|
6
|
+
import { Button } from "../../ui/Button";
|
|
7
|
+
import { Vec3 } from "../../math/Vec3";
|
|
8
|
+
interface IGeoObjectPropertiesDialog extends IDialogParams {
|
|
9
|
+
model: GeoObjectEditorScene;
|
|
10
|
+
}
|
|
11
|
+
export declare class GeoObjectPropertiesDialog extends Dialog<GeoObjectEditorScene> {
|
|
12
|
+
protected _relativePositionView: Checkbox;
|
|
13
|
+
protected _lonView: Input;
|
|
14
|
+
protected _latView: Input;
|
|
15
|
+
protected _heightView: Input;
|
|
16
|
+
protected _xView: Input;
|
|
17
|
+
protected _yView: Input;
|
|
18
|
+
protected _zView: Input;
|
|
19
|
+
protected _absXView: Input;
|
|
20
|
+
protected _absYView: Input;
|
|
21
|
+
protected _absZView: Input;
|
|
22
|
+
protected _pitchView: Input;
|
|
23
|
+
protected _yawView: Input;
|
|
24
|
+
protected _rollView: Input;
|
|
25
|
+
protected _absolutePitchView: Input;
|
|
26
|
+
protected _absoluteYawView: Input;
|
|
27
|
+
protected _absoluteRollView: Input;
|
|
28
|
+
protected _scaleView: Input;
|
|
29
|
+
protected _scaleXView: Input;
|
|
30
|
+
protected _scaleYView: Input;
|
|
31
|
+
protected _scaleZView: Input;
|
|
32
|
+
protected _groundBtn: Button;
|
|
33
|
+
constructor(params: IGeoObjectPropertiesDialog);
|
|
34
|
+
render(params: any): this;
|
|
35
|
+
protected _onVisibility: (vis: boolean) => void;
|
|
36
|
+
remove(): void;
|
|
37
|
+
protected _initSceneEvents(): void;
|
|
38
|
+
protected _clearSceneEvents(): void;
|
|
39
|
+
protected _onSelect: (entity: Entity) => void;
|
|
40
|
+
protected _refresh(entity: Entity): void;
|
|
41
|
+
hide(): void;
|
|
42
|
+
protected _onUnselect: (entity: Entity) => void;
|
|
43
|
+
protected _onChangeRelativePosition: (checked: boolean) => void;
|
|
44
|
+
protected _onPosition: (pos: Vec3, entity: Entity) => void;
|
|
45
|
+
protected _onPitch: (a: number, entity: Entity) => void;
|
|
46
|
+
protected _onYaw: (a: number, entity: Entity) => void;
|
|
47
|
+
protected _onRoll: (a: number, entity: Entity) => void;
|
|
48
|
+
protected _onChangeLon: (val: string) => void;
|
|
49
|
+
protected _onChangeLat: (val: string) => void;
|
|
50
|
+
protected _onChangeHeight: (val: string) => void;
|
|
51
|
+
protected _onChangeX: (val: string) => void;
|
|
52
|
+
protected _onChangeY: (val: string) => void;
|
|
53
|
+
protected _onChangeZ: (val: string) => void;
|
|
54
|
+
protected _onChangeAbsoluteX: (val: string) => void;
|
|
55
|
+
protected _onChangeAbsoluteY: (val: string) => void;
|
|
56
|
+
protected _onChangeAbsoluteZ: (val: string) => void;
|
|
57
|
+
protected _onChangePitch: (val: string) => void;
|
|
58
|
+
protected _onChangeYaw: (val: string) => void;
|
|
59
|
+
protected _onChangeRoll: (val: string) => void;
|
|
60
|
+
protected _onChangeAbsolutePitch: (val: string) => void;
|
|
61
|
+
protected _onChangeAbsoluteYaw: (val: string) => void;
|
|
62
|
+
protected _onChangeAbsoluteRoll: (val: string) => void;
|
|
63
|
+
protected _onChangeScale: (val: string) => void;
|
|
64
|
+
protected _onChangeScaleX: (val: string) => void;
|
|
65
|
+
protected _onChangeScaleY: (val: string) => void;
|
|
66
|
+
protected _onChangeScaleZ: (val: string) => void;
|
|
67
|
+
protected _onGround: () => void;
|
|
68
|
+
}
|
|
69
|
+
export {};
|