Beispiel #1
0
        /// <summary>
        /// 获取从字符串转换成重心数据List
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static List <CorePointData> GetStringToListCorePointData(string strCoreEnvelope)
        {
            List <CorePointData> lstCorePt = null;

            if (strCoreEnvelope != null && strCoreEnvelope != string.Empty)
            {
                lstCorePt = new List <CorePointData>();

                string[] strArray = strCoreEnvelope.Split('|');

                string strNodeName = string.Empty;
                foreach (string strCore in strArray)
                {
                    if (strCore != string.Empty)
                    {
                        int index = strCore.IndexOf(":");
                        strNodeName = strCore.Substring(0, index);

                        string[]      strCoreArray = strCore.Split('、');
                        CorePointData data         = new CorePointData();
                        data.pointName   = strNodeName;
                        data.pointXValue = Convert.ToDouble(strCoreArray[2]);
                        data.pointYValue = Convert.ToDouble(strCoreArray[3]);
                        lstCorePt.Add(data);
                    }
                }
            }
            return(lstCorePt);
        }
Beispiel #2
0
 public CorePointData(CorePointData cpd)
 {
     pointName   = cpd.pointName;
     pointXValue = cpd.pointXValue;
     pointYValue = cpd.pointYValue;
 }
Beispiel #3
0
 public EvaluationData(CorePointData cpd)
 {
     pointXValue = cpd.pointXValue;
     pointYValue = cpd.pointYValue;
 }