update XML IO pattern.

This commit is contained in:
2026-05-24 14:06:51 +08:00
parent 058003f395
commit d7836db45f
314 changed files with 13376 additions and 573 deletions
@@ -153,35 +153,6 @@ Class TransformerUtil
</h2>
<a id="Hi_Mech_Topo_TransformerUtil_Dummy_" data-uid="Hi.Mech.Topo.TransformerUtil.Dummy*"></a>
<h3 id="Hi_Mech_Topo_TransformerUtil_Dummy" data-uid="Hi.Mech.Topo.TransformerUtil.Dummy">
Dummy()
</h3>
<div class="markdown level1 summary"><p>The function is for trigger the static constructor of this class.
The function is empty.
The static constructor register the class to the <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Dummy()</code></pre>
</div>
<a id="Hi_Mech_Topo_TransformerUtil_GetSteps_" data-uid="Hi.Mech.Topo.TransformerUtil.GetSteps*"></a>
<h3 id="Hi_Mech_Topo_TransformerUtil_GetSteps_Hi_Mech_Topo_IDynamicRegular___" data-uid="Hi.Mech.Topo.TransformerUtil.GetSteps(Hi.Mech.Topo.IDynamicRegular[])">
@@ -221,6 +192,46 @@ The static constructor register the class to the <a class="xref" href="Hi.Common
<a id="Hi_Mech_Topo_TransformerUtil_Reg_" data-uid="Hi.Mech.Topo.TransformerUtil.Reg*"></a>
<h3 id="Hi_Mech_Topo_TransformerUtil_Reg_Hi_Common_XmlUtils_XFactory_" data-uid="Hi.Mech.Topo.TransformerUtil.Reg(Hi.Common.XmlUtils.XFactory)">
Reg(XFactory)
</h3>
<div class="markdown level1 summary"><p>Registers every concrete <a class="xref" href="Hi.Mech.Topo.ITransformer.html">ITransformer</a> implementation with
the given <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a>: <a class="xref" href="Hi.Mech.Topo.NoTransform.html">NoTransform</a>,
<a class="xref" href="Hi.Mech.Topo.StaticTranslation.html">StaticTranslation</a>, <a class="xref" href="Hi.Mech.Topo.StaticRotation.html">StaticRotation</a>,
<a class="xref" href="Hi.Mech.Topo.StaticFreeform.html">StaticFreeform</a>, <a class="xref" href="Hi.Mech.Topo.DynamicTranslation.html">DynamicTranslation</a>,
<a class="xref" href="Hi.Mech.Topo.DynamicRotation.html">DynamicRotation</a>, <a class="xref" href="Hi.Mech.Topo.DynamicFreeform.html">DynamicFreeform</a>,
<a class="xref" href="Hi.Mech.Topo.StackTransformer.html">StackTransformer</a>, and <a class="xref" href="Hi.Mech.Topo.GeneralTransform.html">GeneralTransform</a>.
Composites that deserialize a <a class="xref" href="Hi.Mech.Topo.Branch.html">Branch</a> (whose
<code>Transformer</code> child can be any of the above) should chain this
from their own <code>Reg(factory)</code>. Idempotent.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static void Reg(XFactory factory = null)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>factory</code> <a class="xref" href="Hi.Common.XmlUtils.XFactory.html">XFactory</a></dt>
<dd></dd>
</dl>
<a id="Hi_Mech_Topo_TransformerUtil_SetSteps_" data-uid="Hi.Mech.Topo.TransformerUtil.SetSteps*"></a>
<h3 id="Hi_Mech_Topo_TransformerUtil_SetSteps_Hi_Mech_Topo_IDynamicRegular___System_Double___" data-uid="Hi.Mech.Topo.TransformerUtil.SetSteps(Hi.Mech.Topo.IDynamicRegular[],System.Double[])">