Beispiel #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, "", ""));
        }
Beispiel #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, ""));
        }
Beispiel #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(), "");
        }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #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));
 }