예제 #1
0
        public ExpLayer CreateLayer(string name, uint id)
        {
            ExpLayer layer = new ExpLayer(name, id);

            _layers.Add(layer);
            return(layer);
        }
예제 #2
0
        public ExpLayer CreateLayer(string name)
        {
            ExpLayer layer = new ExpLayer(name, _layerInc++);

            _layers.Add(layer);
            return(layer);
        }
예제 #3
0
 public ExpText(ExpBlock block, ExpLayer layer, ExpPen pen, double xt, double yt, string text)
     : base(block, layer, pen)
 {
     _xt   = xt;
     _yt   = yt;
     _text = text;
 }
예제 #4
0
        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);
        }
예제 #5
0
 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));
 }
예제 #6
0
 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));
 }
예제 #7
0
 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));
 }
예제 #8
0
 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;
 }
예제 #9
0
 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;
 }
예제 #10
0
 public bool BelongsLayer(ExpLayer layer)
 {
     return(_layer == layer);
 }
예제 #11
0
 public ExpEntity(ExpBlock block, ExpLayer layer, ExpPen pen)
 {
     _block = block; _layer = layer; _pen = pen;
 }