Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ivac2:firdef_map_linestrip [2014/04/13 12:32]
filip.jonckers
ivac2:firdef_map_linestrip [2017/04/08 14:27] (current)
Line 7: Line 7:
 ^Element|linestrip|| ^Element|linestrip||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|stipple|integer|stipple ​line bitwise ​pattern ​definition|+|pattern|double array|line pattern ​described in an array of doubles|
 |width|float|line width in pixels| |width|float|line width in pixels|
 |color|string|color id name| |color|string|color id name|
Line 17: Line 17:
  
 {{:​ivac2:​firdef:​firdef_opengl_linestrip.png?​|}} {{:​ivac2:​firdef:​firdef_opengl_linestrip.png?​|}}
 +
 +
 +The drawing can be written as:
 +
 +<code XML>
 +  <​linestrip 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" />
 +  </​linestrip>​
 +</​code>​
  
  
Line 28: Line 40:
  
 ===== example ===== ===== example =====
 +
 +The following code draws a rectangle (the first point is repeated at the end to close the loop):
  
 <code XML> <code XML>
-    ​<​linestrip>​ +  ​<​linestrip ​color="​myPredefinedColor"​
-        <​point ​x="-0.603677" ​y="-0.132624"/>​ +      <​point ​lat="N0504413" ​lon="E0043108"/>​ 
-        <​point ​x="-0.601415" ​y="-0.132565"/>​ +      <​point ​lat="N0504421" ​lon="E0042601"/>​ 
-        <​point ​x="-0.601393" ​y="-0.133375"/>​ +      <​point ​lat="N0504528" ​lon="E0042119"/>​ 
-        <​point ​x="-0.603656" ​y="-0.133434"/>​ +      <​point ​lat="N0504730" ​lon="E0041718"/>​ 
-        <​point ​x="-0.603677" ​y="-0.132624"/>​ +      <​point ​lat="N0504413" ​lon="E0043108"/>​ 
-    </​linestrip>​+  </​linestrip>​
 </​code>​ </​code>​