symbols-en
Differences
This shows you the differences between two versions of the page.
Previous revision | |||
— | symbols-en [2025/06/15 11:33] (current) – [Text Pointsize] rjversluis | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======SVG symbols ====== | ||
+ | [[: | ||
+ | [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[: | ||
+ | * [[symbols-theme-props-en|Theme properties]] | [[symbols-themes-spdr60-en|SpDrS60]] | [[symbols-themes-road-en|Roads]] | [[symbols-themes-accessories-en|Accessories]] | [[symbols-themes-slim-en|SLIM(-COLOR)]] | [[symbols-themes-user-en|User Themes]] | ||
+ | |||
+ | // \\ // \\ | ||
+ | |||
+ | =====Themes directory structure===== | ||
+ | {{ : | ||
+ | The official themes are located in the subdirectory **'' | ||
+ | |||
+ | * **Note:** \\ All other sub directories are user defined themes. \\ These are since //Rev. 2.1.5070+// no longer part of the installation.\\ If required, they can be downloaded as a ZIP from **[[: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====The Official SpDrS60 Theme===== | ||
+ | The official theme is __**[[: | ||
+ | For testing and problem reporting this theme should be used.\\ | ||
+ | All other themes must follow the naming, connection and size convention of the SpDrS60 theme.\\ | ||
+ | \\ | ||
+ | |||
+ | =====Setup===== | ||
+ | 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.\\ | ||
+ | If it want to use self-defined SVG symbols, the corresponding path to these symbols must be placed first in the topic list. \\ | ||
+ | That means the first Theme determines how a SVG is portrayed. | ||
+ | \\ | ||
+ | ===Three dot button [ . . . ]=== | ||
+ | Open the File manager to select the desired folder for the theme. | ||
+ | {{ : | ||
+ | ====Properties==== | ||
+ | The button opens the dialog __**[[symbols-theme-props-en# | ||
+ | \\ | ||
+ | ===[✔]=== | ||
+ | This Option set the theme at the Rocview start as activ / inactiv. | ||
+ | \\ | ||
+ | ==== Main SVG theme ==== | ||
+ | The selection (1...6) determines which theme the properties are used by. | ||
+ | \\ | ||
+ | ==== User properties ==== | ||
+ | Path where user properties can be saved independent of the selected Main SVG theme.\\ | ||
+ | * **Note:** Leave the field blank if no special user properties are to be used. | ||
+ | |||
+ | ===Three dot button [ . . . ]=== | ||
+ | Open the File manager to select the desired folder for the User properties. | ||
+ | \\ | ||
+ | ====Properties==== | ||
+ | The button opens the dialog __**[[symbols-theme-props-en# | ||
+ | \\ | ||
+ | ==== Item ID Pointsize ==== | ||
+ | Adjust the pointsize for item IDs to fit the ID length choosen. Default is 7.\\ | ||
+ | __The Rocview has to be restarted for changes to take affect.__\\ | ||
+ | ===Color=== | ||
+ | The item ID color. Default is black.\\ | ||
+ | |||
+ | ==== Text Pointsize ==== | ||
+ | Adjust the pointsize for Block ID and for Text objects with zero pointsize. \\ | ||
+ | Best results for: ((Dependents of screen resolution and taste.)) | ||
+ | * macOS = 14 | ||
+ | * Linux = 13 | ||
+ | * Windows = 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.__\\ | ||
+ | |||
+ | ==== 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 ==== | ||
+ | To reduce processor resources these options can be disabled.\\ | ||
+ | * **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. \\ | ||
+ | There are several parameters that determine the [[symbolillumination-en|Symbol Illumination]]. \\ | ||
+ | ====Show routes on switches==== | ||
+ | By activating this option the normal switch positions will be shown in **[[http:// | ||
+ | For reserved routes this color will change in Yellow.\\ | ||
+ | Raster switch types are not supported by this option.\\ | ||
+ | Only the SpDrS60 theme has the needed SVGs.\\ | ||
+ | {{: | ||
+ | To get the route IDs automatically set in the switch objects the router must be started again if the routes were generated with a revision older then 7884.\\ | ||
+ | In case of manual routes use the __**[[: | ||
+ | |||
+ | |||
+ | ====Route priority==== | ||
+ | Overwrites block occupancy in case a route is reserved.\\ | ||
+ | |||
+ | ====Short ID==== | ||
+ | Show the loco [[: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | =====Track/ | ||
+ | Track and road symbols can be mixed in one layout:\\ | ||
+ | {{: | ||
+ | The road symbols have the same naming as the track symbols but are prefixed with **road-**.\\ | ||
+ | |||
+ | \\ | ||
+ | =====Create SVG symbols===== | ||
+ | ==== Text editor ==== | ||
+ | If you wish to use your own symbols in a track plan you have to create these symbols SVG format.\\ | ||
+ | The symbol size is set in the svg file, but make sure those values are a multiple of **32**.\\ | ||
+ | \\ | ||
+ | Turntables are not supported in SVG because of its very complex nature.\\ | ||
+ | \\ | ||
+ | The file names are predetermined for each state of a symbol as listed here: [[symbolnames-en|Symbol Names]]\\ | ||
+ | \\ | ||
+ | Note: all file names __must not__ contain capital letters | ||
+ | \\ | ||
+ | ==== Insert self created symbols into the track plan ==== | ||
+ | :!: 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: | ||
+ | <code xml> | ||
+ | <svg xmlns=" | ||
+ | <g> | ||
+ | <path stroke=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====Circle==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg xmlns=" | ||
+ | <g> | ||
+ | <circle cx=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | **Note:** //If the radius is zero this SVG element will be skipped.// | ||
+ | |||
+ | ====Ellipse==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg xmlns=" | ||
+ | <g> | ||
+ | <ellipse cx=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | **Note:** //If the radius rx or ry is zero this SVG element will be skipped.// | ||
+ | |||
+ | |||
+ | |||
+ | ====Polygon==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <polygon points=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ====Rectangle==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <rect x=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | Setting **rx > 0** will draw a rounded rectangle.\\ | ||
+ | |||
+ | ====Line==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | <line x1=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | * **Note:** For the **'' | ||
+ | |||
+ | ====PolyLine==== | ||
+ | * https:// | ||
+ | <code xml> | ||
+ | <svg width=" | ||
+ | <g> | ||
+ | < | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | |||
+ | =====Alternative < | ||
+ | A second Graphics Container((< | ||
+ | **Note:** //Rocweb cannot support multiple <g> containers, and will show all overlapped.// | ||
+ | Alternate must be activated in the context menu of the symbol: {{: | ||
+ | |||
+ | ====Example==== | ||
+ | <code xml> | ||
+ | <svg xmlns=" | ||
+ | <g> | ||
+ | <path stroke=" | ||
+ | </g> | ||
+ | <g> | ||
+ | <path stroke=" | ||
+ | </g> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | =====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=" | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | \\ | ||