数字孪生Web 后台dt( digital twin)2.0版本 统一命名格式
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2179 lines
24 KiB

12 months ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>MainUI - XbsjEarth Documentation</title>
<!--[if lt IE 9]>
<script src="javascript/html5.js"></script>
<![endif]-->
<link href="styles/jsdoc-default.css" rel="stylesheet">
<link href="styles/prism.css" rel="stylesheet">
</head>
<body>
<div id="main">
<h1 class="page-title">
<!-- <a href="index.html"><img src="Images/CesiumLogo.png" class="cesiumLogo"></a> -->
<a href="index.html">EarthSDK</a>
MainUI
<div class="titleCenterer"></div>
</h1>
<section>
<header>
<div class="class-description">EarthUI根管理器</div>
</header>
<article>
<div class="container-overview">
<div class="nameContainer">
<h4 class="name" id="MainUI">
<a href="#MainUI" class="doc-link"></a>
new MainUI<span class="signature">()</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<dl class="details">
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<div class="nameContainer">
<h4 class="name" id="colorPicker">
<a href="#colorPicker" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>colorPicker<span class="type-signature"> : <a href="ColorPicker.html">ColorPicker</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
颜色选择器
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="contextMenu">
<a href="#contextMenu" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>contextMenu<span class="type-signature"> : <a href="ContextMenu.html">ContextMenu</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
右键菜单
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="controls">
<a href="#controls" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>controls<span class="type-signature"> : <a href="ControlsCollection.html">ControlsCollection</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
控件集
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="labScene">
<a href="#labScene" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>labScene<span class="type-signature"> : <a href="LabScene.html">LabScene</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
场景加载
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="labServer">
<a href="#labServer" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>labServer<span class="type-signature"> : <a href="LabServer.html">LabServer</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
Lab服务管理
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="language">
<a href="#language" class="doc-link"></a>
language<span class="type-signature"> : String</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
UI的语言 语言支持两种: 'en','zh' 分别表示 英文 和 中文简体
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="openURLCB">
<a href="#openURLCB" class="doc-link"></a>
openURLCB<span class="type-signature"> : function</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
打开URL回调
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="size">
<a href="#size" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>size<span class="type-signature"> : Object</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
当前窗口大小 返回一个对象包含width和height 分别指定当前UI的宽高
</div>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="tools">
<a href="#tools" class="doc-link"></a>
<span class="type-signature attribute-readonly">readonly</span>tools<span class="type-signature"> : <a href="ToolsCollection.html">ToolsCollection</a></span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
工具集
</div>
<dl class="details">
</dl>
<h3 class="subsection-title">Methods</h3>
<div class="nameContainer">
<h4 class="name" id="addSceneObject">
<a href="#addSceneObject" class="doc-link"></a>
addSceneObject<span class="signature">(czmObject)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
添加对象到场景树
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>czmObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
对象</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="confirm">
<a href="#confirm" class="doc-link"></a>
confirm<span class="signature">(info, ok, cancel)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
弹出模态对话框确认
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>info</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
需要显示的文本信息</td>
</tr>
<tr>
<td class="name"><code>ok</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
点击确定按钮后的回调</td>
</tr>
<tr>
<td class="name"><code>cancel</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
点击取消按钮后的回调</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="getCzmObjectFromDrag">
<a href="#getCzmObjectFromDrag" class="doc-link"></a>
getCzmObjectFromDrag<span class="signature">(dataTransfer)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
获取拖拽对象
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>dataTransfer</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
被拖拽的对象</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="getCzmObjectPositionFromDrag">
<a href="#getCzmObjectPositionFromDrag" class="doc-link"></a>
getCzmObjectPositionFromDrag<span class="signature">(dragczmObj, czmObj)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
获取拖拽对象位置
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>dragczmObj</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
被拖拽的对象</td>
</tr>
<tr>
<td class="name"><code>czmObj</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
被编辑的对象</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="getCzmObjectPositionFromDrags">
<a href="#getCzmObjectPositionFromDrags" class="doc-link"></a>
getCzmObjectPositionFromDrags<span class="signature">(dragczmObj, czmObj)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
获取拖拽对象位置
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>dragczmObj</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
被拖拽的对象</td>
</tr>
<tr>
<td class="name"><code>czmObj</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
被编辑的对象</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="openURL">
<a href="#openURL" class="doc-link"></a>
openURL<span class="signature">(url)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
打开外部地址
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
地址链接</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="promptInfo">
<a href="#promptInfo" class="doc-link"></a>
promptInfo<span class="signature">(info, type)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
显示提示信息
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>info</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
需要提示的内容</td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
提示类型,分三种 'info','warning','error'</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="saveContentToFile">
<a href="#saveContentToFile" class="doc-link"></a>
saveContentToFile<span class="signature">(content, filename)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
保存当前场景json
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>content</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
需要保存的内容</td>
</tr>
<tr>
<td class="name"><code>filename</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
需要保存的文件名</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="saveScreenToFile">
<a href="#saveScreenToFile" class="doc-link"></a>
saveScreenToFile<span class="signature">(width, height, filename)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
保存当前三维窗口截图
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>width</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
截图宽度</td>
</tr>
<tr>
<td class="name"><code>height</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last">
截图高度</td>
</tr>
<tr>
<td class="name"><code>filename</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
需要保存的文件名</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<div class="nameContainer">
<h4 class="name" id="showPropertyWindow">
<a href="#showPropertyWindow" class="doc-link"></a>
showPropertyWindow<span class="signature">(czmObject, options)</span>
<div class="source-link rightLinks">
</div>
</h4>
</div>
<div class="description">
弹出对象的属性窗口
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>czmObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
需要显示属性的对象</td>
</tr>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
其他参数,详细请见示例</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</article>
</section>
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.2</a>
</footer>
</div>
<div class="nav">
<div class="menu">
<input type="text" class="classFilter" id="ClassFilter" placeholder="Search">
<ul id="ClassList"><li data-name="CameraViewManager"><a href="CameraViewManager.html">CameraViewManager</a></li><li data-name="ColorPicker"><a href="ColorPicker.html">ColorPicker</a></li><li data-name="ContextMenu"><a href="ContextMenu.html">ContextMenu</a></li><li data-name="ControlsCollection"><a href="ControlsCollection.html">ControlsCollection</a></li><li data-name="CutFillComputing"><a href="CutFillComputing.html">CutFillComputing</a></li><li data-name="DefaultAccessToken"><a href="DefaultAccessToken.html">DefaultAccessToken</a></li><li data-name="EntityMore"><a href="EntityMore.html">EntityMore</a></li><li data-name="FeatureProperty"><a href="FeatureProperty.html">FeatureProperty</a></li><li data-name="ImageryArcGis"><a href="ImageryArcGis.html">ImageryArcGis</a></li><li data-name="ImageryCloud"><a href="ImageryCloud.html">ImageryCloud</a></li><li data-name="ImageryLab"><a href="ImageryLab.html">ImageryLab</a></li><li data-name="ImageryOnline"><a href="ImageryOnline.html">ImageryOnline</a></li><li data-name="ImageryWMS"><a href="ImageryWMS.html">ImageryWMS</a></li><li data-name="ImageryWMTS"><a href="ImageryWMTS.html">ImageryWMTS</a></li><li data-name="LabScene"><a href="LabScene.html">LabScene</a></li><li data-name="LabServer"><a href="LabServer.html">LabServer</a></li><li data-name="MainBar"><a href="MainBar.html">MainBar</a></li><li data-name="MainUI"><a href="MainUI.html">MainUI</a></li><li data-name="ModelCloud"><a href="ModelCloud.html">ModelCloud</a></li><li data-name="ModelForest"><a href="ModelForest.html">ModelForest</a></li><li data-name="ModelLab"><a href="ModelLab.html">ModelLab</a></li><li data-name="ModelOnline"><a href="ModelOnline.html">ModelOnline</a></li><li data-name="ModelTree"><a href="ModelTree.html">ModelTree</a></li><li data-name="SceneTree"><a href="SceneTree.html">SceneTree</a></li><li data-name="StatusBar"><a href="StatusBar.html">StatusBar</a></li><li data-name="Symbol"><a href="Symbol.html">Symbol</a></li><li data-name="TerrainCloud"><a href="TerrainCloud.html">TerrainCloud</a></li><li data-name="TerrainLab"><a href="TerrainLab.html">TerrainLab</a></li><li data-name="TerrainOnline"><a href="TerrainOnline.html">TerrainOnline</a></li><li data-name="TilesetPage"><a href="TilesetPage.html">TilesetPage</a></li><li data-name="TilesTest"><a href="TilesTest.html">TilesTest</a></li><li data-name="TimelineBar"><a href="TimelineBar.html">TimelineBar</a></li><li data-name="ToolsCollection"><a href="ToolsCollection.html">ToolsCollection</a></li></ul>
</div>
</div>
<script>
if (window.frameElement) {
document.body.className = 'embedded';
var ele = document.createElement('a');
ele.className = 'popout';
ele.target = '_blank';
ele.href = window.location.href;
ele.title = 'Pop out';
document.getElementById('main').appendChild(ele);
}
// Set targets on external links. Sandcastle and GitHub shouldn't be embedded in any iframe.
Array.prototype.forEach.call(document.getElementsByTagName('a'), function(a) {
if (/^https?:/i.test(a.getAttribute('href'))) {
a.target='_blank';
}
});
</script>
<script src="javascript/prism.js"></script>
<script src="javascript/cesiumDoc.js"></script>
</body>
</html>