|
@@ -896,7 +896,7 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
circleMats.default_rtk_on = circleMats.default_normal.clone();
|
|
|
circleMats.default_rtk_on.map = texLoader.load(Potree.resourcePath+'/textures/rtk-y-n.png' )
|
|
|
circleMats.default_rtk_off = circleMats.default_normal.clone();
|
|
|
- circleMats.default_rtk_on.map = texLoader.load(Potree.resourcePath+'/textures/rtk-f-n.png' )
|
|
|
+ circleMats.default_rtk_off.map = texLoader.load(Potree.resourcePath+'/textures/rtk-f-n.png' )
|
|
|
circleMats.selected_normal = circleMats.default_normal.clone();
|
|
|
circleMats.selected_normal.map = texLoader.load(Potree.resourcePath+'/textures/correct_s.png' )
|
|
|
circleMats.selected_rtk_on = circleMats.default_normal.clone();
|
|
@@ -1016,7 +1016,7 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
type : "CursorChange", action : "add", name:"hoverPano"
|
|
|
});
|
|
|
}
|
|
|
- if(this.selectedPano != pano) pano.circle.material = circleMats['hovered' + '_'+ this.getPanoRtkState(this.selectedPano) ]
|
|
|
+ if(this.selectedPano != pano) pano.circle.material = circleMats['hovered' + '_'+ this.getPanoRtkState(pano) ]
|
|
|
|
|
|
}else if(pano && !state){//unhover
|
|
|
if(this.hoveredPano != pano)return
|
|
@@ -1024,7 +1024,7 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
viewer.dispatchEvent({
|
|
|
type : "CursorChange", action : "remove", name:"hoverPano"
|
|
|
});
|
|
|
- if(this.selectedPano != pano) pano.circle.material = circleMats['default' + '_'+ this.getPanoRtkState(this.selectedPano) ]
|
|
|
+ if(this.selectedPano != pano) pano.circle.material = circleMats['default' + '_'+ this.getPanoRtkState(pano) ]
|
|
|
this.hoveredPano = null;
|
|
|
}else{//unhover any
|
|
|
if(this.hoveredPano){
|
|
@@ -1130,13 +1130,13 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
}
|
|
|
|
|
|
getPanoRtkState(pano){
|
|
|
- //'normal' 'rtk_on' 'rtk_off'
|
|
|
- return 'normal'
|
|
|
+ //'normal' 'rtk_on' 'rtk_off'
|
|
|
+
|
|
|
+ return pano.panosData.has_rtk ? pano.rtkState ? 'rtk_on' : 'rtk_off' : 'normal'
|
|
|
}
|
|
|
- changePanoRtkState(state){
|
|
|
- if(pano.rtkState){
|
|
|
- pano.rtkState = state
|
|
|
- }
|
|
|
+ changePanoRtkState(pano,state){
|
|
|
+ pano.rtkState = state
|
|
|
+ pano.circle.material = circleMats[(this.selectedPano == pano ? 'selected' : 'default') + '_'+ this.getPanoRtkState(pano) ]
|
|
|
}
|
|
|
|
|
|
updateSelectGroup(){//更新选中的组
|
|
@@ -1213,7 +1213,7 @@ class PanoEditor extends THREE.EventDispatcher{
|
|
|
},
|
|
|
|
|
|
visibles,
|
|
|
-
|
|
|
+ use_rtk : !!pano.rtkState
|
|
|
//subgroup: 0,group: 1, "id_view":..
|
|
|
})
|
|
|
})
|