@kq_npm/client3d_webgl_vue 4.5.4-beta → 4.5.5-beta
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/aspectanalysis/index.js +7 -5
- package/boxclip/index.js +7 -6
- package/clientPrint/index.js +37 -11
- package/excavatefillanalysis/index.js +8 -7
- package/flight/index.js +1 -1
- package/floodanalysis/index.js +8 -6
- package/geologicalbodyanalysis/index.js +6 -4
- package/gpuspatialquery/index.js +7 -6
- package/heatmap3d/index.js +4 -4
- package/index.js +264 -168
- package/isolineanalysis/index.js +7 -6
- package/measure/index.js +2 -2
- package/modelFlat/index.js +64 -41
- package/modelexcavate/index.js +22 -17
- package/modelselect/index.js +7 -6
- package/package.json +1 -1
- package/planeclip/index.js +7 -6
- package/scaneffect/index.js +4 -4
- package/sceneadvancedtoimage/index.js +4 -2
- package/sceneview/index.js +264 -168
- package/shadowanalysis/index.js +6 -4
- package/skylineanalysis/index.js +7 -5
- package/slopeanalysis/index.js +7 -5
- package/slopeaspectanalysis/index.js +8 -5
- package/terrainoperation/index.js +8 -6
- package/terrainprofileanalysis/index.js +7 -5
package/sceneview/index.js
CHANGED
|
@@ -9773,9 +9773,9 @@ var defineProperty = __webpack_require__(6913);
|
|
|
9773
9773
|
var message = __webpack_require__(3275);
|
|
9774
9774
|
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
9775
9775
|
|
|
9776
|
-
/*
|
|
9777
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
9778
|
-
* All rights reserved.
|
|
9776
|
+
/*
|
|
9777
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
9778
|
+
* All rights reserved.
|
|
9779
9779
|
*/
|
|
9780
9780
|
/**
|
|
9781
9781
|
* 坡向逻辑类
|
|
@@ -9790,6 +9790,8 @@ class AspectAnalysisViewModel {
|
|
|
9790
9790
|
viewer: null,
|
|
9791
9791
|
_drawManager: null
|
|
9792
9792
|
});
|
|
9793
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
9794
|
+
this._language = scenceView._language;
|
|
9793
9795
|
this._globaOptions.viewer = scenceView._viewer;
|
|
9794
9796
|
let options = {
|
|
9795
9797
|
interval: aspect.interval || 500,
|
|
@@ -9825,13 +9827,13 @@ class AspectAnalysisViewModel {
|
|
|
9825
9827
|
}
|
|
9826
9828
|
} else {
|
|
9827
9829
|
(0,message/* default */.A)({
|
|
9828
|
-
message: "
|
|
9830
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
9829
9831
|
type: "warning"
|
|
9830
9832
|
});
|
|
9831
9833
|
}
|
|
9832
9834
|
} else {
|
|
9833
9835
|
(0,message/* default */.A)({
|
|
9834
|
-
message: "
|
|
9836
|
+
message: this._language["terrainAnalysisTips"],
|
|
9835
9837
|
type: "warning"
|
|
9836
9838
|
});
|
|
9837
9839
|
}
|
|
@@ -10609,15 +10611,13 @@ var message = __webpack_require__(3275);
|
|
|
10609
10611
|
|
|
10610
10612
|
|
|
10611
10613
|
|
|
10612
|
-
/*
|
|
10613
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
10614
|
-
* All rights reserved.
|
|
10614
|
+
/*
|
|
10615
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
10616
|
+
* All rights reserved.
|
|
10615
10617
|
*/
|
|
10616
10618
|
//Box裁剪逻辑类
|
|
10617
10619
|
|
|
10618
10620
|
class BoxClipViewModel {
|
|
10619
|
-
//绘制完成监听事件
|
|
10620
|
-
|
|
10621
10621
|
constructor(scenceView, options) {
|
|
10622
10622
|
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
10623
10623
|
//三维viewer对象
|
|
@@ -10648,6 +10648,9 @@ class BoxClipViewModel {
|
|
|
10648
10648
|
(0,defineProperty/* default */.A)(this, "_drawManager", null);
|
|
10649
10649
|
//绘制管理对象
|
|
10650
10650
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
10651
|
+
//绘制完成监听事件
|
|
10652
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
10653
|
+
this._language = scenceView._language;
|
|
10651
10654
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
10652
10655
|
this._viewer = scenceView._viewer;
|
|
10653
10656
|
// this._viewer.enabledFXAA = true;
|
|
@@ -10705,7 +10708,7 @@ class BoxClipViewModel {
|
|
|
10705
10708
|
});
|
|
10706
10709
|
} else {
|
|
10707
10710
|
(0,message/* default */.A)({
|
|
10708
|
-
message: "
|
|
10711
|
+
message: this._language["addModelClipTips"],
|
|
10709
10712
|
type: "warning"
|
|
10710
10713
|
});
|
|
10711
10714
|
}
|
|
@@ -11653,6 +11656,11 @@ const __default__ = {
|
|
|
11653
11656
|
showLogo: {
|
|
11654
11657
|
type: Boolean,
|
|
11655
11658
|
default: false
|
|
11659
|
+
},
|
|
11660
|
+
// 是否使用自定义地图数据
|
|
11661
|
+
useCustomData: {
|
|
11662
|
+
type: Boolean,
|
|
11663
|
+
default: false
|
|
11656
11664
|
}
|
|
11657
11665
|
},
|
|
11658
11666
|
setup(__props, {
|
|
@@ -11667,7 +11675,7 @@ const __default__ = {
|
|
|
11667
11675
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
11668
11676
|
language.value = messages.value[newVal]["webgl"];
|
|
11669
11677
|
companyName.value = props.companyName || language.value.comapanyname;
|
|
11670
|
-
systemTime.value = newVal ==
|
|
11678
|
+
systemTime.value = newVal == "zh" ? getSystemIime() : getSystemEnTime();
|
|
11671
11679
|
printObj.value.popTitle = language.value.print;
|
|
11672
11680
|
});
|
|
11673
11681
|
const props = __props;
|
|
@@ -11806,14 +11814,34 @@ const __default__ = {
|
|
|
11806
11814
|
printState.value = false;
|
|
11807
11815
|
}
|
|
11808
11816
|
});
|
|
11817
|
+
let showMap = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
11818
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
11819
|
+
options: props && props.options,
|
|
11820
|
+
service: props && props.service,
|
|
11821
|
+
scenceInfo: props && props.scenceInfo,
|
|
11822
|
+
defaultShowLayerNames: props && props.defaultShowLayerNames,
|
|
11823
|
+
showToolButtons: props && props.showToolButtons,
|
|
11824
|
+
toolButtonsPosition: props && props.toolButtonsPosition,
|
|
11825
|
+
showLogo: props && props.showLogo
|
|
11826
|
+
});
|
|
11809
11827
|
let currentClick = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({});
|
|
11810
11828
|
let scaleFloor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(1);
|
|
11811
11829
|
let scaleStep = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0.2);
|
|
11812
11830
|
// 查询进度条
|
|
11813
11831
|
let loadState = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
11814
11832
|
// 三维球id
|
|
11815
|
-
global_event_default().
|
|
11833
|
+
global_event_default().setWebMap("scencePrint", "cesium", null);
|
|
11816
11834
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
11835
|
+
if (!props.useCustomData) {
|
|
11836
|
+
global_event_default().getWebMapByMapTarget(props.mapTarget, scenceView => {
|
|
11837
|
+
if (scenceView && scenceView._viewer) {
|
|
11838
|
+
formItem = scenceView._props;
|
|
11839
|
+
showMap = true;
|
|
11840
|
+
}
|
|
11841
|
+
});
|
|
11842
|
+
} else {
|
|
11843
|
+
showMap = true;
|
|
11844
|
+
}
|
|
11817
11845
|
setTitleDataform.value.data.title = props.printTitle || language.value.oneimage;
|
|
11818
11846
|
papAnchor.value = "portrait";
|
|
11819
11847
|
borderStyleValue.value = "printborder1";
|
|
@@ -12997,15 +13025,16 @@ const __default__ = {
|
|
|
12997
13025
|
ref: printContentDiv
|
|
12998
13026
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_21, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
|
|
12999
13027
|
src: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(scenceImageUrl)
|
|
13000
|
-
}, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
13028
|
+
}, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showMap) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_scene_view, {
|
|
13029
|
+
key: 0,
|
|
13001
13030
|
target: 'scencePrint',
|
|
13002
|
-
options:
|
|
13003
|
-
service:
|
|
13004
|
-
scenceInfo:
|
|
13005
|
-
showToolButtons:
|
|
13006
|
-
defaultShowLayerNames:
|
|
13007
|
-
toolButtonsPosition:
|
|
13008
|
-
showLogo:
|
|
13031
|
+
options: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).options,
|
|
13032
|
+
service: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).service,
|
|
13033
|
+
scenceInfo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).scenceInfo,
|
|
13034
|
+
showToolButtons: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showToolButtons,
|
|
13035
|
+
defaultShowLayerNames: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).defaultShowLayerNames,
|
|
13036
|
+
toolButtonsPosition: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).toolButtonsPosition,
|
|
13037
|
+
showLogo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showLogo,
|
|
13009
13038
|
style: {
|
|
13010
13039
|
"position": "relative"
|
|
13011
13040
|
}
|
|
@@ -13058,7 +13087,7 @@ const __default__ = {
|
|
|
13058
13087
|
}, 8 /* PROPS */, ["title"])], 8 /* PROPS */, _hoisted_24)], 40 /* PROPS, NEED_HYDRATION */, _hoisted_23)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, item.data.isShow]]);
|
|
13059
13088
|
}), 128 /* KEYED_FRAGMENT */))]),
|
|
13060
13089
|
_: 1 /* STABLE */
|
|
13061
|
-
}, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
|
|
13090
|
+
}, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
|
|
13062
13091
|
_: 1 /* STABLE */
|
|
13063
13092
|
})], 512 /* NEED_PATCH */)], 512 /* NEED_PATCH */);
|
|
13064
13093
|
};
|
|
@@ -13770,15 +13799,13 @@ var message = __webpack_require__(3275);
|
|
|
13770
13799
|
;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
|
|
13771
13800
|
|
|
13772
13801
|
|
|
13773
|
-
/*
|
|
13774
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
13775
|
-
* All rights reserved.
|
|
13802
|
+
/*
|
|
13803
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
13804
|
+
* All rights reserved.
|
|
13776
13805
|
*/
|
|
13777
13806
|
//填挖方分析逻辑类
|
|
13778
13807
|
|
|
13779
13808
|
class ExcavateFillAnalysisViewModel {
|
|
13780
|
-
//绘制完成监听事件
|
|
13781
|
-
|
|
13782
13809
|
constructor(scenceView, options, callback) {
|
|
13783
13810
|
(0,defineProperty/* default */.A)(this, "_excavateFillAnalysis", null);
|
|
13784
13811
|
//填挖方分析三维对象
|
|
@@ -13787,6 +13814,9 @@ class ExcavateFillAnalysisViewModel {
|
|
|
13787
13814
|
(0,defineProperty/* default */.A)(this, "_options", null);
|
|
13788
13815
|
//填挖方分析存储参数对象
|
|
13789
13816
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
13817
|
+
//绘制完成监听事件
|
|
13818
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
13819
|
+
this._language = scenceView._language;
|
|
13790
13820
|
options.viewer = scenceView._viewer;
|
|
13791
13821
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
13792
13822
|
if (options.cutColor) {
|
|
@@ -13835,13 +13865,13 @@ class ExcavateFillAnalysisViewModel {
|
|
|
13835
13865
|
});
|
|
13836
13866
|
} else {
|
|
13837
13867
|
(0,message/* default */.A)({
|
|
13838
|
-
message: "
|
|
13868
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
13839
13869
|
type: "warning"
|
|
13840
13870
|
});
|
|
13841
13871
|
}
|
|
13842
13872
|
} else {
|
|
13843
13873
|
(0,message/* default */.A)({
|
|
13844
|
-
message: "
|
|
13874
|
+
message: this._language["terrainAnalysisTips"],
|
|
13845
13875
|
type: "warning"
|
|
13846
13876
|
});
|
|
13847
13877
|
}
|
|
@@ -15206,7 +15236,7 @@ const __default__ = {
|
|
|
15206
15236
|
function save() {
|
|
15207
15237
|
if (pathName.value === "") {
|
|
15208
15238
|
(0,message/* default */.A)({
|
|
15209
|
-
message: "
|
|
15239
|
+
message: language.value["enterPathName"] + "!",
|
|
15210
15240
|
type: "warning"
|
|
15211
15241
|
});
|
|
15212
15242
|
} else {
|
|
@@ -15662,9 +15692,9 @@ var message = __webpack_require__(3275);
|
|
|
15662
15692
|
|
|
15663
15693
|
|
|
15664
15694
|
|
|
15665
|
-
/*
|
|
15666
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
15667
|
-
* All rights reserved.
|
|
15695
|
+
/*
|
|
15696
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
15697
|
+
* All rights reserved.
|
|
15668
15698
|
*/
|
|
15669
15699
|
|
|
15670
15700
|
//地形淹没分析逻辑类
|
|
@@ -15682,6 +15712,7 @@ class FloodAnalysisViewModel {
|
|
|
15682
15712
|
//测量结果
|
|
15683
15713
|
(0,defineProperty/* default */.A)(this, "_mode", 0);
|
|
15684
15714
|
//淹没模式
|
|
15715
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
15685
15716
|
(0,defineProperty/* default */.A)(this, "_colorImages", [
|
|
15686
15717
|
//淹没纹理图片集合
|
|
15687
15718
|
{
|
|
@@ -15694,6 +15725,7 @@ class FloodAnalysisViewModel {
|
|
|
15694
15725
|
value: "2",
|
|
15695
15726
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
15696
15727
|
}]);
|
|
15728
|
+
this._language = scenceView._language;
|
|
15697
15729
|
this._mode = options.mode;
|
|
15698
15730
|
options.viewer = scenceView._viewer;
|
|
15699
15731
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
@@ -15760,13 +15792,13 @@ class FloodAnalysisViewModel {
|
|
|
15760
15792
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
15761
15793
|
} else {
|
|
15762
15794
|
(0,message/* default */.A)({
|
|
15763
|
-
message: "
|
|
15795
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
15764
15796
|
type: "warning"
|
|
15765
15797
|
});
|
|
15766
15798
|
}
|
|
15767
15799
|
} else {
|
|
15768
15800
|
(0,message/* default */.A)({
|
|
15769
|
-
message: "
|
|
15801
|
+
message: this._language["terrainAnalysisTips"],
|
|
15770
15802
|
type: "warning"
|
|
15771
15803
|
});
|
|
15772
15804
|
}
|
|
@@ -15784,7 +15816,7 @@ class FloodAnalysisViewModel {
|
|
|
15784
15816
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
15785
15817
|
} else {
|
|
15786
15818
|
(0,message/* default */.A)({
|
|
15787
|
-
message: "
|
|
15819
|
+
message: this._language["addModelAnalysisTips"],
|
|
15788
15820
|
type: "warning"
|
|
15789
15821
|
});
|
|
15790
15822
|
}
|
|
@@ -16460,9 +16492,9 @@ var message = __webpack_require__(3275);
|
|
|
16460
16492
|
|
|
16461
16493
|
|
|
16462
16494
|
|
|
16463
|
-
/*
|
|
16464
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
16465
|
-
* All rights reserved.
|
|
16495
|
+
/*
|
|
16496
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
16497
|
+
* All rights reserved.
|
|
16466
16498
|
*/
|
|
16467
16499
|
//地质体分析逻辑类
|
|
16468
16500
|
|
|
@@ -16475,6 +16507,8 @@ class GeologicalBodyAnalysisViewModel {
|
|
|
16475
16507
|
(0,defineProperty/* default */.A)(this, "_geologyBody", null);
|
|
16476
16508
|
//地质体分析三维对象
|
|
16477
16509
|
(0,defineProperty/* default */.A)(this, "_measureHandler", null);
|
|
16510
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
16511
|
+
this._language = scenceView._language;
|
|
16478
16512
|
this._options = options;
|
|
16479
16513
|
this._viewer = scenceView._viewer;
|
|
16480
16514
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer);
|
|
@@ -16574,7 +16608,7 @@ class GeologicalBodyAnalysisViewModel {
|
|
|
16574
16608
|
}
|
|
16575
16609
|
} else {
|
|
16576
16610
|
(0,message/* default */.A)({
|
|
16577
|
-
message: "
|
|
16611
|
+
message: this._language["addGeologyBodyTips"],
|
|
16578
16612
|
type: "warning"
|
|
16579
16613
|
});
|
|
16580
16614
|
}
|
|
@@ -17061,15 +17095,13 @@ var message = __webpack_require__(3275);
|
|
|
17061
17095
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
17062
17096
|
|
|
17063
17097
|
|
|
17064
|
-
/*
|
|
17065
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
17066
|
-
* All rights reserved.
|
|
17098
|
+
/*
|
|
17099
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
17100
|
+
* All rights reserved.
|
|
17067
17101
|
*/
|
|
17068
17102
|
//GPU空间查询逻辑类
|
|
17069
17103
|
|
|
17070
17104
|
class GPUSpatialQueryViewModel {
|
|
17071
|
-
//绘制完成监听事件
|
|
17072
|
-
|
|
17073
17105
|
constructor(scenceView, options) {
|
|
17074
17106
|
(0,defineProperty/* default */.A)(this, "_gpuSpatialQuery", null);
|
|
17075
17107
|
//GPU查询三维对象
|
|
@@ -17084,6 +17116,9 @@ class GPUSpatialQueryViewModel {
|
|
|
17084
17116
|
(0,defineProperty/* default */.A)(this, "finishedQuery", null);
|
|
17085
17117
|
//绘制后的查询事件
|
|
17086
17118
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
17119
|
+
//绘制完成监听事件
|
|
17120
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
17121
|
+
this._language = scenceView._language;
|
|
17087
17122
|
options.viewer = scenceView._viewer;
|
|
17088
17123
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
17089
17124
|
options.viewer.scene.logarithmicDepthBuffer = true;
|
|
@@ -17162,7 +17197,7 @@ class GPUSpatialQueryViewModel {
|
|
|
17162
17197
|
});
|
|
17163
17198
|
} else {
|
|
17164
17199
|
(0,message/* default */.A)({
|
|
17165
|
-
message: "
|
|
17200
|
+
message: this._language["addModelAnalysisTips"],
|
|
17166
17201
|
type: "warning"
|
|
17167
17202
|
});
|
|
17168
17203
|
}
|
|
@@ -18082,9 +18117,9 @@ var defineProperty = __webpack_require__(6913);
|
|
|
18082
18117
|
var message = __webpack_require__(3275);
|
|
18083
18118
|
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
|
|
18084
18119
|
|
|
18085
|
-
/*
|
|
18086
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
18087
|
-
* All rights reserved.
|
|
18120
|
+
/*
|
|
18121
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
18122
|
+
* All rights reserved.
|
|
18088
18123
|
*/
|
|
18089
18124
|
//热力图
|
|
18090
18125
|
|
|
@@ -18144,7 +18179,7 @@ class Heatmap3dViewModel {
|
|
|
18144
18179
|
lat: lat
|
|
18145
18180
|
}));
|
|
18146
18181
|
}
|
|
18147
|
-
(0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "
|
|
18182
|
+
(0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "longitude"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "latitude"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "value"}:${val}</p>`);
|
|
18148
18183
|
that._mouseLabel.setVisible(true);
|
|
18149
18184
|
} else {
|
|
18150
18185
|
that._mouseLabel.setVisible(false);
|
|
@@ -19585,16 +19620,14 @@ var message = __webpack_require__(3275);
|
|
|
19585
19620
|
|
|
19586
19621
|
|
|
19587
19622
|
|
|
19588
|
-
/*
|
|
19589
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
19590
|
-
* All rights reserved.
|
|
19623
|
+
/*
|
|
19624
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
19625
|
+
* All rights reserved.
|
|
19591
19626
|
*/
|
|
19592
19627
|
|
|
19593
19628
|
//等值线分析逻辑类
|
|
19594
19629
|
|
|
19595
19630
|
class IsolineAnalysisViewModel {
|
|
19596
|
-
//等值线分析存储参数对象
|
|
19597
|
-
|
|
19598
19631
|
constructor(scenceView, options) {
|
|
19599
19632
|
(0,defineProperty/* default */.A)(this, "_elevation", null);
|
|
19600
19633
|
//等值线分析三维对象
|
|
@@ -19621,6 +19654,9 @@ class IsolineAnalysisViewModel {
|
|
|
19621
19654
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
19622
19655
|
}]);
|
|
19623
19656
|
(0,defineProperty/* default */.A)(this, "_options", null);
|
|
19657
|
+
//等值线分析存储参数对象
|
|
19658
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
19659
|
+
this._language = scenceView._language;
|
|
19624
19660
|
this._options = options;
|
|
19625
19661
|
this._options.viewer = scenceView._viewer;
|
|
19626
19662
|
this._options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
@@ -19774,7 +19810,7 @@ class IsolineAnalysisViewModel {
|
|
|
19774
19810
|
});
|
|
19775
19811
|
} else {
|
|
19776
19812
|
(0,message/* default */.A)({
|
|
19777
|
-
message: "
|
|
19813
|
+
message: this._language["terrainAnalysisTips"],
|
|
19778
19814
|
type: "warning"
|
|
19779
19815
|
});
|
|
19780
19816
|
}
|
|
@@ -23551,7 +23587,7 @@ const __default__ = {
|
|
|
23551
23587
|
if (mode.value === "ground") {
|
|
23552
23588
|
if (!viewModel.checkTerrainAdded()) {
|
|
23553
23589
|
(0,message/* default */.A)({
|
|
23554
|
-
message: "
|
|
23590
|
+
message: language.value["measuretAddTerrainTips"],
|
|
23555
23591
|
type: "warning"
|
|
23556
23592
|
});
|
|
23557
23593
|
return;
|
|
@@ -23560,7 +23596,7 @@ const __default__ = {
|
|
|
23560
23596
|
if (mode.value === "model") {
|
|
23561
23597
|
if (!viewModel.checkModelAdded()) {
|
|
23562
23598
|
(0,message/* default */.A)({
|
|
23563
|
-
message: "
|
|
23599
|
+
message: language.value["measuretAddModelTips"],
|
|
23564
23600
|
type: "warning"
|
|
23565
23601
|
});
|
|
23566
23602
|
return;
|
|
@@ -23852,9 +23888,9 @@ var message = __webpack_require__(3275);
|
|
|
23852
23888
|
|
|
23853
23889
|
|
|
23854
23890
|
|
|
23855
|
-
/*
|
|
23856
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
23857
|
-
* All rights reserved.
|
|
23891
|
+
/*
|
|
23892
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
23893
|
+
* All rights reserved.
|
|
23858
23894
|
*/
|
|
23859
23895
|
//模型拾取逻辑类
|
|
23860
23896
|
|
|
@@ -23868,32 +23904,54 @@ class ModelFlatViewModel {
|
|
|
23868
23904
|
//全局参数
|
|
23869
23905
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
23870
23906
|
//绘制完成监听事件
|
|
23907
|
+
(0,defineProperty/* default */.A)(this, "_measureHandler", null);
|
|
23908
|
+
//测量三维对象
|
|
23909
|
+
(0,defineProperty/* default */.A)(this, "_measureResult", null);
|
|
23910
|
+
//测量结果
|
|
23871
23911
|
(0,defineProperty/* default */.A)(this, "_flatteningPolygonTex", null);
|
|
23872
23912
|
// 平整对象
|
|
23873
23913
|
(0,defineProperty/* default */.A)(this, "_assistPolygons", []);
|
|
23874
23914
|
//平整辅助面数组
|
|
23875
23915
|
(0,defineProperty/* default */.A)(this, "currentFlatPolygonIndex", -1);
|
|
23916
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
23876
23917
|
this._viewer = scenceView._viewer;
|
|
23877
23918
|
this._options = viewModel;
|
|
23878
23919
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
23920
|
+
this._language = scenceView._language;
|
|
23879
23921
|
this._drawManager = scenceView._drawManager;
|
|
23880
23922
|
//Create flattenning controller
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
23885
|
-
|
|
23886
|
-
|
|
23887
|
-
|
|
23888
|
-
|
|
23923
|
+
var that = this;
|
|
23924
|
+
if (scenceView.g_flattenedPolygonTexture) {
|
|
23925
|
+
this._flatteningPolygonTex = scenceView.g_flattenedPolygonTexture;
|
|
23926
|
+
} else {
|
|
23927
|
+
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
23928
|
+
this._flatteningPolygonTex = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
23929
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
23930
|
+
for (let i = 0; i < models.length; i++) {
|
|
23931
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
23932
|
+
that._flatteningPolygonTex.attachTileset(models[i]);
|
|
23933
|
+
}
|
|
23889
23934
|
}
|
|
23890
23935
|
}
|
|
23891
|
-
|
|
23892
|
-
|
|
23893
|
-
|
|
23894
|
-
|
|
23895
|
-
|
|
23896
|
-
|
|
23936
|
+
// this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
23937
|
+
// if (shape) {
|
|
23938
|
+
// that._options.positions = shape._controlPoints;
|
|
23939
|
+
// that.createFlat();
|
|
23940
|
+
// that._drawManager.clear();
|
|
23941
|
+
// }
|
|
23942
|
+
// });
|
|
23943
|
+
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
23944
|
+
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
23945
|
+
that._measureResult = result;
|
|
23946
|
+
result.measureResult.label.show = false;
|
|
23947
|
+
});
|
|
23948
|
+
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
23949
|
+
if (ret == false) {
|
|
23950
|
+
if (that._measureResult) {
|
|
23951
|
+
that._options.positions = that._measureResult.positions;
|
|
23952
|
+
that.createFlat();
|
|
23953
|
+
that._measureResult.measureResult.destroy();
|
|
23954
|
+
}
|
|
23897
23955
|
}
|
|
23898
23956
|
});
|
|
23899
23957
|
}
|
|
@@ -23912,7 +23970,7 @@ class ModelFlatViewModel {
|
|
|
23912
23970
|
positions: this._options.positions,
|
|
23913
23971
|
height: this._options.flatHeight
|
|
23914
23972
|
});
|
|
23915
|
-
this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
23973
|
+
this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
23916
23974
|
}
|
|
23917
23975
|
// 获取平整数量
|
|
23918
23976
|
getFlatCount() {
|
|
@@ -23924,18 +23982,18 @@ class ModelFlatViewModel {
|
|
|
23924
23982
|
var flag = false;
|
|
23925
23983
|
var models = this._viewer.scene.primitives._primitives;
|
|
23926
23984
|
for (let i = 0; i < models.length; i++) {
|
|
23927
|
-
if (models[i]._url) {
|
|
23985
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
23986
|
+
models[i].flattenDiscard = false;
|
|
23928
23987
|
flag = true;
|
|
23929
23988
|
}
|
|
23930
23989
|
}
|
|
23931
23990
|
if (flag) {
|
|
23932
|
-
this.remove();
|
|
23933
|
-
this.
|
|
23934
|
-
|
|
23935
|
-
});
|
|
23991
|
+
this.remove(!this._options.showFlattenedPolygons);
|
|
23992
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
23993
|
+
// this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
23936
23994
|
} else {
|
|
23937
23995
|
(0,message/* default */.A)({
|
|
23938
|
-
message: "
|
|
23996
|
+
message: this._language["addModelTips"],
|
|
23939
23997
|
type: "warning"
|
|
23940
23998
|
});
|
|
23941
23999
|
}
|
|
@@ -23943,7 +24001,7 @@ class ModelFlatViewModel {
|
|
|
23943
24001
|
// 切换高度重新计算
|
|
23944
24002
|
setHeight(val) {
|
|
23945
24003
|
this._options.flatHeight = Number(val);
|
|
23946
|
-
if (this.currentFlatPolygonIndex
|
|
24004
|
+
if (this.currentFlatPolygonIndex == -1) {
|
|
23947
24005
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
|
|
23948
24006
|
} else {
|
|
23949
24007
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
|
|
@@ -23967,21 +24025,27 @@ class ModelFlatViewModel {
|
|
|
23967
24025
|
this.currentFlatPolygonIndex = val;
|
|
23968
24026
|
}
|
|
23969
24027
|
// 清除绘制
|
|
23970
|
-
remove() {
|
|
24028
|
+
remove(bool) {
|
|
23971
24029
|
this._drawManager.stopDraw();
|
|
24030
|
+
if (bool) {
|
|
24031
|
+
this._flatteningPolygonTex && this._flatteningPolygonTex.removeAllFlattenedPolygon();
|
|
24032
|
+
for (var i = 0; i < this._assistPolygons.length; i++) {
|
|
24033
|
+
this._viewer.entities.remove(this._assistPolygons[i]);
|
|
24034
|
+
}
|
|
24035
|
+
this._assistPolygons = [];
|
|
24036
|
+
}
|
|
23972
24037
|
}
|
|
23973
24038
|
// 清除
|
|
23974
24039
|
clear() {
|
|
23975
|
-
this.remove();
|
|
23976
|
-
this.
|
|
23977
|
-
|
|
23978
|
-
this._viewer.entities.remove(this._assistPolygons[i]);
|
|
23979
|
-
}
|
|
23980
|
-
this._assistPolygons = [];
|
|
24040
|
+
this.remove(true);
|
|
24041
|
+
this._measureResult = null;
|
|
24042
|
+
this._measureHandler.clear();
|
|
23981
24043
|
}
|
|
23982
24044
|
//销毁
|
|
23983
24045
|
destroy() {
|
|
23984
24046
|
this.clear();
|
|
24047
|
+
this._measureHandler && this._measureHandler.destroy();
|
|
24048
|
+
this._measureHandler = null;
|
|
23985
24049
|
}
|
|
23986
24050
|
}
|
|
23987
24051
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
@@ -24072,7 +24136,9 @@ const __default__ = {
|
|
|
24072
24136
|
// 模型平整深度范围最小值
|
|
24073
24137
|
maxFlatDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100,
|
|
24074
24138
|
// 模型平整深度范围最大值
|
|
24075
|
-
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true
|
|
24139
|
+
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
|
|
24140
|
+
// 压平面是否显示
|
|
24141
|
+
showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
|
|
24076
24142
|
});
|
|
24077
24143
|
|
|
24078
24144
|
// 组件容器Ref
|
|
@@ -24105,14 +24171,7 @@ const __default__ = {
|
|
|
24105
24171
|
//父组件ScenceView初始化完成后执行
|
|
24106
24172
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
24107
24173
|
if (scenceView) {
|
|
24108
|
-
viewModel = new ModelFlatViewModel(scenceView,
|
|
24109
|
-
flatHeight: formItem.flatHeight,
|
|
24110
|
-
flatteningShow: formItem.flatteningShow
|
|
24111
|
-
});
|
|
24112
|
-
setTimeout(() => {
|
|
24113
|
-
setCurrentFlatPolygonIndex(0);
|
|
24114
|
-
console.log(getFlatCount());
|
|
24115
|
-
}, 1500);
|
|
24174
|
+
viewModel = new ModelFlatViewModel(scenceView, formItem);
|
|
24116
24175
|
}
|
|
24117
24176
|
});
|
|
24118
24177
|
});
|
|
@@ -24332,6 +24391,7 @@ class ModelExcavateViewModel {
|
|
|
24332
24391
|
(0,defineProperty/* default */.A)(this, "_wallPrimitive", void 0);
|
|
24333
24392
|
//Kq3dWallPrimitive
|
|
24334
24393
|
(0,defineProperty/* default */.A)(this, "entity0", null);
|
|
24394
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
24335
24395
|
(0,defineProperty/* default */.A)(this, "wall", null);
|
|
24336
24396
|
(0,defineProperty/* default */.A)(this, "ratio", 0.01);
|
|
24337
24397
|
(0,defineProperty/* default */.A)(this, "ii", 1);
|
|
@@ -24343,21 +24403,25 @@ class ModelExcavateViewModel {
|
|
|
24343
24403
|
(0,defineProperty/* default */.A)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
|
|
24344
24404
|
(0,defineProperty/* default */.A)(this, "intervalId", null);
|
|
24345
24405
|
(0,defineProperty/* default */.A)(this, "g_flattenedPolygonTexture", null);
|
|
24406
|
+
this._language = scenceView._language;
|
|
24346
24407
|
this._viewer = scenceView._viewer;
|
|
24347
24408
|
this._options = options;
|
|
24348
24409
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
24349
|
-
|
|
24350
|
-
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
24351
|
-
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
24352
24410
|
var that = this;
|
|
24353
|
-
|
|
24354
|
-
|
|
24355
|
-
|
|
24356
|
-
|
|
24357
|
-
|
|
24358
|
-
|
|
24359
|
-
|
|
24360
|
-
|
|
24411
|
+
if (scenceView.g_flattenedPolygonTexture) {
|
|
24412
|
+
this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
|
|
24413
|
+
} else {
|
|
24414
|
+
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
24415
|
+
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
24416
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
24417
|
+
for (let i = 0; i < models.length; i++) {
|
|
24418
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
24419
|
+
models[i].enableFlattenning = true;
|
|
24420
|
+
models[i].flattenDiscard = true;
|
|
24421
|
+
models[i].readyPromise.then(function (tileset) {
|
|
24422
|
+
that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
24423
|
+
});
|
|
24424
|
+
}
|
|
24361
24425
|
}
|
|
24362
24426
|
}
|
|
24363
24427
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
@@ -24490,8 +24554,8 @@ class ModelExcavateViewModel {
|
|
|
24490
24554
|
var models = this._viewer.scene.primitives._primitives;
|
|
24491
24555
|
for (let i = 0; i < models.length; i++) {
|
|
24492
24556
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
24493
|
-
|
|
24494
|
-
|
|
24557
|
+
models[i].enableFlattenning = true;
|
|
24558
|
+
models[i].flattenDiscard = true;
|
|
24495
24559
|
// models[i].readyPromise.then(function (tileset) {
|
|
24496
24560
|
// that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
24497
24561
|
// });
|
|
@@ -24503,7 +24567,7 @@ class ModelExcavateViewModel {
|
|
|
24503
24567
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
24504
24568
|
} else {
|
|
24505
24569
|
(0,message/* default */.A)({
|
|
24506
|
-
message: "
|
|
24570
|
+
message: this._language["addModelTips"],
|
|
24507
24571
|
type: "warning"
|
|
24508
24572
|
});
|
|
24509
24573
|
}
|
|
@@ -24542,8 +24606,8 @@ class ModelExcavateViewModel {
|
|
|
24542
24606
|
//销毁
|
|
24543
24607
|
destroy() {
|
|
24544
24608
|
this.clear();
|
|
24545
|
-
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
24546
|
-
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
24609
|
+
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
24610
|
+
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
24547
24611
|
this._measureHandler && this._measureHandler.destroy();
|
|
24548
24612
|
this._measureHandler = null;
|
|
24549
24613
|
}
|
|
@@ -24761,7 +24825,7 @@ const __default__ = {
|
|
|
24761
24825
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
24762
24826
|
class: "kq3d-model-excavate-tip"
|
|
24763
24827
|
}, {
|
|
24764
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips
|
|
24828
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1 /* TEXT */)]),
|
|
24765
24829
|
_: 1 /* STABLE */
|
|
24766
24830
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
24767
24831
|
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
@@ -26164,15 +26228,13 @@ var message = __webpack_require__(3275);
|
|
|
26164
26228
|
|
|
26165
26229
|
|
|
26166
26230
|
|
|
26167
|
-
/*
|
|
26168
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
26169
|
-
* All rights reserved.
|
|
26231
|
+
/*
|
|
26232
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
26233
|
+
* All rights reserved.
|
|
26170
26234
|
*/
|
|
26171
26235
|
//模型拾取逻辑类
|
|
26172
26236
|
|
|
26173
26237
|
class ModelSelectViewModel {
|
|
26174
|
-
// 模型属性匹配字段
|
|
26175
|
-
|
|
26176
26238
|
constructor(scenceView, pickCallFunc) {
|
|
26177
26239
|
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
26178
26240
|
//三维viewer对象
|
|
@@ -26187,6 +26249,9 @@ class ModelSelectViewModel {
|
|
|
26187
26249
|
(0,defineProperty/* default */.A)(this, "_modeFiledArray", null);
|
|
26188
26250
|
// 模型属性唯一值字段集合
|
|
26189
26251
|
(0,defineProperty/* default */.A)(this, "_modeFiled", "id");
|
|
26252
|
+
// 模型属性匹配字段
|
|
26253
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
26254
|
+
this._language = scenceView._language;
|
|
26190
26255
|
this._viewer = scenceView._viewer;
|
|
26191
26256
|
this._drawManager = scenceView._drawManager;
|
|
26192
26257
|
this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
|
|
@@ -26251,7 +26316,7 @@ class ModelSelectViewModel {
|
|
|
26251
26316
|
this._isPick = true;
|
|
26252
26317
|
} else {
|
|
26253
26318
|
(0,message/* default */.A)({
|
|
26254
|
-
message: "
|
|
26319
|
+
message: this._language["addModelAnalysisTips"],
|
|
26255
26320
|
type: "warning"
|
|
26256
26321
|
});
|
|
26257
26322
|
}
|
|
@@ -27492,15 +27557,13 @@ var message = __webpack_require__(3275);
|
|
|
27492
27557
|
|
|
27493
27558
|
|
|
27494
27559
|
|
|
27495
|
-
/*
|
|
27496
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
27497
|
-
* All rights reserved.
|
|
27560
|
+
/*
|
|
27561
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
27562
|
+
* All rights reserved.
|
|
27498
27563
|
*/
|
|
27499
27564
|
//平面裁剪逻辑类
|
|
27500
27565
|
|
|
27501
27566
|
class PlaneClipViewModel {
|
|
27502
|
-
//绘制完成事件监听
|
|
27503
|
-
|
|
27504
27567
|
constructor(scenceView, options) {
|
|
27505
27568
|
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
27506
27569
|
//三维viewer对象
|
|
@@ -27535,10 +27598,13 @@ class PlaneClipViewModel {
|
|
|
27535
27598
|
(0,defineProperty/* default */.A)(this, "_drawManager", null);
|
|
27536
27599
|
//绘制管理对象
|
|
27537
27600
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
27601
|
+
//绘制完成事件监听
|
|
27602
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
27538
27603
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
27539
27604
|
this._viewer = scenceView._viewer;
|
|
27540
27605
|
// this._viewer.enabledFXAA = true;
|
|
27541
27606
|
this._options.viewer = this._viewer;
|
|
27607
|
+
this._language = scenceView._language;
|
|
27542
27608
|
this._drawManager = scenceView._drawManager;
|
|
27543
27609
|
let that = this;
|
|
27544
27610
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
@@ -27591,7 +27657,7 @@ class PlaneClipViewModel {
|
|
|
27591
27657
|
});
|
|
27592
27658
|
} else {
|
|
27593
27659
|
(0,message/* default */.A)({
|
|
27594
|
-
message: "
|
|
27660
|
+
message: this._language["addModelAnalysisTips"],
|
|
27595
27661
|
type: "warning"
|
|
27596
27662
|
});
|
|
27597
27663
|
}
|
|
@@ -28809,9 +28875,9 @@ var const_image_ = __webpack_require__(4822);
|
|
|
28809
28875
|
;// CONCATENATED MODULE: ./src/webgl/scaneffect/ScanEffectViewModel.js
|
|
28810
28876
|
|
|
28811
28877
|
|
|
28812
|
-
/*
|
|
28813
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
28814
|
-
* All rights reserved.
|
|
28878
|
+
/*
|
|
28879
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
28880
|
+
* All rights reserved.
|
|
28815
28881
|
*/
|
|
28816
28882
|
|
|
28817
28883
|
|
|
@@ -29225,7 +29291,7 @@ class ScanEffectViewModel {
|
|
|
29225
29291
|
}
|
|
29226
29292
|
} else {
|
|
29227
29293
|
(0,message/* default */.A)({
|
|
29228
|
-
message: "
|
|
29294
|
+
message: this._language["addModelExtractionTips"],
|
|
29229
29295
|
type: "warning"
|
|
29230
29296
|
});
|
|
29231
29297
|
}
|
|
@@ -30053,6 +30119,8 @@ class SceneAdvancedToImageViewModel {
|
|
|
30053
30119
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
30054
30120
|
//绘制完成监听事件
|
|
30055
30121
|
(0,defineProperty/* default */.A)(this, "_satellitePyramidPrimitive", null);
|
|
30122
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
30123
|
+
this._language = scenceView._language;
|
|
30056
30124
|
this._viewer = scenceView._viewer;
|
|
30057
30125
|
this._options = options;
|
|
30058
30126
|
this._drawManager = scenceView._drawManager;
|
|
@@ -30101,13 +30169,13 @@ class SceneAdvancedToImageViewModel {
|
|
|
30101
30169
|
}, 1000);
|
|
30102
30170
|
} catch (error) {
|
|
30103
30171
|
(0,message/* default */.A)({
|
|
30104
|
-
message: "
|
|
30172
|
+
message: this._language["toImageErrorTips"],
|
|
30105
30173
|
type: "error"
|
|
30106
30174
|
});
|
|
30107
30175
|
}
|
|
30108
30176
|
} else {
|
|
30109
30177
|
(0,message/* default */.A)({
|
|
30110
|
-
message: "
|
|
30178
|
+
message: this._language["toImageCentrumOpticusTips"],
|
|
30111
30179
|
type: "warning"
|
|
30112
30180
|
});
|
|
30113
30181
|
}
|
|
@@ -36576,9 +36644,9 @@ var message = __webpack_require__(3275);
|
|
|
36576
36644
|
;// CONCATENATED MODULE: ./src/webgl/shadowanalysis/ShadowAnalysisViewModel.js
|
|
36577
36645
|
|
|
36578
36646
|
|
|
36579
|
-
/*
|
|
36580
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
36581
|
-
* All rights reserved.
|
|
36647
|
+
/*
|
|
36648
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
36649
|
+
* All rights reserved.
|
|
36582
36650
|
*/
|
|
36583
36651
|
// 分析逻辑类
|
|
36584
36652
|
|
|
@@ -36591,6 +36659,8 @@ class ShadowAnalysisViewModel {
|
|
|
36591
36659
|
viewer: null,
|
|
36592
36660
|
_drawManager: null
|
|
36593
36661
|
});
|
|
36662
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
36663
|
+
this._language = scenceView._language;
|
|
36594
36664
|
this._globaOptions.viewer = scenceView._viewer;
|
|
36595
36665
|
this._globaOptions.viewModel = {
|
|
36596
36666
|
viewer: this._globaOptions.viewer,
|
|
@@ -36658,7 +36728,7 @@ class ShadowAnalysisViewModel {
|
|
|
36658
36728
|
});
|
|
36659
36729
|
} else {
|
|
36660
36730
|
(0,message/* default */.A)({
|
|
36661
|
-
message: "
|
|
36731
|
+
message: this._language["addModelAnalysisTips"],
|
|
36662
36732
|
type: "warning"
|
|
36663
36733
|
});
|
|
36664
36734
|
}
|
|
@@ -38140,9 +38210,9 @@ var defineProperty = __webpack_require__(6913);
|
|
|
38140
38210
|
var message = __webpack_require__(3275);
|
|
38141
38211
|
;// CONCATENATED MODULE: ./src/webgl/skylineanalysis/SkylineAnalysisViewModel.js
|
|
38142
38212
|
|
|
38143
|
-
/*
|
|
38144
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
38145
|
-
* All rights reserved.
|
|
38213
|
+
/*
|
|
38214
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
38215
|
+
* All rights reserved.
|
|
38146
38216
|
*/
|
|
38147
38217
|
//天际线分析逻辑类
|
|
38148
38218
|
|
|
@@ -38167,6 +38237,8 @@ class SkylineAnalysisViewModel {
|
|
|
38167
38237
|
(0,defineProperty/* default */.A)(this, "_options", null);
|
|
38168
38238
|
(0,defineProperty/* default */.A)(this, "_showLimitHeightBody", null);
|
|
38169
38239
|
(0,defineProperty/* default */.A)(this, "_chartStyle", null);
|
|
38240
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
38241
|
+
this._language = scenceView._language;
|
|
38170
38242
|
this._chartStyle = chartStyle;
|
|
38171
38243
|
viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
38172
38244
|
viewer.scene.postProcessStages._fxaa.enabled = true;
|
|
@@ -38212,7 +38284,7 @@ class SkylineAnalysisViewModel {
|
|
|
38212
38284
|
this.setSkyline2D();
|
|
38213
38285
|
} else {
|
|
38214
38286
|
(0,message/* default */.A)({
|
|
38215
|
-
message: "
|
|
38287
|
+
message: this._language["addModelExtractionTips"],
|
|
38216
38288
|
type: "warning"
|
|
38217
38289
|
});
|
|
38218
38290
|
}
|
|
@@ -38240,7 +38312,7 @@ class SkylineAnalysisViewModel {
|
|
|
38240
38312
|
this._skylineAnalysis.viewer.camera.moveBackward(1);
|
|
38241
38313
|
} else {
|
|
38242
38314
|
(0,message/* default */.A)({
|
|
38243
|
-
message: "
|
|
38315
|
+
message: this._language["addModelExtractionTips"],
|
|
38244
38316
|
type: "warning"
|
|
38245
38317
|
});
|
|
38246
38318
|
}
|
|
@@ -38909,9 +38981,9 @@ var message = __webpack_require__(3275);
|
|
|
38909
38981
|
|
|
38910
38982
|
|
|
38911
38983
|
|
|
38912
|
-
/*
|
|
38913
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
38914
|
-
* All rights reserved.
|
|
38984
|
+
/*
|
|
38985
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
38986
|
+
* All rights reserved.
|
|
38915
38987
|
*/
|
|
38916
38988
|
|
|
38917
38989
|
// 分析逻辑类
|
|
@@ -38937,6 +39009,8 @@ class SlopeAnalysisViewModel {
|
|
|
38937
39009
|
value: "2",
|
|
38938
39010
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
38939
39011
|
}]);
|
|
39012
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
39013
|
+
this._language = scenceView._language;
|
|
38940
39014
|
this._globaOptions.viewer = scenceView._viewer;
|
|
38941
39015
|
this._globaOptions.viewModel = {
|
|
38942
39016
|
fillStyle: viewModel.fillStyle,
|
|
@@ -39050,13 +39124,13 @@ class SlopeAnalysisViewModel {
|
|
|
39050
39124
|
}
|
|
39051
39125
|
} else {
|
|
39052
39126
|
(0,message/* default */.A)({
|
|
39053
|
-
message: "
|
|
39127
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
39054
39128
|
type: "warning"
|
|
39055
39129
|
});
|
|
39056
39130
|
}
|
|
39057
39131
|
} else {
|
|
39058
39132
|
(0,message/* default */.A)({
|
|
39059
|
-
message: "
|
|
39133
|
+
message: this._language["terrainAnalysisTips"],
|
|
39060
39134
|
type: "warning"
|
|
39061
39135
|
});
|
|
39062
39136
|
}
|
|
@@ -39825,9 +39899,9 @@ var message = __webpack_require__(3275);
|
|
|
39825
39899
|
|
|
39826
39900
|
|
|
39827
39901
|
|
|
39828
|
-
/*
|
|
39829
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
39830
|
-
* All rights reserved.
|
|
39902
|
+
/*
|
|
39903
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
39904
|
+
* All rights reserved.
|
|
39831
39905
|
*/
|
|
39832
39906
|
|
|
39833
39907
|
// 分析逻辑类
|
|
@@ -39843,6 +39917,7 @@ class SlopeAspectAnalysisViewModel {
|
|
|
39843
39917
|
viewer: null,
|
|
39844
39918
|
_drawManager: null
|
|
39845
39919
|
});
|
|
39920
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
39846
39921
|
(0,defineProperty/* default */.A)(this, "_colorImages", [
|
|
39847
39922
|
//渐变图片集合
|
|
39848
39923
|
{
|
|
@@ -39855,6 +39930,7 @@ class SlopeAspectAnalysisViewModel {
|
|
|
39855
39930
|
value: "2",
|
|
39856
39931
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
39857
39932
|
}]);
|
|
39933
|
+
this._language = scenceView._language;
|
|
39858
39934
|
this._globaOptions.viewer = scenceView._viewer;
|
|
39859
39935
|
this._globaOptions.viewModel = {
|
|
39860
39936
|
fillStyle: viewModel.fillStyle,
|
|
@@ -39962,17 +40038,18 @@ class SlopeAspectAnalysisViewModel {
|
|
|
39962
40038
|
}
|
|
39963
40039
|
} else {
|
|
39964
40040
|
(0,message/* default */.A)({
|
|
39965
|
-
message: "
|
|
40041
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
39966
40042
|
type: "warning"
|
|
39967
40043
|
});
|
|
39968
40044
|
}
|
|
39969
40045
|
} else {
|
|
39970
40046
|
(0,message/* default */.A)({
|
|
39971
|
-
message: "
|
|
40047
|
+
message: this._language["terrainAnalysisTips"],
|
|
39972
40048
|
type: "warning"
|
|
39973
40049
|
});
|
|
39974
40050
|
}
|
|
39975
40051
|
}
|
|
40052
|
+
|
|
39976
40053
|
//修改填充样式
|
|
39977
40054
|
changeFilltyle(key) {
|
|
39978
40055
|
this._globaOptions.viewModel.fillStyle = key;
|
|
@@ -41100,15 +41177,14 @@ var message = __webpack_require__(3275);
|
|
|
41100
41177
|
|
|
41101
41178
|
|
|
41102
41179
|
|
|
41103
|
-
/*
|
|
41104
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
41105
|
-
* All rights reserved.
|
|
41180
|
+
/*
|
|
41181
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
41182
|
+
* All rights reserved.
|
|
41106
41183
|
*/
|
|
41107
41184
|
|
|
41108
41185
|
//地形淹没分析逻辑类
|
|
41109
41186
|
|
|
41110
41187
|
class TerrainOperationViewModel {
|
|
41111
|
-
//绘制完成监听事件
|
|
41112
41188
|
constructor(scenceView, viewModel) {
|
|
41113
41189
|
(0,defineProperty/* default */.A)(this, "_terrainexcavationext", null);
|
|
41114
41190
|
//地形开挖三维对象
|
|
@@ -41127,6 +41203,9 @@ class TerrainOperationViewModel {
|
|
|
41127
41203
|
(0,defineProperty/* default */.A)(this, "_smoothHeight", 2000);
|
|
41128
41204
|
//平整高度
|
|
41129
41205
|
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
41206
|
+
//绘制完成监听事件
|
|
41207
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
41208
|
+
this._language = scenceView._language;
|
|
41130
41209
|
this._globaOptions.viewer = scenceView._viewer;
|
|
41131
41210
|
this._globaOptions.viewer.scene.logarithmicDepthBuffer = false;
|
|
41132
41211
|
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
@@ -41232,13 +41311,13 @@ class TerrainOperationViewModel {
|
|
|
41232
41311
|
});
|
|
41233
41312
|
} else {
|
|
41234
41313
|
(0,message/* default */.A)({
|
|
41235
|
-
message: "
|
|
41314
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
41236
41315
|
type: "warning"
|
|
41237
41316
|
});
|
|
41238
41317
|
}
|
|
41239
41318
|
} else {
|
|
41240
41319
|
(0,message/* default */.A)({
|
|
41241
|
-
message: "
|
|
41320
|
+
message: this._language["terrainAnalysisTips"],
|
|
41242
41321
|
type: "warning"
|
|
41243
41322
|
});
|
|
41244
41323
|
}
|
|
@@ -41673,9 +41752,9 @@ var message = __webpack_require__(3275);
|
|
|
41673
41752
|
;// CONCATENATED MODULE: ./src/webgl/terrainprofileanalysis/TerrainProfileAnalysisViewModel.js
|
|
41674
41753
|
|
|
41675
41754
|
|
|
41676
|
-
/*
|
|
41677
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
41678
|
-
* All rights reserved.
|
|
41755
|
+
/*
|
|
41756
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
41757
|
+
* All rights reserved.
|
|
41679
41758
|
*/
|
|
41680
41759
|
|
|
41681
41760
|
class TerrainProfileAnalysisViewModel {
|
|
@@ -41694,7 +41773,9 @@ class TerrainProfileAnalysisViewModel {
|
|
|
41694
41773
|
(0,defineProperty/* default */.A)(this, "distance", null);
|
|
41695
41774
|
(0,defineProperty/* default */.A)(this, "divPointArr", []);
|
|
41696
41775
|
(0,defineProperty/* default */.A)(this, "languageDta", {});
|
|
41776
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
41697
41777
|
(0,defineProperty/* default */.A)(this, "coordDivpoint", null);
|
|
41778
|
+
this._language = scenceView._language;
|
|
41698
41779
|
this._viewer = scenceView._viewer;
|
|
41699
41780
|
this._drawManager = scenceView._drawManager;
|
|
41700
41781
|
this._analyseHeight = option.analyseHeight;
|
|
@@ -41810,13 +41891,13 @@ class TerrainProfileAnalysisViewModel {
|
|
|
41810
41891
|
});
|
|
41811
41892
|
} else {
|
|
41812
41893
|
(0,message/* default */.A)({
|
|
41813
|
-
message: "
|
|
41894
|
+
message: this._language["stkTerrainAnalysisTips"],
|
|
41814
41895
|
type: "warning"
|
|
41815
41896
|
});
|
|
41816
41897
|
}
|
|
41817
41898
|
} else {
|
|
41818
41899
|
(0,message/* default */.A)({
|
|
41819
|
-
message: "
|
|
41900
|
+
message: this._language["terrainAnalysisTips"],
|
|
41820
41901
|
type: "warning"
|
|
41821
41902
|
});
|
|
41822
41903
|
}
|
|
@@ -49736,9 +49817,9 @@ function delTreeDataByGuid(data, guid) {
|
|
|
49736
49817
|
|
|
49737
49818
|
|
|
49738
49819
|
|
|
49739
|
-
/*
|
|
49740
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
49741
|
-
* All rights reserved.
|
|
49820
|
+
/*
|
|
49821
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
49822
|
+
* All rights reserved.
|
|
49742
49823
|
*/
|
|
49743
49824
|
//SceneView逻辑类
|
|
49744
49825
|
|
|
@@ -49802,8 +49883,23 @@ class SceneViewViewModel extends (mitt_default()) {
|
|
|
49802
49883
|
this._viewer.bottomContainer.children[0].style.display = "none";
|
|
49803
49884
|
}
|
|
49804
49885
|
// this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
49805
|
-
this.initManagerClass();
|
|
49806
49886
|
|
|
49887
|
+
// 模型开挖分析对象
|
|
49888
|
+
let that = this;
|
|
49889
|
+
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
49890
|
+
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
49891
|
+
// 模型开挖设置
|
|
49892
|
+
this._viewer.scene.primitives.primitiveAdded.addEventListener(function (result) {
|
|
49893
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.detachAllTileset();
|
|
49894
|
+
var models = that._viewer.scene.primitives._primitives;
|
|
49895
|
+
for (let i = 0; i < models.length; i++) {
|
|
49896
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
49897
|
+
models[i].enableFlattenning = true;
|
|
49898
|
+
that.g_flattenedPolygonTexture.attachTileset(models[i]);
|
|
49899
|
+
}
|
|
49900
|
+
}
|
|
49901
|
+
});
|
|
49902
|
+
this.initManagerClass();
|
|
49807
49903
|
// 添加模型淹没分析对象, 淹没分析组件使用
|
|
49808
49904
|
this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis({
|
|
49809
49905
|
viewer: this._viewer
|