?? dxfdata.cs
字號:
?using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace DXFFile
{
public enum ArcType
{
atCircle,
atEllipse
}
public enum AutoCADVersion
{
R14,
R2000
}
public class DXFData:ICloneable
{
// Fields
public byte bold;
public int color;
public int count;
public float endAngle;
public int flags;
public float fScale;
public float globalWidth;
public byte hAlign;
public float height;
public byte italic;
public string name = "";
public DXFPoint point = new DXFPoint();
public DXFPoint point1 = new DXFPoint();
public DXFPoint point2 = new DXFPoint();
public DXFPoint point3 = new DXFPoint();
public ArrayList points = new ArrayList();
public float radius;
public float rHeight;
public float rotation;
public float rWidth;
public DXFPoint scale = new DXFPoint();
public byte selfType;
public float startAngle;
public byte style;
public int tag;
public string text = "";
public float thickness;
public byte vAlign;
// Methods
public void Clear()
{
this.tag = 0;
this.count = 0;
this.flags = 0;
this.style = 0;
this.color = 0;
this.thickness = 0f;
this.rotation = 0f;
this.text = "";
this.point.X = 0f;
this.point.Y = 0f;
this.point.Z = 0f;
this.point1.X = 0f;
this.point1.Y = 0f;
this.point1.Z = 0f;
this.point2.X = 0f;
this.point2.Y = 0f;
this.point2.Z = 0f;
this.point3.X = 0f;
this.point3.Y = 0f;
this.point3.Z = 0f;
this.radius = 0f;
this.startAngle = 0f;
this.endAngle = 0f;
this.scale.X = 0f;
this.scale.Y = 0f;
this.scale.Z = 0f;
this.hAlign = 0;
this.vAlign = 0;
this.rWidth = 0f;
this.rHeight = 0f;
this.height = 0f;
this.fScale = 0f;
this.points.Clear();
this.bold = 0;
this.italic = 0;
this.name = "";
this.globalWidth = 0f;
}
public object Clone()
{
DXFData data = new DXFData();
data.tag = this.tag;
data.count = this.count;
data.flags = this.flags;
data.style = this.style;
data.selfType = this.selfType;
data.color = this.color;
data.thickness = this.thickness;
data.rotation = this.rotation;
data.text = (string)this.text.Clone();
data.point = (DXFPoint)this.point.Clone();
data.point1 = (DXFPoint)this.point1.Clone();
data.point2 = (DXFPoint)this.point2.Clone();
data.point3 = (DXFPoint)this.point3.Clone();
data.radius = this.radius;
data.startAngle = this.startAngle;
data.endAngle = this.endAngle;
data.scale = (DXFPoint)this.scale.Clone();
data.hAlign = this.hAlign;
data.vAlign = this.vAlign;
data.rWidth = this.rWidth;
data.rHeight = this.rHeight;
data.height = this.height;
data.fScale = this.fScale;
data.points = new ArrayList(this.points);
data.bold = this.bold;
data.italic = this.italic;
data.name = (string)this.name.Clone();
data.globalWidth = this.globalWidth;
return data;
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -