public ExpLayer CreateLayer(string name, uint id) { ExpLayer layer = new ExpLayer(name, id); _layers.Add(layer); return(layer); }
public ExpLayer CreateLayer(string name) { ExpLayer layer = new ExpLayer(name, _layerInc++); _layers.Add(layer); return(layer); }
public ExpText(ExpBlock block, ExpLayer layer, ExpPen pen, double xt, double yt, string text) : base(block, layer, pen) { _xt = xt; _yt = yt; _text = text; }
public ExpLayer GetLayerByName(string name) { ExpLayer layer = _layers.Find(l => string.Equals(l._name, name, StringComparison.CurrentCultureIgnoreCase)); if (null == layer) { layer = CreateLayer(name); } return(layer); }
public void AddText(ExpBlock block, ExpLayer layer, ExpPen pen, double xt, double yt, string text) { _entities.Add(new ExpText(block, layer, pen, xt, yt, text)); }
public void AddArc(ExpBlock block, ExpLayer layer, ExpPen pen, double xc, double yc, double radius, double angle0, double angle1) { _entities.Add(new ExpArc(block, layer, pen, xc, yc, radius, angle0, angle1)); }
public void AddSegment(ExpBlock block, ExpLayer layer, ExpPen pen, double x0, double y0, double x1, double y1) { _entities.Add(new ExpLine(block, layer, pen, x0, y0, x1, y1)); }
public ExpArc(ExpBlock block, ExpLayer layer, ExpPen pen, double xc, double yc, double radius, double angle0, double angle1) : base(block, layer, pen) { _xc = xc; _yc = yc; _radius = radius; _angle0 = angle0; _angle1 = angle1; }
public ExpLine(ExpBlock block, ExpLayer layer, ExpPen pen, double x0, double y0, double x1, double y1) : base(block, layer, pen) { _x0 = x0; _y0 = y0; _x1 = x1; _y1 = y1; }
public bool BelongsLayer(ExpLayer layer) { return(_layer == layer); }
public ExpEntity(ExpBlock block, ExpLayer layer, ExpPen pen) { _block = block; _layer = layer; _pen = pen; }