Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ivac2:firdef_map_line [2014/04/19 22:23]
filip.jonckers
ivac2:firdef_map_line [2017/04/08 14:27]
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] 
  
-====== line element ====== 
- 
-Use a line element to draw a single point on the map.  You might remember this one as the only way to draw objects in IVAC v1 sectorfiles. 
- 
-^Element|line|| 
-^Attribute^Format^Remarks^ 
-|stipple|integer|stipple line bitwise pattern definition| 
-|width|float|line width in pixels| 
-|color|string|color id name| 
-|r|byte|color RGB value  (0-255)| 
-|g|byte|color RGB value  (0-255)| 
-|b|byte|color RGB value  (0-255)| 
- 
- 
-Each line consists of an even amount of <​point>​ elements where the first <​point>​ is the start and the second <​point>​ element is the end of the line to draw. 
- 
-{{:​ivac2:​firdef:​firdef_opengl_line.png?​|}} 
- 
- 
-This drawing can be written as: 
- 
-<code XML> 
-  <line color="​myPredefinedColor">​ 
-      <point x="v0 x" y="v0 y" /> 
-      <point x="v1 x" y="v1 y" /> 
- 
-      <point x="v2 x" y="v2 y" /> 
-      <point x="v3 x" y="v3 y" /> 
-  </​line>​ 
-</​code>​ 
- 
- 
- 
- 
-===== Example ===== 
- 
-The following code draws a square: 
- 
-<code XML> 
-  <line color="​myPredefinedColor">​ 
-      <point lat="​N0504413"​ lon="​E0043108"/>​ 
-      <point lat="​N0504421"​ lon="​E0042601"/>​ 
- 
-      <point lat="​N0504421"​ lon="​E0042601"/>​ 
-      <point lat="​N0504528"​ lon="​E0042119"/>​ 
- 
-      <point lat="​N0504528"​ lon="​E0042119"/>​ 
-      <point lat="​N0504730"​ lon="​E0041718"/>​ 
- 
-      <point lat="​N0504730"​ lon="​E0041718"/>​ 
-      <point lat="​N0504413"​ lon="​E0043108"/>​ 
-  </​line>​ 
-</​code>​