private ProgGraphicModel assignValue(GeoDataGridViewModel raw)
 {
     ProgGraphicModel model = null;
     try
     {
         model = new ProgGraphicModel()
             {
                 ID = raw.RecordID,
                 Name = raw.Name,
                 GeoType = raw.GeoType,
                 RowBegin = raw.Row1,
                 RowEnd = raw.Row2,
                 ColBegin = raw.Col1,
                 ColEnd = raw.Col2,
                 StartPhi = (raw.StartPhi),
                 EndPhi = raw.EndPhi,
                 PointerOrder = raw.PointOrder,
                 Distance = raw.Distance,
                 IsExportItem = raw.IsExportItem,
             };
     }
     catch (Exception ex)
     {
         Hanbo.Log.LogManager.Error(ex);
     }
     return model;
 }
 public ROIProgDistance(ProgGraphicModel model)
 {
     _model = model;
     init();
 }
        private double _rawCenterRow; //中點 y 的座標

        #endregion Fields

        #region Constructors

        public ROIProgSymmetryLine(ProgGraphicModel model)
        {
            _model = model;
            init();
        }
예제 #4
0
        private double _rawCenterRow; //中點 y 的座標,畫角度的起始端點

        #endregion Fields

        #region Constructors

        public ROIProgAngle(ProgGraphicModel model)
        {
            _model = model;
            init();
        }
예제 #5
0
        private double _rawPointRow; //點 y 的座標

        #endregion Fields

        #region Constructors

        public ROIProgPoint(ProgGraphicModel model)
        {
            _model = model;
            init();
        }
 public ROIProgDistance ConvertToROIProgDistance(ProgGraphicModel raw)
 {
     ROIProgDistance model = new ROIProgDistance(raw);
     return model;
 }
 public ROIProgCircle ConvertToROIProgCircle(ProgGraphicModel raw)
 {
     ROIProgCircle model = new ROIProgCircle(raw);
     return model;
 }