LineFeature

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:49, 26 February 2007 (edit)
Withak (Talk | contribs)
(New page: LineFeature is the renderable used to draw line on the globe from an xml file. ==Options==)
← Previous diff
Revision as of 01:51, 27 February 2007 (edit) (undo)
Withak (Talk | contribs)

Next diff →
Line 1: Line 1:
LineFeature is the renderable used to draw line on the globe from an xml file. LineFeature is the renderable used to draw line on the globe from an xml file.
 +
 +==Example XML==
 +<pre>
 +<?xml version="1.0" encoding="UTF-8" ?>
 +<LayerSet Name="LineFeature test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet.xsd">
 + <LineFeature ShowAtStartup="true">
 + <Name>LF Test</Name>
 + <LineWidth>3.0</LineWidth>
 + <LineString>
 + <posList>
 + 0,0 -10,10 -20,0 0,0
 + </posList>
 + </LineString>
 + <FeatureColor>
 + <Red>0</Red>
 + <Green>255</Green>
 + <Blue>0</Blue>
 + </FeatureColor>
 + <AltitudeMode>ClampedToGround</AltitudeMode>
 + </LineFeature>
 +</LayerSet>
 +</pre>
==Options== ==Options==
 +Discussion of some of the options
 +
 +===posList===
 +This is the list of coordinates in the line. The points can be two-dimensional or three-dimensional. The z-coordinate of three-dimensional points will be interpreted based on AltitudeMode.
 +
 +==Bugs==
 +There are many bugs. The options used in the xml above should work in a relatively predictable manner for drawing lines flat on the surface; experiment with other options at your own risk. The other options are <Extrude>, <OutlineColor>, <MinimumDisplayAltitude>, <MaximumDisplayAltitude>, <DistanceAboveSurface>, <Description>, <Opacity>, and <ImageUri>.

Revision as of 01:51, 27 February 2007

LineFeature is the renderable used to draw line on the globe from an xml file.

Contents

Example XML

<?xml version="1.0" encoding="UTF-8" ?> 
<LayerSet Name="LineFeature test" ShowOnlyOneLayer="false" ShowAtStartup="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerSet.xsd"> 
	<LineFeature ShowAtStartup="true">
		<Name>LF Test</Name>
		<LineWidth>3.0</LineWidth>
		<LineString>
			<posList>
				0,0 -10,10 -20,0 0,0
			</posList>
		</LineString>
		<FeatureColor>
			<Red>0</Red>
			<Green>255</Green>
			<Blue>0</Blue>
		</FeatureColor>
		<AltitudeMode>ClampedToGround</AltitudeMode>
	</LineFeature>
</LayerSet>

Options

Discussion of some of the options

posList

This is the list of coordinates in the line. The points can be two-dimensional or three-dimensional. The z-coordinate of three-dimensional points will be interpreted based on AltitudeMode.

Bugs

There are many bugs. The options used in the xml above should work in a relatively predictable manner for drawing lines flat on the surface; experiment with other options at your own risk. The other options are <Extrude>, <OutlineColor>, <MinimumDisplayAltitude>, <MaximumDisplayAltitude>, <DistanceAboveSurface>, <Description>, <Opacity>, and <ImageUri>.

Personal tools