symbols-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
symbols-en [2019/11/09 21:28] – [Process route/block events] hermannk | symbols-en [2020/10/21 15:36] – [Text Pointsize] rjversluis | ||
---|---|---|---|
Line 10: | Line 10: | ||
=====Themes directory structure===== | =====Themes directory structure===== | ||
- | | :!: In revision 14318 the SVG Themes are reorganised; | ||
{{ : | {{ : | ||
The official themes are located in the subdirectory **svg/ | The official themes are located in the subdirectory **svg/ | ||
Line 26: | Line 25: | ||
=====Setup===== | =====Setup===== | ||
- | {{: | + | | {{: |
+ | | Rocview properties, Tab ' | ||
+ | |||
+ | |||
+ | | **Attention: | ||
\\ | \\ | ||
Line 49: | Line 52: | ||
* Windows = 10 | * Windows = 10 | ||
* Default = 10 | * Default = 10 | ||
+ | |||
+ | The second field is to adjust the text pointsize from -100% to +100%. This could be of help in case multiple Rocviews, on different platforms/ | ||
+ | |< >| | ||
+ | ^ Example ^^ | ||
+ | | {{: | ||
+ | | Mac 2560x1600 | ||
__The Rocview has to be restarted for changes to take affect.__\\ | __The Rocview has to be restarted for changes to take affect.__\\ | ||
Line 56: | Line 65: | ||
* **Process route events** \\ If this option is activated, the (yellow) route illumination of track symbols will be displayed. \\ | * **Process route events** \\ If this option is activated, the (yellow) route illumination of track symbols will be displayed. \\ | ||
* **Process block events** \\ If this option is activated, the (red) busy route illumination of track symbols will be displayed. \\ | * **Process block events** \\ If this option is activated, the (red) busy route illumination of track symbols will be displayed. \\ | ||
+ | There are several parameters that determine the [[symbolillumination-en|Symbol Illumination]]. \\ | ||
====Show routes on switches==== | ====Show routes on switches==== | ||
By activating this option the normal switch positions will be shown in **[[http:// | By activating this option the normal switch positions will be shown in **[[http:// | ||
Line 63: | Line 72: | ||
Only the SpDrS60 theme has the needed SVGs.\\ | Only the SpDrS60 theme has the needed SVGs.\\ | ||
{{: | {{: | ||
- | To get the route IDs automatically set in the switch objects the analyzer | + | To get the route IDs automatically set in the switch objects the router |
In case of manual routes use the __**[[: | In case of manual routes use the __**[[: | ||
- | ====Route | + | ====Route |
Overwrites block occupancy in case a route is reserved.\\ | Overwrites block occupancy in case a route is reserved.\\ | ||
\\ | \\ | ||
- | =====Examples===== | ||
- | + | =====Track/ | |
- | ====Track/ | + | |
Track and road symbols can be mixed in one layout:\\ | Track and road symbols can be mixed in one layout:\\ | ||
{{: | {{: | ||
Line 89: | Line 96: | ||
The file names are predetermined for each state of a symbol as listed here: [[symbolnames-en|Symbol Names]]\\ | The file names are predetermined for each state of a symbol as listed here: [[symbolnames-en|Symbol Names]]\\ | ||
\\ | \\ | ||
- | The path must be conform:\\ | ||
- | http:// | ||
\\ | \\ | ||
- | But only **M**, **L**, **C** and **z** are evaluated. All coordinates are rounded to integers.\\ | + | =====Supported SVG Elements===== |
- | The **C**urve is defined in the " | + | ====Path==== |
+ | * https:// | ||
+ | Only **M**, **L**, **C** and **z** are evaluated. All coordinates are rounded to integers.\\ | ||
The following example (track with blue outline filled yellow ) shows which information is basically evaluated by Rocview: | The following example (track with blue outline filled yellow ) shows which information is basically evaluated by Rocview: | ||
- | |||
<code xml> | <code xml> | ||
<svg xmlns=" | <svg xmlns=" | ||
Line 105: | Line 110: | ||
</ | </ | ||
- | The path node maybe multiple listed.\\ | + | ====Circle==== |
- | Rotation is done in the Rocview.\\ | + | * https:// |
- | \\ | + | |
- | + | ||
- | Curves and circles:\\ | + | |
<code xml> | <code xml> | ||
<svg xmlns=" | <svg xmlns=" | ||
Line 118: | Line 120: | ||
</ | </ | ||
- | **Note:** To create curves it's recommended to use **< | + | ====Ellipse==== |
- | \\ | + | |
+ | <code xml> | ||
+ | <svg xmlns=" | ||
+ | < | ||
+ | <ellipse cx=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | ==== SVG viewer and editor ==== | ||
- | The Online tool **[[https:// | ||
- | It's not so powerful as Inkscape, but it's much easier to use than Inkscape or others. | ||
- | * ** Note: ** \\ Unfortunately the tool does not check the XML conformity. SVG files edited with the tool should be e.g. be checked with a browser on it. | ||
- | To become familiar with the tool, is recommend to open an SVG file from a Rocrail theme. \\ | + | ====Polygon==== |
- | Changes to the code elements make it very easy to see the effects on the Symbol representation. \\ | + | * https:// |
- | Alternatively, | + | |
- | \\ | + | |
- | Since the tool's " | + | |
<code xml> | <code xml> | ||
- | <svg width=" | + | <svg width=" |
<g> | <g> | ||
- | <!-- Insert the SVG elements here --> | + | <polygon points=" |
</g> | </g> | ||
</ | </ | ||
</ | </ | ||
- | Alternatively, | ||
- | |< >| | ||
- | ^ Funktions | ||
- | | {{: | ||
- | | {{: | ||
- | | {{: | ||
- | | {{: | ||
- | \\ | ||
- | ==== Inkscape ==== | ||
- | You can use Inkscape http:// | ||
- | Rocrail supports just integers for coordinated and therefore the following settings are quite useful: | ||
- | {{:inkscape_config1-en.png}}{{:inkscape_config2-en.png}}{{: | + | ====Rectangle==== |
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <rect x=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | Setting **rx > 0** will draw a rounded rectangle.\\ | ||
- | These settings , especially ' | + | ====Line==== |
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <line x1=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | Another useful setting is to switch on the the outline display: | + | ====PolyLine==== |
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
- | {{: | ||
- | At the moment the only thing evaluated in Rocrail are < | ||
- | With Shift+F6 you can start this sequence; try to generate Lines only, no Curves.\\ | ||
- | As soon as you're done with the graphics save the file in Inkscape and open it with a text editor to copy the path information into another new file.\\ | ||
- | =====Default Symbols===== | + | =====Alternative <g>===== |
- | Default symbols are SVG like vector graphics, and are hardcoded in the Rocgui sources.\\ | + | A second Graphics Container((< |
- | They only are needed when the Rocrail installation is broken, and there are only some basic symbols available! Report it if you are having trouble with symbols.\\ | + | |
- | + | ||
- | \\ | + | |
- | =====Blinking Aspects===== | + | |
- | Starting with revision 5315 a second Graphics Container((< | + | |
- | Only signal objects are enabled for this feature.\\ | + | |
====Example==== | ====Example==== | ||
Line 184: | Line 191: | ||
\\ | \\ | ||
+ | |||
+ | =====Preview===== | ||
+ | {{ : | ||
+ | ====Windows==== | ||
+ | This extension can be used to preview SVG symbols in the file explorer: | ||
+ | * __[[https:// | ||
+ | |||
+ | |||
+ | ====Ubuntu==== | ||
+ | Ubuntu shows SVG previews out of the box.\\ | ||
+ | |||
+ | ====macOS==== | ||
+ | {{ : | ||
+ | The Finder shows only strict formatted SVGs.\\ | ||
+ | Starting with revision 2.1.381, the following SVG header format is also supported by Rocview and will enable preview in the macOS Finder: | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | For information on the viewBox attribute see: | ||
+ | * https:// | ||
+ | The former width/ | ||
+ | The width attribute is set to 100% to enable (pre)viewers to scale up to the available space. (Rocview do not evaluate this value.)\\ | ||
+ | |||
+ | If the following option is manually set in the rocview.ini, | ||
+ | <code xml> | ||
+ | <gui convertsvg=" | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ |
symbols-en.txt · Last modified: 2024/03/13 14:32 by rjversluis