1414 < link rel ="stylesheet " type ="text/css " href ="file:///android_asset/override.css "/>
1515</ head >
1616< body >
17- < h1 > OmnidirectionalSightline Tutorial</ h1 >
17+ < h1 > Line Of Sight Tutorial</ h1 >
1818< p >
19- Demonstrates how to create an OmnidirectionalSightline and add it to the globe. An OmnidirectionalSightline provides
20- a visual area representation of line of sight from a provided position . Areas occluded by terrain will appear in a
21- different color than areas visible to the provided point.
19+ Demonstrates how to create an OmnidirectionalSightline and add it to the globe to visualize line of sight. An
20+ OmnidirectionalSightline provides a visual area representation of line of sight from a provided origin . Areas
21+ occluded by terrain from line of sight will appear in a different color than areas visible to the provided point.
2222</ p >
2323< p >
2424 This tutorial demonstrates the creation of an OmnidirectionSightline. In addition to the OmnidirectionalSightline, a
2525 Placemark indicating the position of the sightline origin is added to provide visual context.
2626</ p >
2727< p >
2828 The regions colored green indicate they are visible from the position provided to the OmnidirectionSightline.
29- Regions colored gray are occluded by terrain from the provided position. This tutorial uses a sightline range of
30- 10,000 meters.
29+ Regions colored gray are occluded by terrain. This tutorial uses a sightline range of 10,000 meters.
3130</ p >
3231< h2 > Example</ h2 >
3332< h3 > OmnidirectionalSightlineFragment.java</ h3 >
@@ -44,7 +43,7 @@ <h3>OmnidirectionalSightlineFragment.java</h3>
4443 // Let the super class (BasicGlobeFragment) do the creation
4544 WorldWindow wwd = super.createWorldWindow();
4645
47- // Specify the sightline origin position
46+ // Specify the sightline position, which is the origin of the line of sight calculation
4847 Position position = new Position(46.230, -122.190, 2500.0);
4948 // Specify the range of the sightline (meters)
5049 double range = 10000.0;
@@ -57,7 +56,7 @@ <h3>OmnidirectionalSightlineFragment.java</h3>
5756
5857 // Create the sightline
5958 OmnidirectionalSightline sightline = new OmnidirectionalSightline(position, range);
60- // Add the attributes
59+ // Set the attributes
6160 sightline.setAttributes(visibleAttributes);
6261 sightline.setOccludeAttributes(occludedAttributes);
6362
@@ -66,7 +65,7 @@ <h3>OmnidirectionalSightlineFragment.java</h3>
6665 sightlineLayer.addRenderable(sightline);
6766 wwd.getLayers().addLayer(sightlineLayer);
6867
69- // Create a Placemark to help visualize the position of the sightline
68+ // Create a Placemark to visualize the position of the sightline
7069 this.createPlacemark(position, sightlineLayer);
7170
7271 // Position the camera to look at the line of site terrain coverage
0 commit comments