diff --git a/Frontend/js/forge/forgemodel.js b/Frontend/js/forge/forgemodel.js index 99d364f..752af71 100644 --- a/Frontend/js/forge/forgemodel.js +++ b/Frontend/js/forge/forgemodel.js @@ -956,6 +956,21 @@ function changeColorTransparency(nodeId, color) {//變綠色 viewer.setThemingColor(nodeId, color); } +//隱藏全物件 +function hideAllObjects() { + //viewer.hide(4);//只針對一個物件(dbid為4)做隱藏 + for (var i = 0; i < allDbIdsStr.length; i++) { + viewer.hide(parseInt(allDbIdsStr[i])); + } +} +//顯示全物件 +function showAllObjects() { + //viewer.show(4); //只針對一個物件(dbid為4)做顯示 + for (var i = 0; i < allDbIdsStr.length; i++) { + viewer.show(parseInt(allDbIdsStr[i])); + } +} + //======================== 外部呼叫function =========================== //紀錄熱點座標 function getHopspotPoint(data) {