worldwind

Poll for pressed buttons in Java

自作多情 提交于 2019-12-11 10:06:15
问题 I have a WorldWind application build based on the Java SDK. It has a great event handler for detecting when you click on objects, but I've run into a snag. While I can click on and select individual objects, I can't determine if the user is pressing the control key while they click (if they want to select multiple objects). I can implement event handlers for both the mouse and the keyboard, but I can't for the life of me figure out how to tie the two together. How could I make my mouse

Adding a custom component to NetBeans GUI builder! (WorldWind)

為{幸葍}努か 提交于 2019-12-10 16:27:32
问题 Ok, I'm trying to add the World Wind globe from NASA to a GUI window created by NetBeans GUI builder. My sample code instantiates its own window, and the GUI builder would like me not to edit the areas necessary to slip this in :) I'd write my own but this is part of a NetBeans platform app and contains code and annotations Im not prepared to handle yet. I am not sure how to accomplish this. Here is the sample code I would like in the window: public class WorldWindTest { public static void

Worldwind PointPlacemark Pitch

天大地大妈咪最大 提交于 2019-12-10 13:17:28
问题 I'm trying to figure out why the setPitch in the PointPlacemarkAttributes does not seem to work correctly. I believe this JOGL code in PointPlacemark.java is where things are going wrong: Double heading = getActiveAttributes().getHeading(); Double pitch = getActiveAttributes().getPitch(); // Adjust heading to be relative to globe or screen if (heading != null) { if (AVKey.RELATIVE_TO_GLOBE.equals(this.getActiveAttributes().getHeadingReference())) heading = dc.getView().getHeading().degrees -

WorldWind PointPlacemark Heading

你离开我真会死。 提交于 2019-12-09 10:58:48
问题 In NASA WorldWind Java, I'm using PointPlacemark to represent an image because it stays the same size regardless of zoom level. The problem is that I want to set the heading on the Point Placemark and have it stay on that compass heading even when the camera is tilted. It works exactly as I want when viewing an untilted globe, but when I tilt, the placemark continues to face the screen instead of tilting with the globe, which causes it to act strange. Here is a GIF illustrating what I'm

Draw order of PointPlacemarks

瘦欲@ 提交于 2019-12-08 10:21:37
问题 Is there a way to fix the drawing order of PointPlacemarks in World Wind? Even in the Placemarks example the ordering of Placemark B and the Audio Placemark can change just by moving the mouse at certain zoom levels: So far I have tried: Adding PointPlacemarks to separate layers Using RenderableLayer.setRenderables rather than RenderableLayer.addRenderable Related question on World Wind forums 回答1: Hacky solution (requires modifying World Wind source code) In gov.nasa.worldwind.render

WorldWind Java on a Netbeans Platform TopComponent

試著忘記壹切 提交于 2019-12-08 02:29:16
问题 I'm trying to add a layer to WorldWind Java (version 1.2) situated on a Netbeans Platform TopComponent (using netbeans 7.0). The TopComponent is in Editor mode, and for WWJ I use WorldWindowGLCanvas which is the single swing component on the TopComponent and it is placed with BorderLayout.CENTER. If I add the layers using the constructor all works well, I can see the layers fine. If I add the layer using swing controls (eg a button) the layer gets added to the layer list but it is not

How to use World Wind Java SDK offline

二次信任 提交于 2019-12-07 02:28:52
问题 I'm trying to use World Wind, it is really good and very easy to edit. But in my condition, the application is needed to be run offline. So we can run the WorlWind offline ? http://worldwind.arc.nasa.gov/java/ 回答1: You can set gov.nasa.worldwind.avkey.OfflineMode in the WorldWind properties file. This will stop WorldWind from trying to download tiles, and it will rely on the local cache only. However, you may need to populate the local cache either by browsing over a particular area of

WorldWind Java on a Netbeans Platform TopComponent

懵懂的女人 提交于 2019-12-06 11:57:53
I'm trying to add a layer to WorldWind Java (version 1.2) situated on a Netbeans Platform TopComponent (using netbeans 7.0). The TopComponent is in Editor mode, and for WWJ I use WorldWindowGLCanvas which is the single swing component on the TopComponent and it is placed with BorderLayout.CENTER. If I add the layers using the constructor all works well, I can see the layers fine. If I add the layer using swing controls (eg a button) the layer gets added to the layer list but it is not rendered. This happens for both WMS and Renderable layer. Same process on a pure swing application works fine

Example WorldWind application encounters AbstractMethodError when started

流过昼夜 提交于 2019-12-05 03:58:40
I've been tasked with creating an application using the WorldWind API, and to familiarize myself with the API, I tried running the "HelloWorldWind" example app. When I do, I get the following error stack: Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V at gov.nasa.worldwind.util.WWXML.createDocumentBuilder(WWXML.java:61) at gov.nasa.worldwind.util.WWXML.openDocumentStream(WWXML.java:236) at gov.nasa.worldwind.util.WWXML.openDocumentStream(WWXML.java:223) at gov.nasa.worldwind.util.WWXML.openDocumentFile(WWXML

Example WorldWind application encounters AbstractMethodError when started

元气小坏坏 提交于 2019-12-01 00:33:34
问题 I've been tasked with creating an application using the WorldWind API, and to familiarize myself with the API, I tried running the "HelloWorldWind" example app. When I do, I get the following error stack: Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V at gov.nasa.worldwind.util.WWXML.createDocumentBuilder(WWXML.java:61) at gov.nasa.worldwind.util.WWXML.openDocumentStream(WWXML.java:236) at gov.nasa.worldwind