Esempio n. 1
0
        private hPolyline AddPolyline(wPolyline InputCurve)
        {
            hPolyline crv = new hPolyline(InputCurve);

            crv.BuildSVGCurve();
            return(crv);
        }
Esempio n. 2
0
        public void CompoundPolyline()
        {
            hCompoundCurve crv   = new hCompoundCurve();
            hShape         shape = new hShape("p" + Index);
            hPath          path  = new hPath();

            GroupCheck(Shapes);

            foreach (wShape Shape in Shapes.Shapes)
            {
                hPolyline pline = AddPolyline((wPolyline)Shape.Curve);

                crv.AddCurve(pline);
            }

            shape.SetShape(crv);

            shape.AddAttribute(new hBoolean(hBoolean.FillRule.evenodd).Value);

            shape = SetGraphics(shape, Shapes.Graphics);

            if (Shapes.Effects.HasEffect)
            {
                hFilter filter = SetEffects(Shapes.Effects, Index);
                PathSet[Shapes.Group].Append(filter.Value);
                shape.AddAttribute(filter.ApplyFilter());
            }

            path = new hPath(shape);

            PathSet[Shapes.Group].Append(path.svgPath);
        }
Esempio n. 3
0
 public void AddCurve(hPolyline HoopoePolyline)
 {
     Curve.Append(HoopoePolyline.Curve.ToString());
 }