]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/threedee/Java3DWindow.java
Version 19, May 2018
[GpsPrune.git] / tim / prune / threedee / Java3DWindow.java
index fdda0fcc4f53de305e4177866ea8132c09249a97..579245db62eb2d07a08d005529f234ea13fa4bb4 100644 (file)
@@ -227,17 +227,6 @@ public class Java3DWindow implements ThreeDWindow
                                }
                        }});
                panel.add(povButton);
-               // Add button for exporting svg
-               JButton svgButton = new JButton(I18nManager.getText("function.exportsvg"));
-               svgButton.addActionListener(new ActionListener() {
-                       public void actionPerformed(ActionEvent e)
-                       {
-                               if (_orbit != null) {
-                                       callbackRender(FunctionLibrary.FUNCTION_SVGEXPORT);
-                               }
-                       }});
-               panel.add(svgButton);
-
                // Close button
                JButton closeButton = new JButton(I18nManager.getText("button.close"));
                closeButton.addActionListener(new ActionListener()
@@ -614,7 +603,7 @@ public class Java3DWindow implements ThreeDWindow
                Appearance tAppearance = new Appearance();
                if (inBaseImage != null)
                {
-                       gi.setTextureCoordinateParams(1,  2); // one coord set of two dimensions
+                       gi.setTextureCoordinateParams(1, 2); // one coord set of two dimensions
                        gi.setTextureCoordinates(0, inHelper.getTextureCoordinates());
                        Texture mapImage = new TextureLoader(inBaseImage.getImage()).getTexture();
                        tAppearance.setTexture(mapImage);
@@ -641,7 +630,7 @@ public class Java3DWindow implements ThreeDWindow
 
        /**
         * Calculate the angles and call them back to the app
-        * @param inFunction function to call (either pov or svg)
+        * @param inFunction function to call for export
         */
        private void callbackRender(Export3dFunction inFunction)
        {
@@ -664,8 +653,8 @@ public class Java3DWindow implements ThreeDWindow
                // Give the settings to the rendering function
                inFunction.setCameraCoordinates(result.x, result.y, result.z);
                inFunction.setAltitudeExaggeration(_altFactor);
-               inFunction.setTerrainDefinition(_terrainDefinition); // ignored by svg, used by pov
-               inFunction.setImageDefinition(_imageDefinition);     // ignored by svg, used by pov
+               inFunction.setTerrainDefinition(_terrainDefinition);
+               inFunction.setImageDefinition(_imageDefinition);
 
                inFunction.begin();
        }