60 lines
2.0 KiB
C#
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;
|
|
}
|
|
} |