Shuxia Ning
2024-12-19 b0c978129ba55cf81e8470b6c9326745a5dbc7d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace Eventech.Model
{
    public class CombineCurve2
    {
        public CombineCurve2() { }
 
        public CombineCurve2(CombineCurve curve)
        {
            this.CurveType = curve.CurveType;
            this.CurvePara = curve.CurvePara;
            if (this.CurveType == eCurveDrawType.Fit)
            {
                this.CurveInfo = curve.ToPoints(12);
                this.PointInfo = curve.ToPoints(8);
            }
            else
            {
                this.CurveInfo = curve.PointInfo.Clone();
                this.PointInfo = curve.PointInfo;
                this.DispTension = curve.DispTension;
                this.IsClosed = curve.IsClosed;
            }
        }
        private eCurveDrawType _curveType = eCurveDrawType.Fit;
        public eCurveDrawType CurveType { get { return _curveType; } set { _curveType = value; } }
 
        public Eventech.Model.FeatPointList _fitpointInfo = null;
        public Eventech.Model.FeatPointList CurveInfo { get { return _fitpointInfo; } set { _fitpointInfo = value; } }
 
        public Eventech.Model.FeatPointList _throughtpointInfo = null;
        public Eventech.Model.FeatPointList PointInfo { get { return _throughtpointInfo; } set { _throughtpointInfo = value; } }
 
        public double CurvePara { get { return _curvePara; } set { _curvePara = value; } }
        public double _curvePara = -1;
 
        //显示的张力
        public float DispTension { get { return _dispTension; } set { _dispTension = value; } }
        private float _dispTension = 0.5f;
 
        //是否封闭
        public bool IsClosed { get { return _isClosed; } set { _isClosed = value; } }
        public bool _isClosed = false;
 
        public override string ToString()
        {
            return this.CurvePara.ToString();
        }
    }
}