Archived
deploy webservice static-file routing for docsite folder URLs, per-instance step-cache db, and constant-height panel title bars.
This commit is contained in:
@@ -346,7 +346,7 @@ which portion of a measurement file corresponds to a particular machining operat
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public Dictionary<string, FileTimeSection> KeyToRelFileTimeSectionDictionary { get; set; }</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public Dictionary<string, IFileTimeSection> KeyToRelFileTimeSectionDictionary { get; set; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -355,7 +355,43 @@ which portion of a measurement file corresponds to a particular machining operat
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="Hi.Mappings.FileTimeSection.html">FileTimeSection</a>></dt>
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="Hi.Mappings.IFileTimeSection.html">IFileTimeSection</a>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_MappingAnchorDateTime_" data-uid="Hi.Mapping.TimeMapping.MappingAnchorDateTime*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_MappingAnchorDateTime" data-uid="Hi.Mapping.TimeMapping.MappingAnchorDateTime">
|
||||
MappingAnchorDateTime
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Project-scoped anchor for converting an absolute-time
|
||||
(<a class="xref" href="Hi.Mappings.FileDateTimeSection.html">FileDateTimeSection</a>) window into a relative timecode. Set
|
||||
it to the earliest controller instant (the broadest recorded stream
|
||||
covers everything else) so every <code>dateTime - anchor</code> is non-negative.
|
||||
<code>null</code> until set; absolute sections cannot be resolved while it is null.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public DateTime? MappingAnchorDateTime { get; set; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>?</dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
@@ -473,10 +509,100 @@ It matches the class name to maintain consistency between code and XML represent
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_AddTimeDataByFile_" data-uid="Hi.Mapping.TimeMapping.AddTimeDataByFile*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_AddTimeDataByFile_System_String_System_String_System_Double_System_Double_" data-uid="Hi.Mapping.TimeMapping.AddTimeDataByFile(System.String,System.String,System.Double,System.Double)">
|
||||
AddTimeDataByFile(string, string, double, double)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Seconds overload of <a class="xref" href="Hi.Mapping.TimeMapping.html#Hi_Mapping_TimeMapping_AddTimeDataByFile_System_String_System_String_System_String_System_String_">AddTimeDataByFile(string, string, string, string)</a>.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public bool AddTimeDataByFile(string key, string relFile, double beginTime, double endTime)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>beginTime</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>endTime</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_AddTimeDataByFile_" data-uid="Hi.Mapping.TimeMapping.AddTimeDataByFile*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_AddTimeDataByFile_System_String_System_String_System_String_System_String_" data-uid="Hi.Mapping.TimeMapping.AddTimeDataByFile(System.String,System.String,System.String,System.String)">
|
||||
AddTimeDataByFile(string, string, string, string)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Adds a <code>key → file-time-section</code> entry to
|
||||
<a class="xref" href="Hi.Mapping.TimeMapping.html#Hi_Mapping_TimeMapping_KeyToRelFileTimeSectionDictionary">KeyToRelFileTimeSectionDictionary</a>. Begin/end texts are parsed
|
||||
timecode-first: seconds or <code>HH:mm:ss</code> → <a class="xref" href="Hi.Mappings.FileTimecodeSection.html">FileTimecodeSection</a>;
|
||||
a date-bearing string → <a class="xref" href="Hi.Mappings.FileDateTimeSection.html">FileDateTimeSection</a>. Returns false
|
||||
when the key already exists.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public bool AddTimeDataByFile(string key, string relFile, string beginTimeText, string endTimeText)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>key</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>beginTimeText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
<dt><code>endTimeText</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_CallTimeShotByRelFile_" data-uid="Hi.Mapping.TimeMapping.CallTimeShotByRelFile*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_CallTimeShotByRelFile_System_String_System_IProgress_System_Object__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.CallTimeShotByRelFile(System.String,System.IProgress{System.Object},System.Nullable{System.Threading.CancellationToken})">
|
||||
CallTimeShotByRelFile(string, IProgress<object>, CancellationToken?)
|
||||
<h3 id="Hi_Mapping_TimeMapping_CallTimeShotByRelFile_System_String_System_IProgress_Hi_Common_Messages_IMessage__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.CallTimeShotByRelFile(System.String,System.IProgress{Hi.Common.Messages.IMessage},System.Nullable{System.Threading.CancellationToken})">
|
||||
CallTimeShotByRelFile(string, IProgress<IMessage>, CancellationToken?)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -485,7 +611,7 @@ It matches the class name to maintain consistency between code and XML represent
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public List<ITimeShot> CallTimeShotByRelFile(string relFile, IProgress<object> messageHost, CancellationToken? cancellationToken = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public List<ITimeShot> CallTimeShotByRelFile(string relFile, IProgress<IMessage> messageProgress, CancellationToken? cancellationToken = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -493,7 +619,7 @@ It matches the class name to maintain consistency between code and XML represent
|
||||
<dt><code>relFile</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The relative path to the file containing time shots.</p>
|
||||
</dd>
|
||||
<dt><code>messageHost</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>></dt>
|
||||
<dd><p>The message host for logging progress.</p>
|
||||
</dd>
|
||||
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
|
||||
@@ -515,7 +641,7 @@ If the file is already being loaded by another thread, waits for that operation
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="Hi_Mapping_TimeMapping_CallTimeShotByRelFile_System_String_System_IProgress_System_Object__System_Nullable_System_Threading_CancellationToken___remarks">Remarks</h4>
|
||||
<h4 class="section" id="Hi_Mapping_TimeMapping_CallTimeShotByRelFile_System_String_System_IProgress_Hi_Common_Messages_IMessage__System_Nullable_System_Threading_CancellationToken___remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>This method is thread-safe and ensures each file is only read once, even with concurrent access.
|
||||
Any exceptions during file reading are captured and can be inspected through the task's exception property.</p>
|
||||
</div>
|
||||
@@ -676,8 +802,8 @@ Any exceptions during file reading are captured and can be inspected through the
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_LoadTimeShotFiles_" data-uid="Hi.Mapping.TimeMapping.LoadTimeShotFiles*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_LoadTimeShotFiles_System_IProgress_System_Object__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.LoadTimeShotFiles(System.IProgress{System.Object},System.Nullable{System.Threading.CancellationToken})">
|
||||
LoadTimeShotFiles(IProgress<object>, CancellationToken?)
|
||||
<h3 id="Hi_Mapping_TimeMapping_LoadTimeShotFiles_System_IProgress_Hi_Common_Messages_IMessage__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.LoadTimeShotFiles(System.IProgress{Hi.Common.Messages.IMessage},System.Nullable{System.Threading.CancellationToken})">
|
||||
LoadTimeShotFiles(IProgress<IMessage>, CancellationToken?)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -686,12 +812,12 @@ Any exceptions during file reading are captured and can be inspected through the
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void LoadTimeShotFiles(IProgress<object> messageHost, CancellationToken? cancellationToken = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void LoadTimeShotFiles(IProgress<IMessage> messageProgress, CancellationToken? cancellationToken = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>messageHost</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>></dt>
|
||||
<dd><p>The message host for logging progress.</p>
|
||||
</dd>
|
||||
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
|
||||
@@ -766,8 +892,8 @@ Any exceptions during file reading are captured and can be inspected through the
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_Map_" data-uid="Hi.Mapping.TimeMapping.Map*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_Map_Hi_Common_Range_System_Int32__Hi_Mappings_FileTimeSection_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_CutterLocations_ClStrips_ClStrip_System_IProgress_System_Object__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.Map(Hi.Common.Range{System.Int32},Hi.Mappings.FileTimeSection,Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,Hi.CutterLocations.ClStrips.ClStrip,System.IProgress{System.Object},System.Nullable{System.Threading.CancellationToken})">
|
||||
Map(Range<int>, FileTimeSection, CycleSamplingMode, ClStrip, IProgress<object>, CancellationToken?)
|
||||
<h3 id="Hi_Mapping_TimeMapping_Map_Hi_Common_Range_System_Int32__Hi_Mappings_IFileTimeSection_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_CutterLocations_ClStrips_ClStrip_System_IProgress_Hi_Common_Messages_IMessage__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.Map(Hi.Common.Range{System.Int32},Hi.Mappings.IFileTimeSection,Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,Hi.CutterLocations.ClStrips.ClStrip,System.IProgress{Hi.Common.Messages.IMessage},System.Nullable{System.Threading.CancellationToken})">
|
||||
Map(Range<int>, IFileTimeSection, CycleSamplingMode, ClStrip, IProgress<IMessage>, CancellationToken?)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -777,7 +903,7 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void Map(Range<int> stepSection, FileTimeSection relFileTimeSection, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, ClStrip clStrip, IProgress<object> messageHost, CancellationToken? cancellationToken = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void Map(Range<int> stepSection, IFileTimeSection relFileTimeSection, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, ClStrip clStrip, IProgress<IMessage> messageProgress, CancellationToken? cancellationToken = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -785,7 +911,7 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
<dt><code>stepSection</code> <a class="xref" href="Hi.Common.Range-1.html">Range</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>></dt>
|
||||
<dd><p>The range of step indices to process.</p>
|
||||
</dd>
|
||||
<dt><code>relFileTimeSection</code> <a class="xref" href="Hi.Mappings.FileTimeSection.html">FileTimeSection</a></dt>
|
||||
<dt><code>relFileTimeSection</code> <a class="xref" href="Hi.Mappings.IFileTimeSection.html">IFileTimeSection</a></dt>
|
||||
<dd><p>The file time section containing file path and time range.</p>
|
||||
</dd>
|
||||
<dt><code>cycleSamplingMode</code> <a class="xref" href="Hi.Mapping.StepTimeShotUtil.html">StepTimeShotUtil</a>.<a class="xref" href="Hi.Mapping.StepTimeShotUtil.CycleSamplingMode.html">CycleSamplingMode</a></dt>
|
||||
@@ -794,7 +920,7 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
<dt><code>clStrip</code> <a class="xref" href="Hi.CutterLocations.ClStrips.ClStrip.html">ClStrip</a></dt>
|
||||
<dd><p>The cutter location strip to map.</p>
|
||||
</dd>
|
||||
<dt><code>messageHost</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>></dt>
|
||||
<dd><p>The message host for logging progress.</p>
|
||||
</dd>
|
||||
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
|
||||
@@ -815,8 +941,8 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_MapSeriesByActualTime_" data-uid="Hi.Mapping.TimeMapping.MapSeriesByActualTime*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_MapSeriesByActualTime_System_String_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_CutterLocations_ClStrips_ClStrip_System_IProgress_System_Object__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.MapSeriesByActualTime(System.String,Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,Hi.CutterLocations.ClStrips.ClStrip,System.IProgress{System.Object},System.Nullable{System.Threading.CancellationToken})">
|
||||
MapSeriesByActualTime(string, CycleSamplingMode, ClStrip, IProgress<object>, CancellationToken?)
|
||||
<h3 id="Hi_Mapping_TimeMapping_MapSeriesByActualTime_System_String_Hi_Mapping_StepTimeShotUtil_CycleSamplingMode_Hi_CutterLocations_ClStrips_ClStrip_System_IProgress_Hi_Common_Messages_IMessage__System_Nullable_System_Threading_CancellationToken__" data-uid="Hi.Mapping.TimeMapping.MapSeriesByActualTime(System.String,Hi.Mapping.StepTimeShotUtil.CycleSamplingMode,Hi.CutterLocations.ClStrips.ClStrip,System.IProgress{Hi.Common.Messages.IMessage},System.Nullable{System.Threading.CancellationToken})">
|
||||
MapSeriesByActualTime(string, CycleSamplingMode, ClStrip, IProgress<IMessage>, CancellationToken?)
|
||||
|
||||
</h3>
|
||||
|
||||
@@ -825,7 +951,7 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public void MapSeriesByActualTime(string timeShotRelFile, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, ClStrip clStrip, IProgress<object> messageHost, CancellationToken? cancellationToken = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public void MapSeriesByActualTime(string timeShotRelFile, StepTimeShotUtil.CycleSamplingMode cycleSamplingMode, ClStrip clStrip, IProgress<IMessage> messageProgress, CancellationToken? cancellationToken = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -839,7 +965,7 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
<dt><code>clStrip</code> <a class="xref" href="Hi.CutterLocations.ClStrips.ClStrip.html">ClStrip</a></dt>
|
||||
<dd><p>The cutter location strip to map.</p>
|
||||
</dd>
|
||||
<dt><code>messageHost</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dt><code>messageProgress</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iprogress-1">IProgress</a><<a class="xref" href="Hi.Common.Messages.IMessage.html">IMessage</a>></dt>
|
||||
<dd><p>The session message host for logging.</p>
|
||||
</dd>
|
||||
<dt><code>cancellationToken</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken">CancellationToken</a>?</dt>
|
||||
@@ -892,6 +1018,51 @@ This method is thread-safe and can be called concurrently.</p>
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_ToTimecode_" data-uid="Hi.Mapping.TimeMapping.ToTimecode*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_ToTimecode_System_DateTime_" data-uid="Hi.Mapping.TimeMapping.ToTimecode(System.DateTime)">
|
||||
ToTimecode(DateTime)
|
||||
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Converts an absolute controller instant to a run-relative timecode against
|
||||
<a class="xref" href="Hi.Mapping.TimeMapping.html#Hi_Mapping_TimeMapping_MappingAnchorDateTime">MappingAnchorDateTime</a>. The anchor is seeded set-once
|
||||
(date-only, so same-day data lines up with the controller's time-of-day)
|
||||
the first time any conversion is requested, unless it was already loaded
|
||||
from project XML or set explicitly. This is the single place the anchor
|
||||
set-logic lives — every <code>DateTime → timecode</code> site calls here rather
|
||||
than re-deriving <code>instant - anchor</code>.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public TimeSpan ToTimecode(DateTime instant)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>instant</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></dt>
|
||||
<dd><p>The absolute controller instant to convert.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></dt>
|
||||
<dd><p>The instant expressed as a timecode from the anchor.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="Hi_Mapping_TimeMapping_WaitMapping_" data-uid="Hi.Mapping.TimeMapping.WaitMapping*"></a>
|
||||
|
||||
<h3 id="Hi_Mapping_TimeMapping_WaitMapping" data-uid="Hi.Mapping.TimeMapping.WaitMapping">
|
||||
|
||||
Reference in New Issue
Block a user