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 ExpBlock CreateBlock(string name) { ExpBlock block = new ExpBlock(name, ++_blockInc); _blocks.Add(block); return(block); }
public ExpBlockRef(ExpBlock block, double x, double y, double dir) { _block = block; _dir = 0.0; _x = x; _y = y; _dir = dir; _scaleX = 1.0; _scaleY = 1.0; }
public ExpBlockRef CreateBlockRef(ExpBlock block) { if (null == block) { return(null); } ExpBlockRef blockRef = new ExpBlockRef(block, 0.0, 0.0, 0.0); _blockRefs.Add(blockRef); return(blockRef); }
public ExpBlock GetBlockOrCreate(string name) { ExpBlock block = GetBlock(name); if (null == block) { block = CreateBlock(name); CreateBlockRef(block); } return(block); }
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 BelongsBlock(ExpBlock block) { return(_block == block); }
public ExpEntity(ExpBlock block, ExpLayer layer, ExpPen pen) { _block = block; _layer = layer; _pen = pen; }