187 lines
4.1 KiB
C#
187 lines
4.1 KiB
C#
using System;
|
|
using ClassLibrary;
|
|
using Data.DataModel;
|
|
|
|
|
|
namespace Projects
|
|
{
|
|
public class Layer
|
|
{
|
|
|
|
#region local
|
|
|
|
int _id;
|
|
string _layerName;
|
|
int _order;
|
|
string _technologyName;
|
|
string _opticalSchema;
|
|
int _projectId;
|
|
int[] _traceProfile;
|
|
int _arcWidth;
|
|
double _layerLeft;
|
|
double _layerTop;
|
|
double _layerWidth;
|
|
double _layerHeight;
|
|
double _radiusMax;
|
|
double _step;
|
|
string _sourceFilePath;
|
|
string _anglesFilePath;
|
|
|
|
#endregion
|
|
|
|
#region Get/Set
|
|
|
|
public int Id
|
|
{
|
|
get { return _id; }
|
|
set { _id = value; }
|
|
}
|
|
|
|
public string LayerName
|
|
{
|
|
get { return _layerName; }
|
|
set { _layerName = value; }
|
|
}
|
|
|
|
public int Order
|
|
{
|
|
get { return _order; }
|
|
set { _order = value; }
|
|
}
|
|
|
|
public string TechnologyName
|
|
{
|
|
get { return _technologyName; }
|
|
set { _technologyName = value; }
|
|
}
|
|
|
|
public string OpticalSchema
|
|
{
|
|
get { return _opticalSchema; }
|
|
set { _opticalSchema = value; }
|
|
}
|
|
|
|
public int ProjectId
|
|
{
|
|
get { return _projectId; }
|
|
set { _projectId = value; }
|
|
}
|
|
|
|
public int[] TraceProfile
|
|
{
|
|
get { return _traceProfile; }
|
|
set { _traceProfile = value; }
|
|
}
|
|
|
|
public double LayerLeft
|
|
{
|
|
get { return _layerLeft; }
|
|
set { _layerLeft = value; }
|
|
}
|
|
|
|
public double LayerTop
|
|
{
|
|
get { return _layerTop; }
|
|
set { _layerTop = value; }
|
|
}
|
|
|
|
public double LayerWidth
|
|
{
|
|
get { return _layerWidth; }
|
|
set { _layerWidth = value; }
|
|
}
|
|
|
|
public double LayerHeight
|
|
{
|
|
get { return _layerHeight; }
|
|
set { _layerHeight = value; }
|
|
}
|
|
|
|
public int ArcWidth
|
|
{
|
|
get { return _arcWidth; }
|
|
set { _arcWidth = value; }
|
|
}
|
|
|
|
public double RadiusMax
|
|
{
|
|
get { return _radiusMax; }
|
|
set { _radiusMax = value; }
|
|
}
|
|
|
|
public double Step
|
|
{
|
|
get { return _step; }
|
|
set { _step = value; }
|
|
}
|
|
|
|
public string SourceFilePath
|
|
{
|
|
get { return _sourceFilePath; }
|
|
set { _sourceFilePath = value; }
|
|
}
|
|
|
|
public string AnglesFilePath
|
|
{
|
|
get { return _anglesFilePath; }
|
|
set { _anglesFilePath = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
//public System.Type getType
|
|
//{
|
|
// get { return _technology.GetType(); }
|
|
//}
|
|
|
|
public void Clear()
|
|
{
|
|
Id = 0;
|
|
ProjectId = 0;
|
|
Order = 0;
|
|
LayerName = "";
|
|
TechnologyName = "";
|
|
OpticalSchema = "";
|
|
SourceFilePath = "";
|
|
AnglesFilePath = "";
|
|
_arcWidth = 0;
|
|
_step = 0;
|
|
_radiusMax = 0;
|
|
_layerLeft = 0;
|
|
_layerTop = 0;
|
|
_layerWidth = 0;
|
|
_layerHeight = 0;
|
|
}
|
|
|
|
Layer()
|
|
{
|
|
}
|
|
|
|
public Layer(string name, string technologyName)
|
|
{
|
|
_layerName = name;
|
|
_technologyName = technologyName;
|
|
}
|
|
|
|
public Layer(LayerModel lm)
|
|
{
|
|
_id = lm.Id;
|
|
LayerName = lm.LayerName;
|
|
OpticalSchema = lm.OpticalSchema;
|
|
TechnologyName = lm.TechnologyName;
|
|
ProjectId = lm.ProjectId;
|
|
TraceProfile = lm.TraceProfile;
|
|
SourceFilePath = lm.SourceFilePath;
|
|
AnglesFilePath = lm.AnglesFilePath;
|
|
_arcWidth = lm.ArcWidth;
|
|
_step = lm.Step;
|
|
_radiusMax = lm.RadiusMax;
|
|
_layerLeft = lm.LayerLeft;
|
|
_layerTop = lm.LayerTop;
|
|
_layerWidth = lm.LayerWidth;
|
|
_layerHeight = lm.LayerHeight;
|
|
}
|
|
|
|
}
|
|
}
|