refactor(Hi.Sample): follow the Buckle to Mount rename -- the machine-tool and machining-project build demos and the coordinate-entry displayees use the ...Mount members

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-22 01:46:26 +08:00
co-authored by Claude Fable 5.1
parent 40214ca6f4
commit 2cf5d31bf6
6 changed files with 18 additions and 18 deletions
+9 -9
View File
@@ -60,9 +60,9 @@ namespace Sample.Disp
return;
////Console.WriteLine($"B: {CoordinateIndex}; {coordinateMove}");
Vec3d mcXyz_AttacherAtTableBuckleZero = MillingEquipmentFunc?.Invoke()
?.GetMachinePositionAtTableBuckleZero();
if (mcXyz_AttacherAtTableBuckleZero == null)
Vec3d mcXyz_AttacherAtTableMountZero = MillingEquipmentFunc?.Invoke()
?.GetMachinePositionAtTableMountZero();
if (mcXyz_AttacherAtTableMountZero == null)
return;
Vec3d coordinateMove;
@@ -85,7 +85,7 @@ namespace Sample.Disp
//Console.WriteLine($"text: [{text}]");
bind.ModelMatStack.Push();
bind.ModelMatStack.Trans(coordinateMove - mcXyz_AttacherAtTableBuckleZero);
bind.ModelMatStack.Trans(coordinateMove - mcXyz_AttacherAtTableMountZero);
CoordinateDrawing.Display(bind, text);
bind.ModelMatStack.Pop();
}
@@ -96,9 +96,9 @@ namespace Sample.Disp
if (ncEnv == null || NcEnv.CncBrand != CncBrand.Heidenhain)
return;
Vec3d mcXyz_AttacherAtTableBuckleZero = MillingEquipmentFunc?.Invoke()
?.GetMachinePositionAtTableBuckleZero();
if (mcXyz_AttacherAtTableBuckleZero == null)
Vec3d mcXyz_AttacherAtTableMountZero = MillingEquipmentFunc?.Invoke()
?.GetMachinePositionAtTableMountZero();
if (mcXyz_AttacherAtTableMountZero == null)
return;
Vec3d coordinateMove;
if (HeidenhainCycleDef247Q339 == 0 && HeidenhainCycleDef7Arg == null)
@@ -107,13 +107,13 @@ namespace Sample.Disp
HeidenhainCycleDef247Q339, HeidenhainCycleDef7Arg, ncEnv);
dst.Expand(-mcXyz_AttacherAtTableBuckleZero + coordinateMove);
dst.Expand(-mcXyz_AttacherAtTableMountZero + coordinateMove);
}
/// <inheritdoc/>
public Anchor GetAnchor()
{
return MillingEquipmentFunc?.Invoke()?.GetMachiningChain()
?.GetTableBuckle()?.GetAnchor();
?.GetTableMount()?.GetAnchor();
}
}
}
+1 -1
View File
@@ -82,7 +82,7 @@ public class IsoCoordinateEntryDisplayee : IAnchoredDisplayee
dst.Expand(attacherPos);
}
/// <inheritdoc/>
/// <returns>Table Buckle if existed; otherwise, return null.</returns>
/// <returns>Table Mount if existed; otherwise, return null.</returns>
public Anchor GetAnchor()
{
return MillingEquipmentFunc?.Invoke()?.GetMachiningChain()?.GetAnchor();