Exemple #1
0
        private void  AddCurvesHasHatch(JDStruc jdstruc, Hashtable drawht)
        {
            if (null != verBoundaryLineLst && verBoundaryLineLst.Count > 0)
            {
                CurveHatch curveHatch = new CurveHatch(jdstruc, keDuChiItem, this.lineRoadEnvironment.LineRoadWidth);

                List <LJJSPoint> drawPtCol = curveHatch.GetDrawZuoPtCol(drawht, verBoundaryLineLst[0].XValue);

                curveHatch.CurvesBuildExec(drawPtCol, itemDesignStruc.ItemHatch, verBoundaryLineLst);
            }
        }
        private void AddPerYYWZHatch(string yYWZ, double gWJS, LJJSPoint ptStart, double jdTop)
        {
            double gwjsZuoBiaoY = ZuoBiaoOper.GetJSZongZBValue(ptStart.YValue, gWJS, jdTop, FrameDesign.ValueCoordinate);
            string subsql       = this.itemDesignStruc.ClosedArea_Field_YYWZ + @"='" + yYWZ + @"'";

            if (null != kdcItem)
            {
                List <LJJSPoint> sfslst             = GetClosedAreaDRS(kdcItem, subsql, gwjsZuoBiaoY, ptStart);
                List <LJJSPoint> HorBoundaryLineLst = new List <LJJSPoint>();
                HorBoundaryLineLst.Add(new LJJSPoint(ptStart.XValue, gwjsZuoBiaoY));
                HorBoundaryLineLst.Add(new LJJSPoint(ptStart.XValue + this.lineRoadEnvironment.LineRoadWidth, gwjsZuoBiaoY));
                CurveHatch curveHatch = new CurveHatch(kdcItem, this.lineRoadEnvironment.LineRoadWidth);
                curveHatch.CurvesBuildExec(sfslst, itemDesignStruc.HatchDic[0], HorBoundaryLineLst);
            }
        }
Exemple #3
0
        private void AddMultiHatchCurve(JDStruc jdStruc, Hashtable drawht)
        {
            if (null == kdcItem)
            {
                return;
            }
            if (null == drawht || drawht.Count < 1)
            {
                return;
            }
            CurveHatch curveHatch = new CurveHatch(jdStruc, kdcItem, this.lineRoadEnvironment.LineRoadWidth);

            if (null == firstVerBoundaryLineLst || firstVerBoundaryLineLst.Count < 2)
            {
                return;
            }
            List <LJJSPoint> drawPtCol = curveHatch.GetDrawZuoPtCol(drawht, firstVerBoundaryLineLst[0].XValue);

            if (null != itemDesignStruc.HatchOne && CurveHatch.TestBoundaryCurve(firstVerBoundaryLineLst))
            {
                if (null != drawPtCol && drawPtCol.Count > 0)
                {
                    curveHatch.CurvesBuildExec(drawPtCol, itemDesignStruc.HatchOne, firstVerBoundaryLineLst);
                }
            }

            if (null != itemDesignStruc.HatchTwo && itemDesignStruc.FenJieValueOne > 0 && CurveHatch.TestBoundaryCurve(secondVerBoundaryLineLst))
            {
                List <LJJSPoint> drawPXcol = curveHatch.GetInterSectCol(drawPtCol, secondVerBoundaryLineLst[0], secondVerBoundaryLineLst[1], kdcItem.KDir);
                if (null != drawPXcol && drawPXcol.Count > 0)
                {
                    curveHatch.CurvesBuildExec(drawPXcol, itemDesignStruc.HatchTwo, secondVerBoundaryLineLst);
                }
            }
            if (null != itemDesignStruc.HatchThree && itemDesignStruc.FenJieValueTwo > 0 && CurveHatch.TestBoundaryCurve(thirdVerBoundaryLineLst))
            {
                List <LJJSPoint> drawPXcol = curveHatch.GetInterSectCol(drawPtCol, thirdVerBoundaryLineLst[0], thirdVerBoundaryLineLst[1], kdcItem.KDir);
                if (null != drawPXcol && drawPXcol.Count > 0)
                {
                    curveHatch.CurvesBuildExec(drawPXcol, itemDesignStruc.HatchThree, thirdVerBoundaryLineLst);
                }
            }
        }