Exemplo n.º 1
0
        public virtual VsElement Clip3DF(Clipper clip)
        {
            VsSegment ret = new VsSegment(this);

            if (ret.seg != null)
            {
                ret.seg = clip.Vs_line_clip_3df(ret.seg);
            }
            return(ret);
        }
Exemplo n.º 2
0
        public virtual VsElement Project(Projector proj)
        {
            VsSegment ret = new VsSegment(this);

            if (ret.seg != null)
            {
                ret.seg = ret.seg.Project(proj);
            }
            return(ret);
        }
Exemplo n.º 3
0
        public virtual VsElement Transform(Matrix44 mat)
        {
            VsSegment ret = new VsSegment(this);

            if (ret.seg != null)
            {
                ret.seg = ret.seg.Transform(mat);
            }

            return(ret);
        }
Exemplo n.º 4
0
 public VsSegment(VsSegment s)
 {
     type   = "VsSegment";
     col    = s.col;
     colPen = new Pen(col);
     if (s.seg != null)
     {
         seg = new Segment3D(s.seg);
     }
     else
     {
         seg = null;
     }
 }
Exemplo n.º 5
0
        public static VsElement CreateElement(VsElement elem)
        {
            VsElement ret  = null;
            String    type = elem.ElemType();

            if (type.Equals("VsPoint"))
            {
                ret = new VsPoint((VsPoint)elem);
            }
            else if (type.Equals("VsPolygon"))
            {
                ret = new VsPolygon((VsPolygon)elem);
            }
            else if (type.Equals("VsPolygon2"))
            {
                ret = new VsPolygon2((VsPolygon2)elem);
            }
            else if (type.Equals("VsPolygon3"))
            {
                ret = new VsPolygon3((VsPolygon3)elem);
            }
            else if (type.Equals("VsPolygon4"))
            {
                ret = new VsPolygon4((VsPolygon4)elem);
            }
            else if (type.Equals("VsSegment"))
            {
                ret = new VsSegment((VsSegment)elem);
            }
            else if (type.Equals("VsString"))
            {
                ret = new VsString((VsString)elem);
            }
            else if (type.Equals("VsString2"))
            {
                ret = new VsString2((VsString2)elem);
            }
            else if (type.Equals("VsObject"))
            {
                ret = new VsObject((VsObject)elem);
            }

            return(ret);
        }