コード例 #1
0
 public LineRoadSurface(LineRoadDrawingModel lineRoadDrawingModel)
 {
     _lineRoadDrawingModel = lineRoadDrawingModel;
     _jdCount       = FrameDesign.JdStrLst.Count();
     _ptStart       = _lineRoadDrawingModel.PtStart;
     _lineRoadModel = lineRoadDrawingModel.LineRoadStruc;
     _jdLst         = lineRoadDrawingModel.LineRoadJdLst; //2560-2590 2660-2690
     _lineroadwidth = lineRoadDrawingModel.LineRoadStruc.LineRoadWidth;
 }
コード例 #2
0
 public static LineRoadSurface CreateLRSurfaceInstance(LineRoadDrawingModel lineRoadDrawingModel)
 {
     if (lineRoadDrawingModel.LineRoadStruc.LineRoadStyle.Equals(LineRoadStyle.JingShenLineRoad))
     {
         return(new JSLineRoadSurfaceBuild(lineRoadDrawingModel));
     }
     else
     {
         return(new StandardLineRoadSurfaceBuild(lineRoadDrawingModel));
     }
 }
コード例 #3
0
        public static LineRoadDrawingModel BuildLineRoadDrawingModel(LineRoadDesignClass lineRoadModel, LineRoadControlData lineRoadControlData)
        {
            LineRoadDrawingModel lineRoadDrawingModel = new LineRoadDrawingModel();

            lineRoadDrawingModel.LineRoadStruc = lineRoadModel;
            lineRoadDrawingModel.LineRoadJdLst = lineRoadControlData.LineRoadJDStructLst;
            if (lineRoadControlData.LineRoadJDStructLst.Count() > 0)
            {
                if (null != lineRoadControlData.LineRoadJDStructLst && lineRoadControlData.LineRoadJDStructLst.Count() > 0)
                {
                    lineRoadDrawingModel.PtStart = lineRoadControlData.LineRoadJDStructLst[0].JDPtStart;
                }
            }
            return(lineRoadDrawingModel);
        }
コード例 #4
0
 public StandardLineRoadBuilderImpl(LineRoadDrawingModel lineRoadDrawingModel)
     : base(lineRoadDrawingModel)
 {
 }
コード例 #5
0
 public LineRoadBuilder(LineRoadDrawingModel lineRoadDrawingModel)
 {
     this.lineRoadDrawingModel = lineRoadDrawingModel;
 }
コード例 #6
0
 public JingShenLineRoadBuilderImpl(LineRoadDrawingModel lineRoadDrawingModel)
     : base(lineRoadDrawingModel)
 {
 }
コード例 #7
0
 public JSLineRoadSurfaceBuild(LineRoadDrawingModel lineRoadDrawingModel)
     : base(lineRoadDrawingModel)
 {
 }
コード例 #8
0
 public static LineRoadBuilder CreateLineRoadInstance(LineRoadStyle lineRoadStyle, LineRoadDrawingModel lineRoadDrawingModel)
 {
     //画线道在这里,包括画井深,普通的,还有刻度
     if (lineRoadStyle.Equals(LineRoadStyle.StandardLineRoad))
     {
         return(new StandardLineRoadBuilderImpl(lineRoadDrawingModel));
     }
     else if (lineRoadStyle.Equals(LineRoadStyle.JingShenLineRoad))
     {
         return(new JingShenLineRoadBuilderImpl(lineRoadDrawingModel));
     }
     else
     {
         return(new StandardLineRoadBuilderImpl(lineRoadDrawingModel));
     }
 }
コード例 #9
0
 public StandardLineRoadSurfaceBuild(LineRoadDrawingModel lineRoadDrawingModel)
     : base(lineRoadDrawingModel)
 {
 }