コード例 #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;
     }
 }