Files
wg_cpso/CPSO/Forms/47_Amplitude/ViewAmplitude.cs
2026-03-25 18:20:24 +08:00

57 lines
2.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using CaeGlobals;
using CaeModel;
using DynamicTypeDescriptor;
namespace CPSO
{
[Serializable]
public abstract class ViewAmplitude
{
// Variables
private DynamicCustomTypeDescriptor _dctd;
// Properties
[Category("Data")]
[OrderedDisplayName(0, 10, "Name")]
[Description("Name of the amplitude.")]
public abstract string Name { get; set; }
//
[Category("Data")]
[OrderedDisplayName(1, 10, "Time span")]
[Description("Select if the amplitude is defined in global analysis time/frequency or in a local step time/frequency.")]
public abstract AmplitudeTimeSpanEnum TimeSpan { get ; set; }
//
[Category("Modify")]
[OrderedDisplayName(0, 10, "Shift time")]
[Description("Select the fixed amout used to shift the time/frequency values.")]
[TypeConverter(typeof(StringDoubleConverter))]
public abstract double ShiftX { get; set; }
//
[Category("Modify")]
[OrderedDisplayName(1, 10, "Shift amplitude")]
[Description("Select the fixed amout used to shift the amplitude values.")]
[TypeConverter(typeof(StringDoubleConverter))]
public abstract double ShiftY { get; set; }
//
[Browsable(false)]
public DynamicCustomTypeDescriptor DynamicCustomTypeDescriptor { get { return _dctd; } set { _dctd = value; } }
//
[Browsable(false)]
public abstract Amplitude GetBase();
// Constructors
// Methods
}
}