Goku, on 04 June 2017 - 06:29 AM, said:
Then, how about shape matrices that are not in sigcfg file. Are these hidden by default, or always visible?
Me example in Post #7 is showing the following matrices:
matrices ( 5
matrix SIGNAL ( 1 0 0 0 1 0 0 0 1 0 0 0 )
matrix HEAD2 ( 1 0 0 0 1 0 0 0 1 0 3 -0.0200002 )
matrix HEAD1 ( 1 0 0 0 1 0 0 0 1 0 4 -0.0200002 )
matrix HILFSSIGNAL ( 1 0 0 0 1 0 0 0 1 0 0 0 )
matrix BESETZTSIGNAL ( 1 0 0 0 1 0 0 0 1 0 0 0 )
)
Every Signalhead witch should be switchable visible/hidden depending of the sigcfg.dat, in the shape-file they must be in separate Subobjects. The Subobject 0 is always displayed.
The example in Post #7 CHLEinfahrsignal.s has 3 SubObjects.
The Matrices "SIGNAL,HEAD1,HEAD2" belong to the Subobject 0 and are therefore always displayed.
(see Shape CHLEinfahrsignal.s in post #7, SubObjects) geometry_node_map ( 5
0 1 2 -1 -1 )
The Matrices HILFSSIGNAL belong to the Subobject 1
geometry_node_map ( 5 -1 -1 -1
0 -1 )
switchable by sigcfg.dat.
And the Matric BESETZTSIGNAL belong to the Subobject 2
geometry_node_map ( 5 -1 -1 -1 -1
0 )
switchable by sigcfg.dat.
Here the interesting part of sigcfg.dat:
SignalSubObj (
10
"KENNUNG1"
"Kennung"
SigSubType ( SIGNAL_HEAD )
SigSubSType ( "CHLKennungNormal" )
)
SignalSubObj (
11
"Hilfssignal"
"Hilfssignal"
SigSubType ( DECOR )
SignalFlags ( DEFAULT OPTIONAL )
)
SignalSubObj ( 12
"Besetztsignal"
"Besetztsignal"
SigSubType ( DECOR )
SignalFlags ( OPTIONAL )
)
As explicated in Post #7 in the Worldfile is defined, witch SignalSubObj are used for this Signal:
SignalSubObj ( 00000c51 )
00000c51 means from the Signal are used the SignalSubType ll00 0l0l 000l to read from right to left: SubType 0,4,6,
10,11
SignalSubObj 0 and 4 (see Post #7)this can't switched of by Sigcfg.dat/Worldfile, because they are in the Shape in the SubObject 0 witch is always displayed
SignalSubObj 6 is an Option and has in sigcfg.dat the Name HEAD6. This name doesn't exist in the Matrices, nothing to display
SignalSubObj 10 has the Name "Kennung" , This Name doesn't exist in the Matrices, nothing to display.
SignalSubObj 11 has the Name "Hilfssignal", exist in the Matrices and is the Subobject 1, this is to display
SignalSubObj 12 doesn't exist in Worldfile, the Matric "Besetztsignal" witch is Subobject 2 is not to display.
I hope this example is showing the principle correct an complete.
Regards
EugenR