Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
        public ExpBlock CreateBlock(string name)
        {
            ExpBlock block = new ExpBlock(name, ++_blockInc);

            _blocks.Add(block);
            return(block);
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public ExpBlock GetBlockOrCreate(string name)
        {
            ExpBlock block = GetBlock(name);

            if (null == block)
            {
                block = CreateBlock(name);
                CreateBlockRef(block);
            }
            return(block);
        }
Ejemplo n.º 6
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));
 }
Ejemplo n.º 7
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));
 }
Ejemplo n.º 8
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));
 }
Ejemplo n.º 9
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;
 }
Ejemplo n.º 10
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;
 }
Ejemplo n.º 11
0
 public bool BelongsBlock(ExpBlock block)
 {
     return(_block == block);
 }
Ejemplo n.º 12
0
 public ExpEntity(ExpBlock block, ExpLayer layer, ExpPen pen)
 {
     _block = block; _layer = layer; _pen = pen;
 }