using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace DPumpHydr.OpenModel
|
{
|
public class ComponentTree
|
{
|
/// <summary>
|
/// 断面信息 从1开始
|
/// </summary>
|
public Component[] Sections = new Component[10]; // 索引0~7
|
/// <summary>
|
/// 水体
|
/// </summary>
|
public Component Water { get; set; }
|
/// <summary>
|
/// 加厚实体
|
/// </summary>
|
public Component Volute_entity { get; set; }
|
|
public void ComponentTreeSection(HydrEngineCSharp.vecTopoMessage topoMessages)
|
{
|
if(topoMessages == null)
|
{
|
return;
|
}
|
int index = 1;
|
Component component = new Component();
|
foreach (var message in topoMessages)
|
{
|
component.NodeName = "第"+ index + "断面";
|
component.OccName = message.m_wstrShapeName;
|
component.OccContent = message.m_strTopoShape;
|
Sections[index] = component;
|
index++;
|
}
|
}
|
}
|
}
|