eba2a574 by jikai

111111

1 parent f82c53a4
...@@ -31,26 +31,6 @@ ...@@ -31,26 +31,6 @@
31 @visualField='EvisualField' 31 @visualField='EvisualField'
32 @yyAnslysis='EyyAnslysis' 32 @yyAnslysis='EyyAnslysis'
33 @kgAnalusis='EkgAnalusis' 33 @kgAnalusis='EkgAnalusis'
34 <div class="rightFunc">
35 <rightFunc @isReturn='EisReturn'
36 @enlarge='Eenlarge'
37 @narrow='narrow'
38 @coordinate='Ecoordinate'
39 @distance='Edistance'
40 @area='Earea'
41 @marker='Emarker'
42 @rollerShutter='ErollerShutter'
43 @splitScreen='EsplitScreen'
44 @toNorth='EtoNorth'
45 @topSee='EtopSee'
46 @roundSee='EroundSee'
47 @horizon='Ehorizon'
48 @allSee='EallSee'
49
50 @ymAnslysis='EymAnslysis'
51 @tjxAnslysis='EtjxAnslysis'
52 @yyAnslysis='EyyAnslysis'
53 @kgAnalusis='EkgAnalusis'
54 34
55 :enlarge='enlarge' 35 :enlarge='enlarge'
56 :narrow='narrow' 36 :narrow='narrow'
...@@ -70,23 +50,7 @@ ...@@ -70,23 +50,7 @@
70 :visualField='visualField' 50 :visualField='visualField'
71 :yyAnslysis='yyAnslysis' 51 :yyAnslysis='yyAnslysis'
72 :kgAnalusis='kgAnalusis'></rightFunc> 52 :kgAnalusis='kgAnalusis'></rightFunc>
73 :enlarge='enlarge' 53
74 :narrow='narrow'
75 :coordinate='coordinate'
76 :distance='distance'
77 :area='area'
78 :marker='marker'
79 :rollerShutter='rollerShutter'
80 :splitScreen='splitScreen'
81 :toNorth='toNorth'
82 :topSee='topSee'
83 :roundSee='roundSee'
84 :horizon='horizon'
85 :allSee='allSee'
86 :ymAnslysis='ymAnslysis'
87 :tjxAnslysis='tjxAnslysis'
88 :yyAnslysis='yyAnslysis'
89 :kgAnalusis='kgAnalusis'></rightFunc>
90 </div> 54 </div>
91 <div class="bottomNav"> 55 <div class="bottomNav">
92 <bottomNav></bottomNav> 56 <bottomNav></bottomNav>
...@@ -343,93 +307,7 @@ ...@@ -343,93 +307,7 @@
343 ,EtopSee() {} 307 ,EtopSee() {}
344 // 环视 308 // 环视
345 ,EroundSee() { 309 ,EroundSee() {
346 // var parentEntity = this.viewer.entities.add(new Cesium.Entity()), positions = [], cartesian, polyline; 310
347 // this.handler = new Cesium.ScreenSpaceEventHandler(this.viewer.scene.canvas)
348 // this.handler.setInputAction(evt => {
349
350 // cartesian = this.viewer.scene.pickPosition(evt.position);
351 // // cartesian = this.draw.getCatesian3FromPX(evt.position, this.viewer, []);
352 // positions.push(cartesian.clone());
353 // // addCompany.createPoint.call(this, {position: cartesian})
354
355 // if(positions.length === 1) {
356 // this.handler.setInputAction(moveEvent => {
357 // positions[1] = this.viewer.scene.pickPosition(moveEvent.endPosition);
358 // // positions[1] = this.draw.getCatesian3FromPX(moveEvent.endPosition, this.viewer, []);
359 // !polyline && (polyline = addCompany.createPolyline.call(this, positions));
360 // }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
361 // return;
362 // }
363
364
365 // this.handler.destroy();
366 // // console.log(Cesium.Cartesian3.distance(positions[0], positions[1]));
367 // // var cartesian = this.draw.getCatesian3FromPX(evt.position, this.viewer, []);
368 // var viewPointEntity = this.viewer.entities.add({
369 // parent: parentEntity,
370 // position: positions[0],
371 // ellipsoid: {
372 // radii: new Cesium.Cartesian3(5, 5, 5),
373 // material: Cesium.Color.GREEN
374 // }
375 // });
376 // // // 世界坐标转换为投影坐标
377 // var webMercatorProjection = new Cesium.WebMercatorProjection(this.viewer.scene.globe.ellipsoid);
378 // var viewPointWebMercator = webMercatorProjection.project(Cesium.Cartographic.fromCartesian(positions[0]));
379 // // // 排除碰撞监测的对象
380 // var objectsToExclude = [viewPointEntity];
381
382 // // 目标点集合
383 // var destPoints = [];
384 // // 视域点和目标点的距离
385 // var radius = Cesium.Cartesian3.distance(positions[0], positions[1]); // 视距1000米
386 // // 计算一圈
387 // for (var i = 0; i <= 30; i++) {
388 // // 度数转弧度
389 // var radians = Cesium.Math.toRadians(i);
390 // // 计算目标点
391 // var toPoint = new Cesium.Cartesian3(viewPointWebMercator.x + radius * Math.cos(radians), viewPointWebMercator.y + radius * Math.sin(radians), 10);
392 // // 投影坐标转世界坐标
393 // toPoint = webMercatorProjection.unproject(toPoint);
394 // destPoints.push(Cesium.Cartographic.toCartesian(toPoint.clone()));
395 // }
396 // let viewer = this.viewer;
397 // // 绘制线
398 // function drawLine(leftPoint, secPoint, color) {
399 // viewer.entities.add({
400 // polyline: {
401 // positions: [leftPoint, secPoint],
402 // arcType: Cesium.ArcType.NONE,
403 // width: 5,
404 // material: color,
405 // depthFailMaterial: color
406 // }
407 // })
408 // }
409 // pickFromRay.call(this);
410 // function pickFromRay() {
411 // for (var i = 0; i < destPoints.length; i++) {
412 // // 计算射线的方向,目标点left 视域点right
413 // var direction = Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(destPoints[i], positions[0], new Cesium.Cartesian3()), new Cesium.Cartesian3());
414 // console.log(direction);
415 // // 建立射线
416 // var ray = new Cesium.Ray(positions[0], direction);
417 // var result = viewer.scene.pickFromRay(ray, objectsToExclude); // 计算交互点,返回第一个
418 // showIntersection(result, destPoints[i], positions[0]);
419 // }
420 // }
421 // // 处理交互点
422 // function showIntersection(result, destPoint, cartesian) {
423 // // 如果是场景模型的交互点,排除交互点是地球表面
424 // if (Cesium.defined(result) && Cesium.defined(result.object)) {
425 // drawLine(result.position, cartesian, Cesium.Color.GREEN); // 可视区域
426 // drawLine(result.position, destPoint, Cesium.Color.RED); // 不可视区域
427 // } else {
428 // drawLine(cartesian, destPoint, Cesium.Color.GREEN);
429 // }
430 // }
431 // this.handler.destroy();
432 // }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
433 } 311 }
434 // 视域 312 // 视域
435 ,Ehorizon(val) { 313 ,Ehorizon(val) {
......