This commit is contained in:
2025-08-30 15:31:33 +08:00
parent 6e7d65b32a
commit 97aa5f3b30
766 changed files with 8238 additions and 1394 deletions
@@ -113,16 +113,37 @@ using System.Collections.Generic;
namespace Hi.Milling.MillingTools
{
/// <summary>
/// Display host for a milling tool composed of a cutter and a holder.
/// </summary>
public class MillingToolEditorDisplayee : ITopoDisplayee, IClearCache
{
/// <summary>
/// Gets or sets the delegate that provides the <see cref="MillingTool"/> instance.
/// </summary>
public Func<MillingTool> MillingToolGetter { get; set; }
/// <summary>
/// Gets the current <see cref="MillingTool"/> instance.
/// </summary>
public MillingTool MillingTool => MillingToolGetter?.Invoke();
/// <summary>
/// Gets or sets whether to show the cutter.
/// </summary>
public bool ShowCutter { get; set; } = true;
/// <summary>
/// Gets or sets whether to show the holder.
/// </summary>
public bool ShowHolder { get; set; } = true;
/// <summary>
/// Gets the displayee for the milling cutter.
/// </summary>
public MillingCutterEditorDisplayee MillingCutterEditorDisplayee { get; }
= new MillingCutterEditorDisplayee();
/// <summary>
/// Gets the displayee for the holder.
/// </summary>
public HolderEditorDisplayee HolderEditorDisplayee { get; }
= new HolderEditorDisplayee();
/// <inheritdoc/>