예제 #1
0
        private void writePx(MapWinGIS.Grid gr, MapWinGIS.GridDataType grType,
                             GridPixel pix, object val, MapWinGIS.ICallback cback)
        {
            switch (grType)
            {
            case GridDataType.ShortDataType:
                short v1 = Convert.ToInt16(val);
                gr.set_Value(pix.col, pix.row, v1);
                break;

            case GridDataType.LongDataType:
                int v2 = Convert.ToInt32(val);
                gr.set_Value(pix.col, pix.row, v2);
                break;

            case GridDataType.FloatDataType:
                float v3 = Convert.ToSingle(val);
                gr.set_Value(pix.col, pix.row, v3);
                break;

            case GridDataType.DoubleDataType:
                double v4 = Convert.ToDouble(val);
                gr.set_Value(pix.col, pix.row, v4);
                break;

            default:
                reportError("the grid data type " + grType.ToString() + "is not supported.", cback);
                break;
            }
        }
예제 #2
0
파일: LineEdge.cs 프로젝트: qlands/GOBLET
 public LineEdge(GridPixel startPoint, GridPixel endPoint)
 {
     this.Reset(startPoint.col, startPoint.row, endPoint.col, endPoint.row);
 }
예제 #3
0
 public LineEdge(GridPixel startPoint, GridPixel endPoint)
 {
     this.Reset(startPoint.col, startPoint.row, endPoint.col, endPoint.row);
 }
예제 #4
0
파일: Rasterizer.cs 프로젝트: qlands/GOBLET
 private void writePx(MapWinGIS.Grid gr, MapWinGIS.GridDataType grType,
     GridPixel pix, object val, MapWinGIS.ICallback cback)
 {
     switch (grType)
     {
     case GridDataType.ShortDataType:
         short v1 = Convert.ToInt16(val);
         gr.set_Value(pix.col, pix.row, v1);
         break;
     case GridDataType.LongDataType:
         int v2 = Convert.ToInt32(val);
         gr.set_Value(pix.col, pix.row, v2);
         break;
     case GridDataType.FloatDataType:
         float v3 = Convert.ToSingle(val);
         gr.set_Value(pix.col, pix.row, v3);
         break;
     case GridDataType.DoubleDataType:
         double v4 = Convert.ToDouble(val);
         gr.set_Value(pix.col, pix.row, v4);
         break;
     default:
         reportError("the grid data type " + grType.ToString() + "is not supported.", cback);
         break;
     }
 }