コード例 #1
0
 public virtual void PersistantDraw(IPersistantDrawer drawer)
 {
     StationOffsetElevation soe1 = null;
      StationOffsetElevation soe2 = new StationOffsetElevation();
      var drawPoints = getOutsideEdgeDrawPoints();
      if (null == drawPoints) return;
      foreach (var sta2 in drawPoints)
      {
     soe2 = this.getOutsideEdgeStationOffsetElevation(sta2);
     if (soe1 != null)
     {
        Double aveStation = (sta2.trueStation + soe1.station) / 2.0;
        HorizontalAlignmentBase HAelement =
           this.GoverningAlignment.GetElementByStation(aveStation);
        HAelement.drawHorizontalByOffset(drawer, soe1, soe2);
     }
     soe1 = soe2;
      }
 }
コード例 #2
0
 public void PersistantDraw(IPersistantDrawer drawer)
 {
     foreach (var pglGrouping in allPGLgroupings)
      {
     pglGrouping.PersistantDraw(drawer);
      }
 }
コード例 #3
0
        public void PersistantDraw(IPersistantDrawer drawer)
        {
            if (null != this.thePGLoffsetRibbon)
            this.thePGLoffsetRibbon.PersistantDraw(drawer);

             if (null != insideRibbons)
             {
            foreach (var aRibbon in insideRibbons)
            {
               aRibbon.PersistantDraw(drawer);
            }
             }

             if (null != outsideRibbons)
             {
            foreach (var aRibbon in outsideRibbons)
            {
               aRibbon.PersistantDraw(drawer);
            }
             }
        }