|
|
@ -22,6 +22,8 @@ var deviceData = []; |
|
|
|
BABYLON.DefaultLoadingScreen.prototype.displayLoadingUI = function() { |
|
|
|
if (document.getElementById("customLoadingScreenDiv")) { |
|
|
|
document.getElementById("customLoadingScreenDiv").style.display = "initial"; |
|
|
|
// 给vue页面传值,加载完成之前
|
|
|
|
parent.getIframeLoading("true") |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
@ -202,9 +204,9 @@ var moveTrans = function(move_transformNode) { |
|
|
|
BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
show = 50; |
|
|
|
document.getElementById("customLoadingScreenDiv").style.display = "none"; |
|
|
|
document.getElementById("customLoadingScreenDiv_first").style.display = |
|
|
|
"none"; |
|
|
|
document.getElementById("customLoadingScreenDiv_first").style.display = "none"; |
|
|
|
document.title = "档案库"; |
|
|
|
|
|
|
|
|
|
|
|
//scene.getMaterialByName("材质.023").roughness = 0;
|
|
|
|
|
|
|
@ -340,7 +342,9 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
"#000000", |
|
|
|
true |
|
|
|
); |
|
|
|
xd.setEnabled(true); |
|
|
|
if(transformNodex.canshow == true){ |
|
|
|
xd.setEnabled(true); |
|
|
|
} |
|
|
|
} else { |
|
|
|
var location = transformNodex.absolutePosition; |
|
|
|
var xd = scene.getMeshByName("tapblue"); |
|
|
@ -372,7 +376,9 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
true |
|
|
|
); |
|
|
|
|
|
|
|
xd.setEnabled(true); |
|
|
|
if(transformNodex.canshow == true){ |
|
|
|
xd.setEnabled(true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -412,7 +418,7 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
var location = transformNodex.absolutePosition; |
|
|
|
var xd = scene.getMeshByName("tapblue"); |
|
|
|
// x = x-0.6;; y = y+0.3 z=z+0.5
|
|
|
|
|
|
|
|
|
|
|
|
xd.setEnabled(false); |
|
|
|
} |
|
|
|
} |
|
|
@ -598,6 +604,11 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
yangan03.baojing = false; |
|
|
|
yangan04.baojing = false; |
|
|
|
|
|
|
|
yangan01.canshow = true; |
|
|
|
yangan02.canshow = true; |
|
|
|
yangan03.canshow = true; |
|
|
|
yangan04.canshow = true; |
|
|
|
|
|
|
|
yangan01.wendu = 0; |
|
|
|
yangan01.sidu = 0; |
|
|
|
yangan02.wendu = 0; |
|
|
@ -616,6 +627,7 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
prepareGroupButtonOther(yangan03, new BABYLON.Color3(0, 0, 1)); |
|
|
|
prepareGroupButtonOther(yangan04, new BABYLON.Color3(0, 0, 1)); |
|
|
|
|
|
|
|
|
|
|
|
var x = scene.getMeshByName("档案架01_primitive0"); |
|
|
|
x.overlayColor = BABYLON.Color3.White(); |
|
|
|
x.renderOverlay = true; |
|
|
@ -865,6 +877,9 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
|
material3.emissiveColor = new BABYLON.Color3(0.278, 0.278, 0.278); |
|
|
|
material3.metallic = 0.87; |
|
|
|
material3.roughness = 0; |
|
|
|
|
|
|
|
// 给vue页面传值,加载完成之后
|
|
|
|
parent.getIframeLoading("false") |
|
|
|
}; |
|
|
|
|
|
|
|
// createScene function that creates and return the scene
|
|
|
@ -1506,7 +1521,6 @@ var createScene = function() { |
|
|
|
/*show--; |
|
|
|
showdd--;*/ |
|
|
|
}); |
|
|
|
|
|
|
|
return scene; |
|
|
|
}; |
|
|
|
|
|
|
@ -1674,6 +1688,16 @@ function setAlertValue(MathineID, wendu, sidu) { |
|
|
|
} |
|
|
|
//设置温湿度: setAlertValue("DAK_MO_OAO_001",4,5)
|
|
|
|
|
|
|
|
// 设置是否显示
|
|
|
|
function setYangGanCanshow(MathineID, canshow){ |
|
|
|
var theName = yangans.get(MathineID); |
|
|
|
if(theName.indexOf("yangan") >= 0){ |
|
|
|
scene.getTransformNodeByName(theName).canshow = canshow; |
|
|
|
} |
|
|
|
} |
|
|
|
// setYangGanCanshow("DAK_MO_OAO_001",false)
|
|
|
|
|
|
|
|
|
|
|
|
//功能:档案柜标点点击
|
|
|
|
// function cabinetClick(cabinet) {
|
|
|
|
// alert(cabinet.nameID);
|
|
|
|