|
@@ -381,7 +381,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
}
|
|
}
|
|
|
|
|
|
exit(){
|
|
exit(){
|
|
-
|
|
|
|
|
|
+ this.skyboxTex && this.skyboxTex.dispose()
|
|
this.depthTex && this.depthTex.dispose() //贴图不使用后先dispose,下次到该点时会自动还原
|
|
this.depthTex && this.depthTex.dispose() //贴图不使用后先dispose,下次到该点时会自动还原
|
|
this.entered = false //add
|
|
this.entered = false //add
|
|
|
|
|
|
@@ -402,18 +402,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
this.floorPosition && this.label.position.copy(this.floorPosition)
|
|
this.floorPosition && this.label.position.copy(this.floorPosition)
|
|
}
|
|
}
|
|
|
|
|
|
- addLabel2(){
|
|
|
|
- if(this.label2)return
|
|
|
|
- this.label2 = new TextSprite(Object.assign({},
|
|
|
|
- labelProp2, {text: /* this.originID */ parseInt(this.id)+1 }) //{text: `id:${this.id}, dataset:${this.pointcloud.name}, 4dkkId:${this.originID}`}
|
|
|
|
- );
|
|
|
|
- this.images360.node.add(this.label2);
|
|
|
|
- this.floorPosition && this.label2.position.copy(this.floorPosition)
|
|
|
|
- let s = 0.4
|
|
|
|
- this.label2.scale.set(s,s,s)
|
|
|
|
- Potree.Utils.updateVisible(this.label2, 'notDisplay', false)
|
|
|
|
- Potree.Utils.updateVisible(this.label2, 'panoVisi', this.visible)
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
removeTextLabel(){
|
|
removeTextLabel(){
|
|
if(this.label){
|
|
if(this.label){
|
|
@@ -421,21 +410,7 @@ class Panorama extends THREE.EventDispatcher{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- dispose(){
|
|
|
|
-
|
|
|
|
- let i = viewer.images360.panos.indexOf(this);
|
|
|
|
- if(i==-1)return
|
|
|
|
-
|
|
|
|
- this.marker.parent.remove(this.marker)
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- this.removeTextLabel()
|
|
|
|
- if(this.depthTex) this.depthTex.dispose()
|
|
|
|
- viewer.images360.panos.splice(i,1);
|
|
|
|
-
|
|
|
|
- this.dispatchEvent('dispose')
|
|
|
|
- //删除tile贴图、depthTex等以后再写
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
getCeilHeight(){//天花板高度值 (假设不存在depth为0的点,所有为0的要么是在盲区,要么是无穷远。)
|
|
getCeilHeight(){//天花板高度值 (假设不存在depth为0的点,所有为0的要么是在盲区,要么是无穷远。)
|