X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FShowThreeDFunction.java;h=c2e285b3fc2839cecbfc38debacb880817631dce;hb=a6197ddcaac11c0b943183da7d46169742d024af;hp=bbe771988fd640ee673a81b28f8d04c16cc95191;hpb=326f489e36aa7f235bc19409a57bf4955cd50f24;p=GpsPrune.git diff --git a/tim/prune/function/ShowThreeDFunction.java b/tim/prune/function/ShowThreeDFunction.java index bbe7719..c2e285b 100644 --- a/tim/prune/function/ShowThreeDFunction.java +++ b/tim/prune/function/ShowThreeDFunction.java @@ -57,7 +57,7 @@ public class ShowThreeDFunction extends GenericFunction } /** - * Show the help screen + * Begin the function */ public void begin() { @@ -156,8 +156,12 @@ public class ShowThreeDFunction extends GenericFunction */ private void finish() { - // Store exaggeration factor in config + // Store exaggeration factor and grid size in config Config.setConfigInt(Config.KEY_HEIGHT_EXAGGERATION, (int) (_exaggField.getValue() * 100)); + int terrainGridSize = _terrainPanel.getGridSize(); + if (terrainGridSize < 20) {terrainGridSize = 20;} + Config.setConfigInt(Config.KEY_TERRAIN_GRID_SIZE, terrainGridSize); + ThreeDWindow window = WindowFactory.getWindow(_parentFrame); if (window != null) { @@ -169,6 +173,7 @@ public class ShowThreeDFunction extends GenericFunction // Also pass the base image parameters from input dialog window.setBaseImageParameters(_baseImagePanel.getImageDefinition()); window.setTerrainParameters(new TerrainDefinition(_terrainPanel.getUseTerrain(), _terrainPanel.getGridSize())); + window.setDataStatus(_app.getCurrentDataStatus()); window.show(); } catch (ThreeDException e)