X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fthreedee%2FJava3DWindow.java;h=cfac9afabf1798d87e33f199371ed98ba62fb743;hp=1671607d5e9c1a417b4b75e878aef5aa9465eec4;hb=7f5ed2be62905bd37717376dc22d09e5ea7edb4d;hpb=b361869e590bbca32664c16ac24d6296926594a5 diff --git a/tim/prune/threedee/Java3DWindow.java b/tim/prune/threedee/Java3DWindow.java index 1671607..cfac9af 100644 --- a/tim/prune/threedee/Java3DWindow.java +++ b/tim/prune/threedee/Java3DWindow.java @@ -58,7 +58,7 @@ public class Java3DWindow implements ThreeDWindow private JFrame _frame = null; private ThreeDModel _model = null; private OrbitBehavior _orbit = null; - private double _altFactor = 50.0; + private double _altFactor = 5.0; /** only prompt about big track size once */ private static boolean TRACK_SIZE_WARNING_GIVEN = false; @@ -68,6 +68,7 @@ public class Java3DWindow implements ThreeDWindow private static final double INITIAL_X_ROTATION = 15.0; private static final String CARDINALS_FONT = "Arial"; private static final int MAX_TRACK_SIZE = 2500; // threshold for warning + private static final double MODEL_SCALE_FACTOR = 20.0; /** @@ -127,9 +128,8 @@ public class Java3DWindow implements ThreeDWindow Object[] buttonTexts = {I18nManager.getText("button.continue"), I18nManager.getText("button.cancel")}; if (_track.getNumPoints() > MAX_TRACK_SIZE && !TRACK_SIZE_WARNING_GIVEN) { - // FIXME: Change text reference from exportpov to java3d if (JOptionPane.showOptionDialog(_parentFrame, - I18nManager.getText("dialog.exportpov.warningtracksize"), + I18nManager.getText("dialog.3d.warningtracksize"), I18nManager.getText("function.show3d"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null, buttonTexts, buttonTexts[1]) == JOptionPane.OK_OPTION) @@ -191,18 +191,7 @@ public class Java3DWindow implements ThreeDWindow } }}); panel.add(svgButton); - // Display coordinates of lat/long lines of 3d graph in separate dialog - JButton showLinesButton = new JButton(I18nManager.getText("button.showlines")); - showLinesButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) - { - double[] latLines = _model.getLatitudeLines(); - double[] lonLines = _model.getLongitudeLines(); - LineDialog dialog = new LineDialog(_frame, latLines, lonLines); - dialog.showDialog(); - } - }); - panel.add(showLinesButton); + // Close button JButton closeButton = new JButton(I18nManager.getText("button.close")); closeButton.addActionListener(new ActionListener() @@ -305,9 +294,6 @@ public class Java3DWindow implements ThreeDWindow _model.setAltitudeFactor(_altFactor); _model.scale(); - // Lat/Long lines - objTrans.addChild(createLatLongs(_model)); - // Add points to model objTrans.addChild(createDataPoints(_model)); @@ -360,70 +346,6 @@ public class Java3DWindow implements ThreeDWindow } - /** - * Create all the latitude and longitude lines on the base plane - * @param inModel model containing data - * @return Group object containing cylinders for lat and long lines - */ - private static Group createLatLongs(ThreeDModel inModel) - { - Group group = new Group(); - int numlines = inModel.getLatitudeLines().length; - for (int i=0; i