update ISO coordinate rendering for 3+2axis machine.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Class ProgramXyzSyntax | HiAPI-C# 2025 ">
|
||||
|
||||
<meta name="description" content="Compute MachineCoordinate and ProgramXyz (leaf coordinate) from syntax XYZ tags. Writes individual double components to . under and sub-objects. Must be placed after since it uses cross-node lookback for last position.">
|
||||
<meta name="description" content="Resolves ProgramXyz (leaf coordinate) from syntax XYZ tags. Writes sub-object to .. Must be placed after since it uses cross-node lookback for last position. (placed after this in the chain) reads and writes .">
|
||||
<link rel="icon" href="../img/HiAPI.favicon.ico">
|
||||
<link rel="stylesheet" href="../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../public/main.css">
|
||||
@@ -97,10 +97,16 @@ Class ProgramXyzSyntax
|
||||
<dl><dt>Assembly</dt><dd>HiMech.dll</dd></dl>
|
||||
</div>
|
||||
|
||||
<div class="markdown summary"><p>Compute MachineCoordinate and ProgramXyz (leaf coordinate) from syntax XYZ tags.
|
||||
Writes individual double components to <a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">SyntaxPiece</a>.<a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html#Hi_NcParsers_Syntaxs_SyntaxPiece_JsonObject">JsonObject</a>
|
||||
under <a class="xref" href="Hi.NcParsers.Keywords.IMachineCoordinateDef.html#Hi_NcParsers_Keywords_IMachineCoordinateDef_MachineCoordinate">MachineCoordinate</a> and <a class="xref" href="Hi.NcParsers.Keywords.IProgramXyzDef.html#Hi_NcParsers_Keywords_IProgramXyzDef_ProgramXyz">ProgramXyz</a> sub-objects.
|
||||
Must be placed after <a class="xref" href="Hi.NcParsers.Syntaxs.BundleSyntax.html">BundleSyntax</a> since it uses cross-node lookback for last position.</p>
|
||||
<div class="markdown summary"><p>Resolves ProgramXyz (leaf coordinate) from syntax XYZ tags.
|
||||
Writes <a class="xref" href="Hi.NcParsers.Keywords.IProgramXyzDef.html#Hi_NcParsers_Keywords_IProgramXyzDef_ProgramXyz">ProgramXyz</a> sub-object to
|
||||
<a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html">SyntaxPiece</a>.<a class="xref" href="Hi.NcParsers.Syntaxs.SyntaxPiece.html#Hi_NcParsers_Syntaxs_SyntaxPiece_JsonObject">JsonObject</a>.
|
||||
Must be placed after <a class="xref" href="Hi.NcParsers.Syntaxs.BundleSyntax.html">BundleSyntax</a> since it uses
|
||||
cross-node lookback for last position.</p>
|
||||
<p>
|
||||
<a class="xref" href="Hi.NcParsers.LogicSyntaxs.McXyzSyntax.html">McXyzSyntax</a> (placed after this in the chain) reads
|
||||
<a class="xref" href="Hi.NcParsers.Keywords.IProgramXyzDef.html#Hi_NcParsers_Keywords_IProgramXyzDef_ProgramXyz">ProgramXyz</a> and writes
|
||||
<a class="xref" href="Hi.NcParsers.Keywords.IMachineCoordinateDef.html#Hi_NcParsers_Keywords_IMachineCoordinateDef_MachineCoordinate">MachineCoordinate</a>.
|
||||
</p>
|
||||
</div>
|
||||
<div class="markdown conceptual"></div>
|
||||
|
||||
@@ -195,8 +201,8 @@ The coordinate is usually the final node from the chain of coordinate transforma
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax__ctor_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.#ctor*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax__ctor" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.#ctor">
|
||||
ProgramXyzSyntax()
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax__ctor_System_Collections_Generic_List_System_Collections_Generic_List_System_String___" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.#ctor(System.Collections.Generic.List{System.Collections.Generic.List{System.String}})">
|
||||
ProgramXyzSyntax(List<List<string>>)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -204,9 +210,14 @@ The coordinate is usually the final node from the chain of coordinate transforma
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public ProgramXyzSyntax()</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public ProgramXyzSyntax(List<List<string>> workingPathList)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>workingPathList</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
@@ -254,21 +265,18 @@ The coordinate is usually the final node from the chain of coordinate transforma
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_AvailableJsonPathList_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.AvailableJsonPathList*"></a>
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_Default_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.Default*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_AvailableJsonPathList" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.AvailableJsonPathList">
|
||||
AvailableJsonPathList
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_Default" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.Default">
|
||||
Default
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Available Json Path List to resolve semantic.
|
||||
Each path is a list of segments navigating nested JSON objects.
|
||||
Empty list means root level.</p>
|
||||
</div>
|
||||
<div class="markdown level1 summary"></div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public List<List<string>> AvailableJsonPathList { get; }</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static ProgramXyzSyntax Default { get; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -277,17 +285,12 @@ Empty list means root level.</p>
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>>></dt>
|
||||
<dt><a class="xref" href="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.html">ProgramXyzSyntax</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_AvailableJsonPathList_examples">Examples</h4>
|
||||
<pre><code class="lang-csharp">[["L"]] → fullJsonSrc["L"]
|
||||
[[]] → fullJsonSrc (root)
|
||||
[["L"], []] → try fullJsonSrc["L"], fallback to root</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -324,6 +327,45 @@ Empty list means root level.</p>
|
||||
|
||||
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_WorkingPathList_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.WorkingPathList*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_WorkingPathList" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.WorkingPathList">
|
||||
WorkingPathList
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>JSON paths where this syntax searches for axis values (X/Y/Z).
|
||||
Each path is a list of segments navigating nested JSON objects.
|
||||
First match is used. Empty list means root level.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public List<List<string>> WorkingPathList { get; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_WorkingPathList_examples">Examples</h4>
|
||||
<pre><code class="lang-csharp">[["L"]] → fullJsonSrc["L"]
|
||||
[[]] → fullJsonSrc (root)
|
||||
[["L"], []] → try fullJsonSrc["L"], fallback to root</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_XName_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.XName*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_XName" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.XName">
|
||||
@@ -361,8 +403,8 @@ Empty list means root level.</p>
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_Build_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.Build*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_Build_Hi_Common_Collections_LazyLinkedListNode_Hi_NcParsers_Syntaxs_SyntaxPiece__System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.Build(Hi.Common.Collections.LazyLinkedListNode{Hi.NcParsers.Syntaxs.SyntaxPiece},System.Collections.Generic.List{Hi.NcParsers.Dependencys.INcDependency})">
|
||||
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>)
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_Build_Hi_Common_Collections_LazyLinkedListNode_Hi_NcParsers_Syntaxs_SyntaxPiece__System_Collections_Generic_List_Hi_NcParsers_Dependencys_INcDependency__Hi_NcParsers_NcDiagnosticProgress_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.Build(Hi.Common.Collections.LazyLinkedListNode{Hi.NcParsers.Syntaxs.SyntaxPiece},System.Collections.Generic.List{Hi.NcParsers.Dependencys.INcDependency},Hi.NcParsers.NcDiagnosticProgress)">
|
||||
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>, NcDiagnosticProgress)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -372,7 +414,7 @@ Empty list means root level.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList, NcDiagnosticProgress ncDiagnosticProgress)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -381,47 +423,10 @@ Empty list means root level.</p>
|
||||
<dd></dd>
|
||||
<dt><code>ncDependencyList</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="Hi.NcParsers.Dependencys.INcDependency.html">INcDependency</a>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_GetVec3d_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.GetVec3d*"></a>
|
||||
|
||||
<h3 id="Hi_NcParsers_LogicSyntaxs_ProgramXyzSyntax_GetVec3d_System_Text_Json_Nodes_JsonObject_System_String_" data-uid="Hi.NcParsers.LogicSyntaxs.ProgramXyzSyntax.GetVec3d(System.Text.Json.Nodes.JsonObject,System.String)">
|
||||
GetVec3d(JsonObject, string)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Read Vec3d from a sub-object with X/Y/Z keys.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Vec3d GetVec3d(JsonObject json, string sectionKey)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>json</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.text.json.nodes.jsonobject">JsonObject</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>sectionKey</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dt><code>ncDiagnosticProgress</code> <a class="xref" href="Hi.NcParsers.NcDiagnosticProgress.html">NcDiagnosticProgress</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="Hi.Geom.Vec3d.html">Vec3d</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user