Better GUI for turntable

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 18.08.2018, 14:57

Hi Rob,

revert - not really, i like it .....

With smaller layouts perfect.
We should find a way for large layouts
Eg to align the lines on the tt to the middle of raster positions?
(especially for the max size)

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 18.08.2018, 15:01

Hi Peter,

there is a solution, but this will be not compatible.
To represent a full scale turntable, with 48 tracks, and make it raster compatible, it needs a grid of 26x26...

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 18.08.2018, 17:10

Hi Rob,

it could also work with a tt object size 12x12

I made a simple plan with 12 tracks on each side of the tt object, the tt track lines are handpainted (faked) with MS-Paint.
DS-12.png

RainerK
Moderator
Posts: 3696
Joined: 29.04.2009, 09:31
Location: Sprockhövel (zwischen BO u. W)
Contact:

Re: Better GUI för turntable

Post by RainerK » 18.08.2018, 17:44

Hi Peter,

the problem for Rob may be, that the Track parts of the actual symbol are be calculated as vectors with fixed angles as part of 360 degrees

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 18.08.2018, 17:50

Hi Peter,

the problem is that the TT Object can be scaled, like 5x5 or 12x12.
How should the TT render its 48 tracks on a 5x5 grid?

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 18.08.2018, 18:02

Hi Rob, Rainer,

i understand this difficulties in generating the object.

Thinking out of the box, but may it be possible to allow to define the tracks in more than 48 fixed positions, in best case each degree (360 Positions)?
For sure, with a limitation to the max of 48 to be compatible.

It's just about drawing, not to extend the amount of possible tracks..

I'm not the expert in dynamic SVC, just a stimulation ... :wink:

If not possible wth reasonable effort, then could be a new option :mrgreen: to choose between old circular and new rectangle symbol the way to make everybody happy ... :wink:

lgrfbs
Posts: 60
Joined: 11.07.2016, 14:57
Location: Sweden
Contact:

Re: Better GUI för turntable

Post by lgrfbs » 18.08.2018, 19:27

Thanks rjversluis. :thumb_up:

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 18.08.2018, 20:26

Hi Rob,

another suggestion:

tt symbol is currently possible with a size from 2x2 to 13x13

When using horizontal and vertical connections only (what makes sense in terms of a smart graphic presentation) :

size 2x2 fits to max 8 tracks
size 3x3 to max 12 tracks
....
size 11x11 to max 44 tracks
size 12x12 to max 48 tracks
size 13x13 not more necessary....

My thought about this:

- choosing by size loads a predefined SVG with the respective maximum of correct aligned tracks according to the size
- tracks can be chosen as visible or not as usual today by definition in the track table
- Result: in any situation the connection to external tracks is well suited to the external tracks

This may result in a sophisticably redesign of the tt object, just a suggestion for a smarter layout design ... :wink:

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 19.08.2018, 07:24

Hi Peter,

the logic is OK, but without hundreds of SVGs; It will be rendered if I implement this.
Raster size multiplied 4 is the number of tracks.
2x2 = 45° = 6x7,5° = 8 tracks
3x3 = 30° = 4x7,5° = 12 tracks
4x4 = 22,5° = 3x7,5° = 16 tracks
5x5 = Not possible = 20 tracks
6x6 = 15° = 2x7,5° = 24 tracks
7x7 = Not possible = 28 tracks
8x8 = Not possible = 32 tracks
9x9 = Not possible = 36 tracks
10x10 = Not possible = 40 tracks
11x11 = Not possible = 44 tracks
12x12 = 7,5° = 1x7,5° = 48 tracks

As you can see, not all grid sizes are possible.
The number of tracks must be a multiple of 7,5°.
So the size of the turntable should not be the grid size but the number of max. tracks.

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 19.08.2018, 07:47

Hi Rob,

good proposal.

I think if we want to meet exactly the connection to the possible external tracks, there are no fixed angles anymore between the lines in the tt object.... :?:

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 19.08.2018, 07:58

Hi Peter,

you have to define for every grid size which tracks are mapped:
https://wiki.rocrail.net/doku.php?id=tu ... -tracks-en
Try to make a list...

3x3: 0,4,8,12,16,20,24,28,32,36,40,44
Every 30° track can be used at 3x3 grid.

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 19.08.2018, 08:49

Hi Rob,

i just checked the angles with a 4x4 grid.
tt-calc.JPG
The angle between 1st and 2nd track (counterclock from zero) is 22.8 degree
The angle between 2nd and 3rd track is 16.3 degree
The angle between 3rd and 4th track is 22.8 degree
....good old Pythagoras & Co

So the angles are not fixed....

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 19.08.2018, 09:04

Hi Peter,

those angles are not of any interest because the line will be drawn from center to grid cell outside middle.

The point is to map those lines to one of the logical track numbers between 0 and 47.
https://wiki.rocrail.net/doku.php?id=tu ... -tracks-en

peter&basti
Moderator
Posts: 5855
Joined: 09.01.2012, 22:09
Location: Vienna, Austria

Re: Better GUI för turntable

Post by peter&basti » 19.08.2018, 14:13

Hi Rob,

attached a test plan with all sizes you mentioned before and all possible tracks to each size (except 12x12 ... every track :wink: )

As you can see only 2x2 and 4x4 are able to fit perfect to the connected tracks.
(hint: the differences between the track numbers are in this cases not equal!)
Attachments
plan.xml
(32.83 KiB) Downloaded 3 times

rjversluis
Site Admin
Posts: 38747
Joined: 10.04.2006, 08:48
Location: Speyer, Germany
Contact:

Re: Better GUI för turntable

Post by rjversluis » 19.08.2018, 15:20

Hi Peter,

I think its easier to open a German thread, and discus there further on.
The initiator of this thread is satisfied.

Post Reply

Return to “General”