|
@ -20,7 +20,8 @@ var deviceData = []; |
|
|
BABYLON.DefaultLoadingScreen.prototype.displayLoadingUI = function() { |
|
|
BABYLON.DefaultLoadingScreen.prototype.displayLoadingUI = function() { |
|
|
if (document.getElementById("customLoadingScreenDiv")) { |
|
|
if (document.getElementById("customLoadingScreenDiv")) { |
|
|
document.getElementById("customLoadingScreenDiv").style.display = "initial"; |
|
|
document.getElementById("customLoadingScreenDiv").style.display = "initial"; |
|
|
|
|
|
|
|
|
|
|
|
// 给vue页面传值,加载完成之前
|
|
|
|
|
|
parent.getIframeLoading("true") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
this._loadingDiv = document.createElement("div"); |
|
|
this._loadingDiv = document.createElement("div"); |
|
@ -166,7 +167,9 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
"#000000", |
|
|
"#000000", |
|
|
true |
|
|
true |
|
|
); |
|
|
); |
|
|
|
|
|
if(transformNodex.canshow == true){ |
|
|
xd.setEnabled(true); |
|
|
xd.setEnabled(true); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
var location = transformNodex.absolutePosition; |
|
|
var location = transformNodex.absolutePosition; |
|
|
var xd = scene.getMeshByName("tapblue"); |
|
|
var xd = scene.getMeshByName("tapblue"); |
|
@ -198,10 +201,12 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
true |
|
|
true |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if(transformNodex.canshow == true){ |
|
|
xd.setEnabled(true); |
|
|
xd.setEnabled(true); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
) |
|
|
) |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
@ -277,12 +282,16 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
camera05.baojing = false; |
|
|
camera05.baojing = false; |
|
|
camera06.baojing = false; |
|
|
camera06.baojing = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var yangan05 = scene.getTransformNodeByName("yangan_4"); |
|
|
var yangan05 = scene.getTransformNodeByName("yangan_4"); |
|
|
yangan05.name = "yangan05"; |
|
|
yangan05.name = "yangan05"; |
|
|
yangan05.nameID = "ZLS_MO_OAO_001"; |
|
|
yangan05.nameID = "ZLS_MO_OAO_001"; |
|
|
|
|
|
|
|
|
yangan05.wendu = 0; |
|
|
yangan05.wendu = 0; |
|
|
yangan05.sidu = 0; |
|
|
yangan05.sidu = 0; |
|
|
|
|
|
yangan05.baojing = false; |
|
|
|
|
|
yangan05.canshow = true; |
|
|
|
|
|
|
|
|
prepareGroupButtonOther(yangan05, new BABYLON.Color3(0, 0, 1)); |
|
|
prepareGroupButtonOther(yangan05, new BABYLON.Color3(0, 0, 1)); |
|
|
|
|
|
|
|
@ -491,6 +500,9 @@ BABYLON.DefaultLoadingScreen.prototype.hideLoadingUI = function() { |
|
|
scene.getMaterialByName("Desk.018").roughness = 0.72; |
|
|
scene.getMaterialByName("Desk.018").roughness = 0.72; |
|
|
|
|
|
|
|
|
scene.getMaterialByName("材质.29").metallic = 0.8; |
|
|
scene.getMaterialByName("材质.29").metallic = 0.8; |
|
|
|
|
|
|
|
|
|
|
|
// 给vue页面传值,加载完成之后
|
|
|
|
|
|
parent.getIframeLoading("false") |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
// createScene function that creates and return the scene
|
|
|
// createScene function that creates and return the scene
|
|
@ -933,11 +945,9 @@ function Myalert(MathineID, baojing) { |
|
|
scene.getMeshByName("tapblue").setEnabled(false); |
|
|
scene.getMeshByName("tapblue").setEnabled(false); |
|
|
scene.getMeshByName("tapred").setEnabled(false); |
|
|
scene.getMeshByName("tapred").setEnabled(false); |
|
|
var theName = yangans.get(MathineID); |
|
|
var theName = yangans.get(MathineID); |
|
|
alert(theName); |
|
|
|
|
|
if (theName == "yangan05") { |
|
|
if (theName == "yangan05") { |
|
|
scene.getTransformNodeByName("yangan05").baojing = baojing; |
|
|
scene.getTransformNodeByName("yangan05").baojing = baojing; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (theName == "camera05") { |
|
|
if (theName == "camera05") { |
|
|
scene.getTransformNodeByName("camera05").baojing = baojing; |
|
|
scene.getTransformNodeByName("camera05").baojing = baojing; |
|
|
} |
|
|
} |
|
@ -959,6 +969,16 @@ function setAlertValue(MathineID, wendu, sidu) { |
|
|
} |
|
|
} |
|
|
//设置温湿度: setAlertValue("DAK_MO_OAO_001",4,5)
|
|
|
//设置温湿度: setAlertValue("DAK_MO_OAO_001",4,5)
|
|
|
|
|
|
|
|
|
|
|
|
// 设置是否显示
|
|
|
|
|
|
function setYangGanCanshow(MathineID, canshow){ |
|
|
|
|
|
var theName = yangans.get(MathineID); |
|
|
|
|
|
if(theName == "yangan05"){ |
|
|
|
|
|
scene.getTransformNodeByName("yangan05").canshow = canshow; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// setYangGanCanshow("DAK_MO_OAO_001",false)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// function cameraClick(TheCamera) {
|
|
|
// function cameraClick(TheCamera) {
|
|
|
// alert(TheCamera.nameID);
|
|
|
// alert(TheCamera.nameID);
|
|
|
// }
|
|
|
// }
|
|
|