Differences

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

Link to this comparison view

Next revision
Previous revision
ivac2:firdef_map_circle [2011/12/22 22:04]
filip.jonckers created
ivac2:firdef_map_circle [2017/04/08 14:27] (current)
Line 1: Line 1:
-[[ivac2:​firdef_toc|Back]] 
- 
 ====== circle element ====== ====== circle element ======
  
 +^Root Element|map||
 ^Element|circle|| ^Element|circle||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
 |radius|float|radius of the circle in nautical miles| |radius|float|radius of the circle in nautical miles|
-|segments|integer|number of segments to draw| +|stroke_pattern|double array|line pattern ​described in an array of doubles
-|stipple|integer|stipple ​line bitwise ​pattern ​definition+|stroke_width|float|line width in pixels| 
-|width|float|line width in pixels| +|stroke_color|string|color id name| 
-|color|string|color id name| +|fill_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)|+
  
-draw a circle with center position <​point>​ and given radius ​using the amount of segments.+draw a circle with center position <​point>​ and given radius.
  
-{{:​ivac2:​firdef:​firdef_opengl_linestrip.png?​|}}+===== Example =====
  
 +<code XML>
 +  <circle radius="​10"​ stroke_color="​square">​
 +      <point lat="​N0511211970"​ lon="​E0025349610"/>​
 +  </​circle>​
 +</​code>​
  
-<​HTML>​ 
-<p style="​border:​1px dashed #​C11B17;​color:#​C11B17;">​ 
-Use <​b>​linestrip</​b>​ instead of <​b>​line</​b>​ to draw continues lines. 
-The drawing performance will be much better than using single lines as in the old sectorfile format. ​ (much less data to process)<​br>​This means that if you export an old sectorfile to the new map format, you need to remove the duplicate <​point>​ entries to improve performance. 
-</p> 
-</​HTML>​ 
  
 +----
  
-===== example ===== +[[ivac2:​firdef|Back]]
- +
-  <circle radius="​10"​ segments="​45"​ r="​255"​ g="​0"​ b="​0">​ +
-      <point lat="​N0511211970"​ lon="​E0025349610"/>​ +
-  </​circle>​ +