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();
|
}
|
}
|
}
|