Esempio n. 1
0
        public static ulong BuildCommonLineByLayer(LJJSPoint ptStart, LJJSPoint ptEnd, double penWidth)
        {
            gPoint pStart = FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart);
            gPoint pEnd   = FigureStrucConvert.ConvertLJJSPointToGPoint(ptEnd);

            return(VectorDrawHelper.CommonLineByLayer(DrawCommonData.activeDocument, pStart, pEnd, penWidth, "", ""));
        }
Esempio n. 2
0
        public static ulong BuildCommonSoldLine(LJJSPoint ptStart, LJJSPoint ptEnd, int lineColor, double penWidth)
        {
            gPoint pStart = FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart);
            gPoint pEnd   = FigureStrucConvert.ConvertLJJSPointToGPoint(ptEnd);

            return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, pStart, pEnd, penWidth, lineColor, DrawCommonData.SolidLineTypeName, ""));
        }
Esempio n. 3
0
        public static void VerSolidArrow(LJJSPoint basePoint, double width, double height, int direction)
        {
            Vertexes controlPtCollection = new Vertexes();
            gPoint   pt2 = new gPoint(basePoint.XValue + width, basePoint.YValue);
            gPoint   pt3 = new gPoint(basePoint.XValue, basePoint.YValue + direction * height);
            gPoint   pt4 = new gPoint(basePoint.XValue - width, basePoint.YValue);

            controlPtCollection.Add(FigureStrucConvert.ConvertLJJSPointToGPoint(basePoint));
            controlPtCollection.Add(pt2);
            controlPtCollection.Add(pt3);
            controlPtCollection.Add(pt4);
            //
            VectorDrawHelper.BuildSpineWithSolidHatch(DrawCommonData.activeDocument, controlPtCollection, VectorDraw.Professional.Constants.VdConstPlineFlag.PlFlagCLOSE, VectorDraw.Professional.Constants.VdConstSplineFlag.SFlagSTANDARD, Color.Black.ToArgb(), "");
        }
Esempio n. 4
0
        public static ulong BuildToRightHorLine(LJJSPoint ptStart, double lineLen, double penWidth, int lineColor, string lineTypeName, string pToolTip)
        {
            gPoint ptend = new gPoint(ptStart.XValue + lineLen, ptStart.YValue);

            return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart), ptend, penWidth, lineColor, lineTypeName, pToolTip));
        }
Esempio n. 5
0
        public static ulong BuildHorToRightBlackSolidLine(LJJSPoint pStart, double lineWidth, double penWidth, string pToolTip)
        {
            gPoint pEnd = new gPoint(pStart.XValue + lineWidth, pStart.YValue);

            return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(pStart), pEnd, penWidth, DrawCommonData.BlackColorRGB, DrawCommonData.SolidLineTypeName, pToolTip));
        }
Esempio n. 6
0
 public static ulong AddBlackRect(LJJSPoint insertPoint, double rectHeight, double rectWidth, double penWidth, DrawDirection drawDirection)
 {
     return(VectorDrawHelper.AddRect(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(insertPoint), rectHeight, rectWidth, 0, penWidth, drawDirection));
 }
Esempio n. 7
0
        public static ulong BuildCommonPolyLine(List <LJJSPoint> ptcol, double penWidth, Color PenColor)
        {
            List <gPoint> ljjsgPtLst = FigureStrucConvert.ConverLJJSPtLstTogPtLst(ptcol);

            return(VectorDrawHelper.CommonPolyLine(DrawCommonData.activeDocument, ljjsgPtLst, penWidth, PenColor));
        }