Пример #1
0
        private void AddPerLegendNoFrame(LJJSPoint ptbase, SymbolCodeClass symoper)
        {
            if (symoper == null)
            {
                return;
            }
            double legwidth = symoper.legendWidth;

            Rect.AddBlackRect(ptbase, -_legendunitheigh, legwidth, 0, new DrawDirection(1, 1));
            symoper.InserLegendSymbol(new LJJSPoint(ptbase.XValue, ptbase.YValue - _legendunitheigh * 0.5), legwidth, _legendunitheigh);
            LJJSText.AddHorCommonText(symoper.symbolChineseName, new LJJSPoint(ptbase.XValue + legwidth + noframetxtvslegspace, ptbase.YValue - _legendunitheigh * 0.5), DrawCommonData.BlackColorRGB, AttachmentPoint.MiddleLeft, legendtxtheigh, legendCNtxtstyle);
            //(symoper.symbolChineseName, legendtxtheigh, new LJJSPoint(ptbase.XValue+ legwidth + noframetxtvslegspace, ptbase.YValue - _legendunitheigh * 0.5), AttachmentPoint.MiddleLeft, legendCNtxtstyle);
        }
Пример #2
0
        public List <ulong> DrawRectFrame()
        {
            List <ulong> rectFrameLst = new List <ulong>();
            double       frameHeight  = FrameControlData.GetMainFrameHeight();
            double       frameWidth   = FrameControlData.GetMainFrameWidth();

            _frameHeight = frameHeight;
            _frameWidth  = frameWidth;
            LJJSPoint     startPt     = new LJJSPoint(DrawCommonData.xStart, DrawCommonData.yStart);
            DrawDirection ddMainFrame = new DrawDirection();

            ddMainFrame.HorDirection = 1;
            ddMainFrame.VerDirection = -1;

            DrawDirection ddTitleFrame = new DrawDirection();

            ddTitleFrame.HorDirection = 1;
            ddTitleFrame.VerDirection = 1;

            Rect.AddBlackRect(startPt, frameHeight, frameWidth, FrameDesign.PictureFrameLineWidth, ddMainFrame);
            Rect.AddBlackRect(startPt, FrameDesign.LineRoadTitleBarHeigh, frameWidth, FrameDesign.PictureFrameLineWidth, ddTitleFrame);

            if (FrameDesign.JdStrLst.Count() > 1 && FrameControlData.LineRoadControlLst.Count() > 0)
            {
                List <JDStruc> firstLineRoadJDStrucLst = FrameControlData.LineRoadControlLst[0].LineRoadJDStructLst;
                //fff
                for (int i = 0; i < firstLineRoadJDStrucLst.Count(); i++) //2560-2590 2660-2690
                {
                    JDStruc   tmpJDStruc = firstLineRoadJDStrucLst[i];
                    double    xStart     = tmpJDStruc.JDPtStart.XValue;
                    double    yStart     = tmpJDStruc.JDPtStart.YValue + DrawCommonData.DirectionDown * tmpJDStruc.JDHeight;
                    LJJSPoint tmpstartPt = new LJJSPoint(xStart, yStart);
                    Line.BuildHorToRightBlackSolidLine(tmpstartPt, frameWidth, FrameDesign.PictureFrameLineWidth, "");

                    tmpstartPt = new LJJSPoint(xStart, yStart + DrawCommonData.DirectionDown * FrameDesign.JdSpace);
                    Line.BuildHorToRightBlackSolidLine(tmpstartPt, frameWidth, FrameDesign.PictureFrameLineWidth, "");
                }
            }

            return(rectFrameLst);
        }
Пример #3
0
        private void AddYXPouMianToFigure(JDStruc jdstruc, List <SymbolItemStruc> yxpmStrucLst)
        {
            for (int i = 0; i < yxpmStrucLst.Count; i++)
            {
                SymbolItemStruc symbldrawing        = yxpmStrucLst[i];
                LJJSPoint       sybltopZuoBiaoPt    = ZuoBiaoOper.GetJSZuoBiaoPt(jdstruc.JDPtStart, symbldrawing.depthtop, jdstruc.JDtop, FrameDesign.ValueCoordinate);
                LJJSPoint       syblbottomZuoBiaoPt = ZuoBiaoOper.GetJSZuoBiaoPt(jdstruc.JDPtStart, symbldrawing.depthbottom, jdstruc.JDtop, FrameDesign.ValueCoordinate);
                LJJSPoint       syblpos             = ZuoBiaoOper.GetMidPtBetweenTwoPt(sybltopZuoBiaoPt, syblbottomZuoBiaoPt);

                for (int j = 0; j < symbldrawing.sybolcodelist.Count; j++)
                {
                    double xscale   = 1;
                    double yscale   = 1;
                    string syblcode = symbldrawing.sybolcodelist[j].Trim();
                    if (syblcode != "n" && syblcode != "")
                    {
                        SymbolCodeClass sybloper = (SymbolCodeClass)FillSymbolCode.SymbolCodeClassHt[syblcode];
                        if (null == sybloper)
                        {
                            continue;
                        }
                        if (sybloper.ifZXEnlarge)
                        {
                            yscale = Math.Abs(sybltopZuoBiaoPt.YValue - syblbottomZuoBiaoPt.YValue);
                        }
                        else if (sybloper.ifFill)
                        {
                            xscale = sybloper.symbolWidth;
                            yscale = Math.Abs(sybltopZuoBiaoPt.YValue - syblbottomZuoBiaoPt.YValue);
                        }
                        if (sybloper.symbolWidth > 0)
                        {
                            Rect.AddBlackRect(syblbottomZuoBiaoPt, Math.Abs(syblbottomZuoBiaoPt.YValue - sybltopZuoBiaoPt.YValue), sybloper.symbolWidth, 0, new DrawDirection(1, 1));
                        }

                        SymbolAdd.InsertBlock(sybloper.symbolcode, xscale, yscale, syblpos);
                    }
                }
            }
        }
Пример #4
0
 public static void AddSunStyleRect(LJJSPoint ptBase, double SunFrameHeigh, double SunFrameWidth, double lineWidth)
 {
     Rect.AddBlackRect(ptBase, SunFrameHeigh, SunFrameWidth, lineWidth, new DrawDirection(1, 1));
     Line.BuildCommonHorLineByLayer(new LJJSPoint(ptBase.XValue, ptBase.YValue + SunFrameHeigh * 0.5), SunFrameWidth, lineWidth, 1);
     //(new LJJSPoint(ptBase.XValue, ptBase.YValue + SunFrameHeigh * 0.5), SunFrameWidth, lineWidth);
 }