Пример #1
0
 public static IRasterDriver createDriver(INyARGrayscaleRaster i_ref_raster)
     throws NyARException {
   switch (i_ref_raster.getBufferType()) {
     case NyARBufferType.INT1D_GRAY_8:
     case NyARBufferType.INT1D_BIN_8:
       return new NyARContourPickup_BIN_GS8(i_ref_raster);
     default:
       if (i_ref_raster instanceof NyARContourPickup_GsReader) {
         return new NyARContourPickup_GsReader((INyARGrayscaleRaster) i_ref_raster);
       }
       break;
   }
   throw new NyARException();
 }