242 lines
10 KiB
HTML
242 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Main Panel | HiAPI-C# 2025 </title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="title" content="Main Panel | HiAPI-C# 2025 ">
|
|
|
|
|
|
<link rel="icon" href="../../img/HiAPI.favicon.ico">
|
|
<link rel="stylesheet" href="../../public/docfx.min.css">
|
|
<link rel="stylesheet" href="../../public/main.css">
|
|
<meta name="docfx:navrel" content="../../toc.html">
|
|
<meta name="docfx:tocrel" content="../toc.html">
|
|
|
|
<meta name="docfx:rel" content="../../">
|
|
|
|
|
|
|
|
<meta name="loc:inThisArticle" content="In this article">
|
|
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
|
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
|
<meta name="loc:tocFilter" content="Filter by title">
|
|
<meta name="loc:nextArticle" content="Next">
|
|
<meta name="loc:prevArticle" content="Previous">
|
|
<meta name="loc:themeLight" content="Light">
|
|
<meta name="loc:themeDark" content="Dark">
|
|
<meta name="loc:themeAuto" content="Auto">
|
|
<meta name="loc:changeTheme" content="Change theme">
|
|
<meta name="loc:copy" content="Copy">
|
|
<meta name="loc:downloadPdf" content="Download PDF">
|
|
|
|
<script type="module" src="./../../public/docfx.min.js"></script>
|
|
|
|
<script>
|
|
const theme = localStorage.getItem('theme') || 'auto'
|
|
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="">
|
|
<header class="bg-body border-bottom">
|
|
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
|
<div class="container-xxl flex-nowrap">
|
|
<a class="navbar-brand" href="../../index.html">
|
|
<img id="logo" class="svg" src="../../img/HiAPI.logo.png" alt="">
|
|
|
|
</a>
|
|
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
|
<i class="bi bi-three-dots"></i>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navpanel">
|
|
<div id="navbar">
|
|
<form class="search" role="search" id="search">
|
|
<i class="bi bi-search"></i>
|
|
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="container-xxl">
|
|
<div class="toc-offcanvas">
|
|
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
|
<div class="offcanvas-header">
|
|
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
|
</div>
|
|
<div class="offcanvas-body">
|
|
<nav class="toc" id="toc"></nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="actionbar">
|
|
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<nav id="breadcrumb"></nav>
|
|
</div>
|
|
|
|
<article data-uid="">
|
|
<h1 id="main-panel">Main Panel</h1>
|
|
|
|
<p>The Main Panel is the primary window of the HiNC application, providing navigation and access to all major features.</p>
|
|
<h2 id="key-models">Key Models</h2>
|
|
<ul>
|
|
<li>Project Service
|
|
<ul>
|
|
<li><strong>WPF Single-User Desktop Application</strong>: Uses self-hosted <a class="xref" href="../../api/Hi.MachiningProcs.LocalProjectService.html">LocalProjectService</a></li>
|
|
<li><strong>Web Service Application</strong>: Service inherits from <a class="xref" href="../../api/Hi.MachiningProcs.IProjectService.html">IProjectService</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><strong>User Service</strong>: <a class="xref" href="../../api/Hi.HiNcKits.UserService.html">UserService</a></li>
|
|
</ul>
|
|
<h2 id="layout-structure">Layout Structure</h2>
|
|
<ul>
|
|
<li>Top <code>Navigation Menu</code>
|
|
<ul>
|
|
<li><code>Project Menu Dropdown</code>
|
|
<ul>
|
|
<li><code>Project Path Text Field</code></li>
|
|
<li><code>New MenuItem</code></li>
|
|
<li><code>Load MenuItem</code></li>
|
|
<li><code>Save MenuItem</code></li>
|
|
<li><code>Save As MenuItem</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>Environment Menu Dropdown</code>
|
|
<ul>
|
|
<li>Machine Tool MenuItem
|
|
Open <a href="mech/machining-chain-page.html">Machine Tool Page</a>
|
|
Sole window in WPF app.
|
|
The page manages <a class="xref" href="../../api/Hi.MachiningProcs.LocalProjectService.html#Hi_MachiningProcs_LocalProjectService_MachiningEquipment">MachiningEquipment</a>.<a class="xref" href="../../api/Hi.Machining.MachiningEquipmentUtils.MachiningEquipment.html#Hi_Machining_MachiningEquipmentUtils_MachiningEquipment_MachiningChain">MachiningChain</a>.</li>
|
|
<li>Controller MenuItem
|
|
Open <a href="controller/index.html">Controller Page</a></li>
|
|
<li>Tool House MenuItem</li>
|
|
<li>Fixture MenuItem
|
|
Open <a href="mech/fixture-page.html">Fixture Page</a></li>
|
|
<li>Workpiece MenuItem
|
|
Open <a href="mech/workpiece-page.html">Workpiece Page</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>Mission MenuItem
|
|
Open <a href="mission/index.html">Mission Page</a></li>
|
|
<li>Player MenuItem
|
|
Link to <a href="player/index.html">Player Panel</a>
|
|
(Not exist on WPF app.)</li>
|
|
<li>Player Belonged Tool Bars. See <a href="player/index.html">Player Panel</a>. Shows only if the Main Panel content is Player Panel.</li>
|
|
<li><a href="preference/index.html">Preference Menu Dropdown</a></li>
|
|
<li>Help MenuItem
|
|
<ul>
|
|
<li>HiAPI Version label
|
|
A label to show the HiNc library version.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>Log MenuItem
|
|
Open Log Viewer to display application logs for the current day.
|
|
The Log Viewer provides real-time access to system logs with filtering and download capabilities.
|
|
It reads log files from the server's log directory and presents them in a formatted, searchable interface.
|
|
Users can refresh the log content or download the current day's log file for offline analysis.</li>
|
|
<li>Central <code>Page Panel</code></li>
|
|
<li><a href="message-section-on-main-panel.html">Message Section on Main Panel</a></li>
|
|
</ul>
|
|
<h2 id="project-menu-behavior">Project Menu Behavior</h2>
|
|
<p>The <code>Project Path Text Field</code> displays the current project path when a project is loaded. It is implemented as a pure text field (not a button) that allows users to select and copy the path.</p>
|
|
<p>The <code>Project</code> Menu manages <a class="xref" href="../../api/Hi.MachiningProcs.MachiningProject.html">MachiningProject</a> with the following operations:</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Operation</th>
|
|
<th>Description</th>
|
|
<th>Example</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>New</td>
|
|
<td>Creates a new project</td>
|
|
<td>See <a class="xref" href="../../sample/Sample.Machining.DemoBuildGeomOnlyMachiningProject.html">DemoBuildGeomOnlyMachiningProject</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Load</td>
|
|
<td>Opens an existing project</td>
|
|
<td>See <a class="xref" href="../../sample/Sample.Machining.DemoUseMachiningProject.html">DemoUseMachiningProject</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Save</td>
|
|
<td>Saves the current project</td>
|
|
<td>See <a class="xref" href="../../sample/Sample.Machining.DemoBuildGeomOnlyMachiningProject.html">DemoBuildGeomOnlyMachiningProject</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Save As</td>
|
|
<td>Saves the project to a new location</td>
|
|
<td>See <a class="xref" href="../../sample/Sample.Machining.DemoBuildGeomOnlyMachiningProject.html">DemoBuildGeomOnlyMachiningProject</a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>All operation results (success or exception) are displayed via <a class="xref" href="../../api/Hi.Common.Messages.MessageHost.html">MessageHost</a>. When a project is loaded, the Player Panel's RenderingCanvas is set to isometric view using <a class="xref" href="../../api/Hi.Disp.DispEngine.html#Hi_Disp_DispEngine_SetViewToIsometricView">SetViewToIsometricView()</a>.</p>
|
|
<div class="NOTE">
|
|
<h5>Note</h5>
|
|
<p>The implementation uses static functions of <a class="xref" href="../../api/Hi.Common.Messages.MessageHost.html">MessageHost</a> for message handling. Async operations ensure smooth user experience during file I/O.</p>
|
|
</div>
|
|
<h2 id="platform-specific-differences">Platform-Specific Differences</h2>
|
|
<h3 id="wpf-application">WPF Application</h3>
|
|
<ul>
|
|
<li>Only a single instance of each sub-window (Mission, Workpiece, Fixture) can exist at a time</li>
|
|
<li>The Player MenuItem does not exist in the WPF version, as the Main Panel itself serves as the Player Panel</li>
|
|
</ul>
|
|
<h3 id="web-application">Web Application</h3>
|
|
<ul>
|
|
<li>The Player Panel is the default panel displayed on the main page</li>
|
|
<li>The page URL and panel state are synchronized (bi-directional navigation)</li>
|
|
</ul>
|
|
<h2 id="source-code-locations">Source Code Locations</h2>
|
|
<p>See <a href="index.html">HiNC GUI Architecture</a> for git repository links.</p>
|
|
<h3 id="wpf-application-1">WPF Application</h3>
|
|
<ul>
|
|
<li><code>MainWindow</code></li>
|
|
</ul>
|
|
<h3 id="web-application-1">Web Application</h3>
|
|
<ul>
|
|
<li><code>Environments/PreferenceController.cs</code></li>
|
|
<li><code>Environments/ProjectController.cs</code></li>
|
|
<li><code>wwwroot/app.js</code></li>
|
|
<li><code>wwwroot/index.html</code></li>
|
|
<li><code>wwwroot/preference/log-viewer.js</code></li>
|
|
</ul>
|
|
|
|
</article>
|
|
|
|
<div class="contribution d-print-none">
|
|
</div>
|
|
|
|
<div class="next-article d-print-none border-top" id="nextArticle"></div>
|
|
|
|
</div>
|
|
|
|
<div class="affix">
|
|
<nav id="affix"></nav>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="container-xxl search-results" id="search-results"></div>
|
|
|
|
<footer class="border-top text-secondary">
|
|
<div class="container-xxl">
|
|
<div class="flex-fill">
|
|
<span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|