@Test public void testAppliesSingleExaggerationAt0() { classToBeTested.addExaggerator(new ElevationExaggerationImpl(2.0, 0.0)); double[] inputs = new double[]{44.4, 0.0, -0.5}; double[] expect = new double[]{88.8, 0.0, -0.5}; assertExaggerationsCorrect(inputs, expect); }
public void addExaggerator(ElevationExaggeration exaggerator) { if (exaggerator == null) { return; } doAddExaggerator(exaggerator); recalculateExaggerationWindows(); }
VerticalExaggerationElevationModel extends DetailedElevationModel implements ElevationExaggeration.ChangeListener { public void addExaggerator(ElevationExaggeration exaggerator) { if (exaggerator == null) { return; } doAddExaggerator(exaggerator); recalculateExaggerationWindows(); } }
VerticalExaggerationElevationModel extends DetailedElevationModel implements ElevationExaggeration.ChangeListener { public void addExaggerator(ElevationExaggeration exaggerator) { if (exaggerator == null) { return; } doAddExaggerator(exaggerator); recalculateExaggerationWindows(); } VerticalExaggerationElevationModel(ElevationModel source); }
VerticalExaggerationElevationModel extends DetailedElevationModel implements ElevationExaggeration.ChangeListener { public void addExaggerator(ElevationExaggeration exaggerator) { if (exaggerator == null) { return; } doAddExaggerator(exaggerator); recalculateExaggerationWindows(); } VerticalExaggerationElevationModel(ElevationModel source); void addExaggerator(ElevationExaggeration exaggerator); void addExaggerators(Collection<ElevationExaggeration> exaggerators); void removeExaggerator(ElevationExaggeration exaggerator); void removeExaggerator(double boundary); boolean containsExaggeratorAtBoundary(double boundary); ElevationExaggeration getExaggeratorForElevation(double elevation); List<ElevationExaggeration> getExaggerators(); double getGlobalOffset(); void setGlobalOffset(double offset); @Override double getMaxElevation(); @Override double getMinElevation(); @Override double[] getExtremeElevations(Angle latitude, Angle longitude); @Override double[] getExtremeElevations(Sector sector); @Override double getElevations(Sector sector, List<? extends LatLon> latlons, double targetResolution, double[] buffer); @Override double getUnmappedElevations(Sector sector, List<? extends LatLon> latlons, double targetResolution, double[] buffer); @Override double getUnmappedElevation(Angle latitude, Angle longitude); double getUnexaggeratedElevation(Angle latitude, Angle longitude); @Override void exaggerationChanged(ElevationExaggeration exaggeration); }
VerticalExaggerationElevationModel extends DetailedElevationModel implements ElevationExaggeration.ChangeListener { public void addExaggerator(ElevationExaggeration exaggerator) { if (exaggerator == null) { return; } doAddExaggerator(exaggerator); recalculateExaggerationWindows(); } VerticalExaggerationElevationModel(ElevationModel source); void addExaggerator(ElevationExaggeration exaggerator); void addExaggerators(Collection<ElevationExaggeration> exaggerators); void removeExaggerator(ElevationExaggeration exaggerator); void removeExaggerator(double boundary); boolean containsExaggeratorAtBoundary(double boundary); ElevationExaggeration getExaggeratorForElevation(double elevation); List<ElevationExaggeration> getExaggerators(); double getGlobalOffset(); void setGlobalOffset(double offset); @Override double getMaxElevation(); @Override double getMinElevation(); @Override double[] getExtremeElevations(Angle latitude, Angle longitude); @Override double[] getExtremeElevations(Sector sector); @Override double getElevations(Sector sector, List<? extends LatLon> latlons, double targetResolution, double[] buffer); @Override double getUnmappedElevations(Sector sector, List<? extends LatLon> latlons, double targetResolution, double[] buffer); @Override double getUnmappedElevation(Angle latitude, Angle longitude); double getUnexaggeratedElevation(Angle latitude, Angle longitude); @Override void exaggerationChanged(ElevationExaggeration exaggeration);  }