This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ivac2:firdef_symbols_xml [2014/04/14 22:52] filip.jonckers |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[ivac2:firdef_toc|Back]] | ||
- | ====== symbols.xml ====== | ||
- | |||
- | The symbols.xml file is used to draw symbols used in [[ivac2:firdef_map_nav|nav elements]]. | ||
- | |||
- | Each symbol is drawn using the same methods as used in the maps: | ||
- | * line | ||
- | * linestrip | ||
- | * lineloop | ||
- | * polygon | ||
- | * circle | ||
- | * polycircle | ||
- | * arc | ||
- | * polyarc | ||
- | * point | ||
- | |||
- | |||
- | The symbol is drawn using a cartesian system where the location of the [[ivac2:firdef_map_nav|nav element]] is the centerpoint (0,0). | ||
- | |||
- | |||
- | Note: Only use <point> elements with the x,y attributes! | ||
- | |||
- | |||
- | The name attribute of a symbol is used in the symbol attribute of the [[ivac2:firdef_map_nav|nav element]]. | ||
- | |||
- | ===== example ====== | ||
- | |||
- | <code XML> | ||
- | <symbols> | ||
- | <symbol name="vor"> | ||
- | <circle radius="3" segments="32" width="1" color="symbol_vor"> | ||
- | <point x="0" y="0"/> | ||
- | </circle> | ||
- | <polygon width="1" color="symbol_vor"> | ||
- | <point x="-3" y="3"/> | ||
- | <point x="3" y="3"/> | ||
- | <point x="0" y="-3"/> | ||
- | </polygon> | ||
- | </symbol> | ||
- | </symbols> | ||
- | </code> |