This is an old revision of the document!
Table of Contents
CTC SVG
Content → Hardware → CTC Modules → CTC SVG 
Diese Dokumentation basiert auf Rocrail Version 2.1.3927 vom 15.12.2023.
Update: 24.03.2024, Rocrail Version 2.1.4365, accessory-105 
Update: 17.04.2024, Rocrail Version 2.1.4470, ctc_accessory-138, ctc_accessory-139, ctc_accessory-140-off, ctc_accessory-141 
Update: 01.05.2024, Rocrail Version 2.1.4542, ctc_accessory-126-off "Buffer" erweitert zu "Buffer with Always ON" 
Die Entwicklung ist noch „Work In Progress“ (WIP). 
Einführung
Der Aufbau des interaktiven Rocrail CTC-SVG-Modul-Symbols wird hier beschrieben. 
Die Definitionen können zur Generierung zusätzlicher Symbole verwendet werden. 
|   | Es basiert auf dem Layout der CTC-Modul-PCB-Boards; siehe den Forumsthread.. | 
|   | Die CTC-Modul-PCB-Boards enthalten 6 LEDs und einen Taster. Die LED-Nummerierung erfolgt von unten links mit LED1 nach oben links mit LED3 und von unten rechts mit LED4 nach oben rechts mit LED6. | 
|   | Die Rocrail CTC-SVG-Module-Symbole nutzen 3 x 2 Standard-Quadrate eines Rocrail-Plans. Zusätzlich können 6 x 2 Standard-Quadrate zur Abdeckung von Textanzeigen verwendet werden. Daher haben die Rocrail CTC-SVG-Module-Symbole eine Größe von 96 x 64 Pixel. | 
|   | Ein Rocrail CTC-SVG-Module-Symbole verwendet die Befehle "rect", "polygon" und "circle" \\, um Fahrstrassen, Leuchtelemente und Text anzuzeigen. "rect": um rechteckige, nicht gedrehte Flächen zu definieren, "polygon": um jede Art von Fläche zu definieren, meist gedrehte rechteckige Flächen und "circle"; um Kreise zu definieren. | 
Konstruktionsdetails
Die Rocrail CTC-SVG-Modulsymbole werden als Zubehör-SVG-Symbole ab der Zubehörnummer 100 gespeichert. 
Hintergrund
Diese Grunddefinition ist in jedem Rocrail CTC-SVG-Module-Symbole als Rahmen und Hintergrund enthalten. 
| Symbol | LED | Position | Radius | Rechteck | Rahmen | Füllung | ||
|---|---|---|---|---|---|---|---|---|
| accessory-100-off.svg | Nummer | x | y | rx | Breite | Höhe | Farbe | Farbe | 
|   | ||||||||
| - | 0 | 0 | 0 | 95 | 63 | rgb(0,0,0) | rgb(204.204.204) | |
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" 
          stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
  </g>
</svg> 
LEDs
Dieses Modul zeigt lediglich die Positionierung der sechs LEDs. 
Ein nicht standardmäßiges Attribut „led“ mit einer LED-Nummer wird verwendet, um die Befehlszeile der LED-Nummer X für die Rocrail-Software zu identifizieren. 
Die Rocrail-Software färbt dann den „Füll“-Bereich mit der erforderlichen RGB-Farbe ein. 
Der Zustand der Eisenbahnsignale wird durch farbige Kreise angezeigt. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" 
          stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <circle led="3" cx="18" cy="12" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(255,255,255)"/>
    <circle led="2" cx="18" cy="32" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(0,255,0)"/>
    <circle led="1" cx="18" cy="52" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(255,0,255)"/>
    <circle cx="48" cy="32" r="9" 
          stroke="rgb(0,0,0)" stroke-width="2" fill="rgb(204,204,204)"/>
    <circle led="6" cx="77" cy="12" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(255,0,0)"/>
    <circle led="5" cx="77" cy="32" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(255,255,0)"/>
    <circle led="4" cx="77" cy="52" r="7" 
          stroke="rgb(0,0,0)" stroke-width="1" fill="rgb(0,0,255)"/>
  </g>
</svg>
Ausgänge
Dieses Modul zeigt lediglich die Positionierung der sechs LEDs. 
Der Zustand der Rocrail-Ausgänge wird durch farbige Quadrate angezeigt. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <rect led="3" x="12" y="6" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <rect led="2" x="12" y="26" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(0,255,0)"/>
    <rect led="1" x="12" y="46" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(255,0,255)"/>
    <circle cx="48" cy="32" r="9" stroke="rgb(0,0,0)" stroke-width="2" fill="rgb(204,204,204)"/>
    <rect led="6" x="71" y="6" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(255,0,0)"/>
    <rect led="5" x="71" y="26" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(255,255,0)"/>
    <rect led="4" x="71" y="46" rx="0" width="12" height="12" stroke="rgb(0,0,0)" fill="rgb(0,0,255)"/>
  </g>
</svg>
Horizontale Fahrstrassen
Dieses Modul zeigt lediglich die Positionierung der beiden LEDs. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <rect x="1" y="25" rx="0" width="46" height="13" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <rect led="2" x="5" y="26" rx="0" width="31" height="11" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <rect x="48" y="25" rx="0" width="46" height="13" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <rect led="5" x="60" y="26" rx="0" width="31" height="11" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
  </g>
</svg>
Diagonale Fahrstrassen
Dieses Modul zeigt lediglich die Positionierung der vier LEDs. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <polygon points="0,0 12,0 48,25 48,38 46,38 0,8 0,0" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="3" points="12,1 41,21 35,30 5,10 12,1" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <polygon points="0,63 12,63 48,38 48,25 46,25 0,55 0,63" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="1" points="12,62 41,42 35,33 5,53 12,62" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <polygon points="95,0 84,0 46,25 46,38 50,38 95,8 95,0" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="6" points="84,1 55,20 62,29 91,10 84,1" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <polygon points="95,63 84,63 46,38 46,25 50,25 95,56 95,63" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="4" points="85,63 55,43 62,34 91,54 85,63" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
  </g>
</svg>
Diagonale Fahrstrassen spezial
Dieses Modul zeigt lediglich die Positionierung der zwei LEDs. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <polygon points="0,63 12,63 95,8 95,0 83,0 0,55 0,63" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="1" points="12,62 41,42 35,33 5,53 12,62" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <polygon led="6" points="84,1 55,20 62,29 91,10 84,1" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
  </g>
</svg>
Dieses Modul zeigt lediglich die Positionierung der zwei LEDs. 
<svg width="100%" viewBox="0 0 96 64" xmlns="http://www.w3.org/2000/svg">
  <g>
    <rect x="0" y="0" rx="0" width="95" height="63" stroke="rgb(0,0,0)" fill="rgb(204,204,204)"/>
    <polygon points="0,0 12,0 95,56 95,63 85,63 0,8 0,0" stroke="rgb(0,0,0)" fill="rgb(0,0,0)"/>
    <polygon led="3" points="12,1 41,21 35,30 5,10 12,1" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
    <polygon led="4" points="85,63 55,43 62,34 91,54 85,63" stroke="rgb(0,0,0)" fill="rgb(255,255,255)"/>
  </g>
</svg>
Symbolliste sortiert nach Nummer
Die Liste der Rocrail CTC-SVG-Modulsymbole. 
 
Symbolliste sortiert nach Gruppe
Die Liste der Rocrail CTC-SVG-Modulsymbole. 

















































