Table of Contents

Class CoordinateOffsetUtil

Namespace
Hi.NcParsers.LogicSyntaxs
Assembly
HiMech.dll

Shared utilities for all coordinate offset syntaxes (ISO, Siemens, Heidenhain). Handles section IO, backward lookback, and ProgramToMcTransform composition.

public static class CoordinateOffsetUtil
Inheritance
CoordinateOffsetUtil
Inherited Members

Fields

TransformSource

public const string TransformSource = "CoordinateOffset"

Field Value

string

Methods

ComposeTranslation(JsonObject, Vec3d)

public static void ComposeTranslation(JsonObject json, Vec3d offset)

Parameters

json JsonObject
offset Vec3d

FindPreviousCoordinateId(LazyLinkedListNode<SyntaxPiece>)

public static string FindPreviousCoordinateId(LazyLinkedListNode<SyntaxPiece> node)

Parameters

node LazyLinkedListNode<SyntaxPiece>

Returns

string

GetCurrentCoordinateId(JsonObject)

Gets CoordinateId from the current node's existing CoordinateOffset section (e.g., set by StaticInitializer).

public static string GetCurrentCoordinateId(JsonObject json)

Parameters

json JsonObject

Returns

string

WriteSection(JsonObject, string, Vec3d)

public static void WriteSection(JsonObject json, string coordId, Vec3d offset)

Parameters

json JsonObject
coordId string
offset Vec3d