Files
wg_cpso/CPSO/Forms/42_Section/ViewShellSection.cs
2026-03-25 18:20:24 +08:00

56 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using CaeGlobals;
using DynamicTypeDescriptor;
namespace CPSO
{
[Serializable]
public class ViewShellSection : ViewSection
{
// Variables
protected CaeModel.ShellSection _shellSection;
// Properties
[Category("Data")]
[OrderedDisplayName(2, 10, "Thickness")]
[Description("Set the shell thickness.")]
[TypeConverter(typeof(EquationLengthConverter))]
public EquationString Thickness
{
get { return _shellSection.Thickness.Equation; }
set { _shellSection.Thickness.Equation = value; }
}
//
[Category("Data")]
[OrderedDisplayName(3, 10, "Offset")]
[Description("Set the offset of the shell mid-surface in regard to the selected geometry. " +
"The unit is the shell thickness.")]
[TypeConverter(typeof(EquationDoubleConverter))]
public EquationString Offset
{
get { return _shellSection.Offset.Equation; }
set { _shellSection.Offset.Equation = value; }
}
// Constructors
public ViewShellSection(CaeModel.ShellSection shellSection)
{
_shellSection = shellSection;
SetBase(_shellSection);
}
// Methods
}
}