|  | @@ -49,7 +49,9 @@ export class VtkModel {
 | 
											
												
													
														|  |      this.isSelectPipe = false;
 |  |      this.isSelectPipe = false;
 | 
											
												
													
														|  |      //管道节点选择对象
 |  |      //管道节点选择对象
 | 
											
												
													
														|  |      this.selectObj = null;
 |  |      this.selectObj = null;
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +//X,Y
 | 
											
												
													
														|  | 
 |  | +      this.epageX=null;
 | 
											
												
													
														|  | 
 |  | +      this.epageY=null;
 | 
											
												
													
														|  |      //结果选择的点数据
 |  |      //结果选择的点数据
 | 
											
												
													
														|  |      this.selectJgPointId = 0;
 |  |      this.selectJgPointId = 0;
 | 
											
												
													
														|  |      this.validNodes = [];//节点数据
 |  |      this.validNodes = [];//节点数据
 | 
											
										
											
												
													
														|  | @@ -197,8 +199,15 @@ export class VtkModel {
 | 
											
												
													
														|  |      // this.hardwareSelector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_POINTS);
 |  |      // this.hardwareSelector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_POINTS);
 | 
											
												
													
														|  |      this.hardwareSelector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_CELLS);
 |  |      this.hardwareSelector.setFieldAssociation(FieldAssociations.FIELD_ASSOCIATION_CELLS);
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -    document.addEventListener("mousemove", throttleMouseHandler);
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +    // document.addEventListener("mousemove", throttleMouseHandler);
 | 
											
												
													
														|  | 
 |  | +   
 | 
											
												
													
														|  | 
 |  | +      document.addEventListener('contextmenu', throttleMouseHandler,function(e){
 | 
											
												
													
														|  | 
 |  | +        e.preventDefault();
 | 
											
												
													
														|  | 
 |  | +        // throttleMouseHandler
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | + 
 | 
											
												
													
														|  | 
 |  | + 
 | 
											
												
													
														|  | 
 |  | +   
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      // //箭头
 |  |      // //箭头
 | 
											
										
											
												
													
														|  | @@ -502,11 +511,13 @@ export class VtkModel {
 | 
											
												
													
														|  |      this.isSelectNode = true;
 |  |      this.isSelectNode = true;
 | 
											
												
													
														|  |      this.isSelectPipe = false;
 |  |      this.isSelectPipe = false;
 | 
											
												
													
														|  |      this.modelShow();
 |  |      this.modelShow();
 | 
											
												
													
														|  | 
 |  | +    document.addEventListener("mousemove", throttleMouseHandler);
 | 
											
												
													
														|  |      this.renderWindow.render();
 |  |      this.renderWindow.render();
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |    selectPipes() {
 |  |    selectPipes() {
 | 
											
												
													
														|  |      this.isSelectNode = false;
 |  |      this.isSelectNode = false;
 | 
											
												
													
														|  |      this.isSelectPipe = true;
 |  |      this.isSelectPipe = true;
 | 
											
												
													
														|  | 
 |  | +     document.addEventListener("mousemove", throttleMouseHandler);
 | 
											
												
													
														|  |      this.modelShow();
 |  |      this.modelShow();
 | 
											
												
													
														|  |      this.renderWindow.render();
 |  |      this.renderWindow.render();
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
										
											
												
													
														|  | @@ -546,6 +557,7 @@ export class VtkModel {
 | 
											
												
													
														|  |      this.wayClearShow();
 |  |      this.wayClearShow();
 | 
											
												
													
														|  |      this.modelClearShow();
 |  |      this.modelClearShow();
 | 
											
												
													
														|  |      this.isJg = true; //显示结果
 |  |      this.isJg = true; //显示结果
 | 
											
												
													
														|  | 
 |  | +    document.removeEventListener("mousemove", throttleMouseHandler);
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |    clearJgAddMode() {
 |  |    clearJgAddMode() {
 | 
											
												
													
														|  |      this.renderer.removeActor(this.scalarBarActor);
 |  |      this.renderer.removeActor(this.scalarBarActor);
 | 
											
										
											
												
													
														|  | @@ -639,10 +651,16 @@ function pickOnMouseEvent(event) {
 | 
											
												
													
														|  |  function eventToWindowXY(event) {
 |  |  function eventToWindowXY(event) {
 | 
											
												
													
														|  |    // We know we are full screen => window.innerXXX
 |  |    // We know we are full screen => window.innerXXX
 | 
											
												
													
														|  |    // Otherwise we can use pixel device ratio or else...
 |  |    // Otherwise we can use pixel device ratio or else...
 | 
											
												
													
														|  | 
 |  | +  var left = event.pageX ;
 | 
											
												
													
														|  | 
 |  | +  var top = event.pageY ;
 | 
											
												
													
														|  | 
 |  | +  vtkmodel.epageX=left;
 | 
											
												
													
														|  | 
 |  | +  vtkmodel.epageY=top;
 | 
											
												
													
														|  |    const { clientX, clientY } = event;
 |  |    const { clientX, clientY } = event;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |    const [width, height] = vtkmodel.apiSpecificRenderWindow.getSize();
 |  |    const [width, height] = vtkmodel.apiSpecificRenderWindow.getSize();
 | 
											
												
													
														|  |    const x = Math.round((width * clientX) / window.innerWidth);
 |  |    const x = Math.round((width * clientX) / window.innerWidth);
 | 
											
												
													
														|  |    const y = Math.round(height * (1 - clientY / window.innerHeight)); // Need to flip Y
 |  |    const y = Math.round(height * (1 - clientY / window.innerHeight)); // Need to flip Y
 | 
											
												
													
														|  | 
 |  | + // console.log(x,y)
 | 
											
												
													
														|  |    return [x, y];
 |  |    return [x, y];
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -707,6 +725,7 @@ function processSelections(selections) {
 | 
											
												
													
														|  |          );
 |  |          );
 | 
											
												
													
														|  |          const scalarDataArray = input.getPointData().getScalars().getData();
 |  |          const scalarDataArray = input.getPointData().getScalars().getData();
 | 
											
												
													
														|  |          console.log(scalarDataArray[pointIds[0]]);//节点标量数据
 |  |          console.log(scalarDataArray[pointIds[0]]);//节点标量数据
 | 
											
												
													
														|  | 
 |  | +        
 | 
											
												
													
														|  |          // pointIds.forEach(pointId=>{
 |  |          // pointIds.forEach(pointId=>{
 | 
											
												
													
														|  |          //   console.log(input.getPointData().getScalars().getName());
 |  |          //   console.log(input.getPointData().getScalars().getName());
 | 
											
												
													
														|  |          //   console.log(scalarDataArray[pointId]);//节点标量数据
 |  |          //   console.log(scalarDataArray[pointId]);//节点标量数据
 |