Files
XplorePlane/XP.ImageProcessing.Core/ProcessorParameter.cs
T
2026-04-13 14:36:18 +08:00

60 lines
2.0 KiB
C#

// ============================================================================
// Copyright 穢 2026 Hexagon Technology Center GmbH. All Rights Reserved.
// ? ProcessorParameter.cs
// 讛膩: 蝞堒㺭摰帋蝐鳴讛膩蝞堒滨蔭
// :
// - 摰帋滨妍霈文
// - 凒蝥行撠誩憭批
// - 帋蜀蝐餃㺭嚗厰★嚗?
// - 𣂷讛膩靽⊥UI曄內
// - 蝏煺啁恣?
// 雿𡏭? 𦒘 wei.lw.li@hexagon.com
// ============================================================================
namespace XP.ImageProcessing.Core;
/// <summary>
/// 蝞堒㺭摰帋
/// </summary>
public class ProcessorParameter
{
/// <summary>滨妍嚗葉雿輻鍂嚗?/summary>
public string Name { get; set; }
/// <summary>曄內滨妍嚗㇎I銝剜遬蝷綽</summary>
public string DisplayName { get; set; }
/// <summary>㺭蝐餃</summary>
public Type ValueType { get; set; }
/// <summary>敶枏?/summary>
public object Value { get; set; }
/// <summary>撠誩</summary>
public object? MinValue { get; set; }
/// <summary>憭批</summary>
public object? MaxValue { get; set; }
/// <summary>讛膩</summary>
public string Description { get; set; }
/// <summary>銵剁銝𧢲</summary>
public string[]? Options { get; set; }
/// <summary>臬炏</summary>
public bool IsVisible { get; set; } = true;
public ProcessorParameter(string name, string displayName, Type valueType, object defaultValue,
object? minValue = null, object? maxValue = null, string description = "", string[]? options = null)
{
Name = name;
DisplayName = displayName;
ValueType = valueType;
Value = defaultValue;
MinValue = minValue;
MaxValue = maxValue;
Description = description;
Options = options;
}
}