@Test public void testBasicReadAsciiFormat() throws Exception { boolean result = classUnderTest.doLoadData(ASCII_FILE, parentLayer); assertBasicProperties(result); }
@Override protected boolean doLoadData(URL url, VolumeLayer layer) { this.layer = layer; Object source = null; try { source = openSource(url); if (source == null) { throw new IOException("Unable to load SGrid from URL " + url); } parseHeaderFile(source); validatePaintedPropertyAvailable(); validateDataFileSpecified(); validateNonZeroDimensions(); readSGridData(source); validateDataFileLoadedCorrectly(); correctForReversedAxes(); } catch (IOException e) { e.printStackTrace(); return false; } finally { closeSource(source); } layer.dataAvailable(this); return true; }
SGridVolumeDataProvider extends AbstractVolumeDataProvider { @Override protected boolean doLoadData(URL url, VolumeLayer layer) { this.layer = layer; Object source = null; try { source = openSource(url); if (source == null) { throw new IOException("Unable to load SGrid from URL " + url); } parseHeaderFile(source); validatePaintedPropertyAvailable(); validateDataFileSpecified(); validateNonZeroDimensions(); readSGridData(source); validateDataFileLoadedCorrectly(); correctForReversedAxes(); } catch (IOException e) { e.printStackTrace(); return false; } finally { closeSource(source); } layer.dataAvailable(this); return true; } }
SGridVolumeDataProvider extends AbstractVolumeDataProvider { @Override protected boolean doLoadData(URL url, VolumeLayer layer) { this.layer = layer; Object source = null; try { source = openSource(url); if (source == null) { throw new IOException("Unable to load SGrid from URL " + url); } parseHeaderFile(source); validatePaintedPropertyAvailable(); validateDataFileSpecified(); validateNonZeroDimensions(); readSGridData(source); validateDataFileLoadedCorrectly(); correctForReversedAxes(); } catch (IOException e) { e.printStackTrace(); return false; } finally { closeSource(source); } layer.dataAvailable(this); return true; }  }
SGridVolumeDataProvider extends AbstractVolumeDataProvider { @Override protected boolean doLoadData(URL url, VolumeLayer layer) { this.layer = layer; Object source = null; try { source = openSource(url); if (source == null) { throw new IOException("Unable to load SGrid from URL " + url); } parseHeaderFile(source); validatePaintedPropertyAvailable(); validateDataFileSpecified(); validateNonZeroDimensions(); readSGridData(source); validateDataFileLoadedCorrectly(); correctForReversedAxes(); } catch (IOException e) { e.printStackTrace(); return false; } finally { closeSource(source); } layer.dataAvailable(this); return true; }  @Override double getSliceElevationPercent(double slice); @Override double getElevationPercentSlice(double elevationPercent); @Override int getZSubsamples(); }
SGridVolumeDataProvider extends AbstractVolumeDataProvider { @Override protected boolean doLoadData(URL url, VolumeLayer layer) { this.layer = layer; Object source = null; try { source = openSource(url); if (source == null) { throw new IOException("Unable to load SGrid from URL " + url); } parseHeaderFile(source); validatePaintedPropertyAvailable(); validateDataFileSpecified(); validateNonZeroDimensions(); readSGridData(source); validateDataFileLoadedCorrectly(); correctForReversedAxes(); } catch (IOException e) { e.printStackTrace(); return false; } finally { closeSource(source); } layer.dataAvailable(this); return true; }  @Override double getSliceElevationPercent(double slice); @Override double getElevationPercentSlice(double elevationPercent); @Override int getZSubsamples();  }