symbols-en
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
symbols-en [2019/11/09 21:32] – [Process route/block events] hermannk | symbols-en [2024/03/13 14:32] (current) – [Themes] 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===== | ||
- | {{:rocgui-ini-svg-en.png}}\\ | + | * **Note:** With rev. 2.1.4068+ the dialog for a 6th theme did expand. |
- | \\ | + | |
- | ==== Theme 1 - 5 ==== | + | | {{: |
+ | | Rocview properties, Tab ' | ||
+ | |||
+ | |||
+ | | **Attention: | ||
+ | |||
+ | |< >| | ||
+ | | **if no suitable SVG file is found for an Object type, \\ the track plan shows an Error symbol at the position.** | ||
+ | | {{: | ||
+ | | **SVG file not found** | ||
+ | |||
+ | > **Note:** | ||
+ | > Possible causes: | ||
+ | > Further themes must be defined, e.g. **'' | ||
+ | > The SVG number, Accessory option and/or Accessory number required for some Object types are not defined or are wrong defined. | ||
+ | |||
+ | \\ | ||
+ | ==== Theme 1...6 ==== | ||
Select the desired themes and __restart Rocview to activate__ them.\\ | Select the desired themes and __restart Rocview to activate__ them.\\ | ||
If you have defined your own SVG symbol for a certain item, place it in the " | If you have defined your own SVG symbol for a certain item, place it in the " | ||
Line 49: | Line 64: | ||
* Windows = 10 | * Windows = 10 | ||
* Default = 10 | * Default = 10 | ||
+ | |||
+ | |||
+ | ==== Adjust ==== | ||
+ | The 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.__\\ | ||
+ | ==== Auto ID Width ==== | ||
+ | If this is set to 3 then the objects start with 100: e.g. sw100 \\ | ||
+ | If this is set to 0 or 1, the objects start without leading zeroes: e.g. sw1 \\ | ||
+ | |||
+ | ==== Train connector ==== | ||
+ | The character used to connect the locomotive and train IDs.\\ | ||
+ | Default is an underscore character.\\ | ||
+ | Example with an equals character: (LocoID=" | ||
+ | {{: | ||
+ | |||
+ | ==== Black replacement ==== | ||
+ | Replace 'on the fly' all '' | ||
+ | Could be of use in case the panel background is a dark color.\\ | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Options===== | ||
==== Process route/block events ==== | ==== Process route/block events ==== | ||
To reduce processor resources these options can be disabled.\\ | To reduce processor resources these options can be disabled.\\ | ||
Line 63: | Line 104: | ||
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===== | + | ====Short ID==== |
+ | Show the loco [[: | ||
+ | |||
+ | \\ | ||
- | ====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 132: | ||
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:\\ | + | Note: all file names __must not__ contain capital letters |
- | http:// | + | |
\\ | \\ | ||
- | But only **M**, **L**, **C** and **z** are evaluated. All coordinates are rounded to integers.\\ | + | ==== Insert self created symbols into the track plan ==== |
- | The **C**urve is defined in the " | + | :!: Self created SVG symbols are __NOT__ displayed in the **[[rocgui-menu-en# |
+ | =====Supported SVG Elements===== | ||
+ | ====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 150: | ||
</ | </ | ||
- | 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 117: | Line 159: | ||
</ | </ | ||
</ | </ | ||
+ | **Note:** //If the radius is zero this SVG element will be skipped.// | ||
- | **Note:** To create curves it's recommended to use **< | + | ====Ellipse==== |
- | \\ | + | * https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse |
- | + | ||
- | ==== SVG viewer and editor | + | |
- | The Online tool **[[https://www.rapidtables.com/web/tools/svg-viewer-editor.html|SVG-Viewer/Editor]]** can be useful to view SVG, create and edit. \\ | + | |
- | 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. \\ | + | |
- | Changes to the code elements make it very easy to see the effects on the Symbol representation. \\ | + | |
- | Alternatively, | + | |
- | \\ | + | |
- | Since the tool's " | + | |
<code xml> | <code xml> | ||
- | <svg width=" | + | < |
<g> | <g> | ||
- | <!-- Insert the SVG elements here --> | + | <ellipse cx=" |
</g> | </g> | ||
</ | </ | ||
</ | </ | ||
- | Alternatively, | + | **Note:** //If the radius rx or ry is zero this SVG element will be skipped.//\\ |
- | |< >| | + | |
- | ^ Funktions | + | |
- | | {{: | + | |
- | | {{: | + | |
- | | {{: | + | |
- | | {{: | + | |
- | \\ | + | |
- | ==== Inkscape ==== | + | |
- | You can use Inkscape http:// | + | |
- | Rocrail supports just integers for coordinated and therefore the following settings are quite useful: | + | |
- | {{: | ||
- | These settings , especially ' | ||
- | Another useful setting is to switch on the the outline display: | + | ====Polygon==== |
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <polygon points=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | {{:inkscape_config4-en.png}} | + | ====Rectangle==== |
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <rect x=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | Setting **rx > 0** will draw a rounded rectangle.\\ | ||
- | At the moment | + | ====Line==== |
- | With Shift+F6 you can start this sequence; try to generate Lines only, no Curves.\\ | + | * https:// |
- | 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.\\ | + | <code xml> |
+ | <svg width=" | ||
+ | <g> | ||
+ | <line x1=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | * **Note:** For the **'' | ||
+ | |||
+ | ====PolyLine==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
- | =====Default Symbols===== | ||
- | Default symbols are SVG like vector graphics, and are hardcoded in the Rocgui sources.\\ | ||
- | 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===== | + | =====Alternative <g>===== |
- | Starting with revision 5315 a second Graphics Container((< | + | A second Graphics Container((< |
- | Only signal objects are enabled for this feature.\\ | + | **Note:** //Rocweb cannot support multiple <g> containers, and will show all overlapped.//\\ |
====Example==== | ====Example==== | ||
Line 184: | Line 236: | ||
\\ | \\ | ||
+ | |||
+ | =====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.1573331549.txt.gz · Last modified: 2019/11/09 21:32 by hermannk