← Back to team overview

kicad-developers team mailing list archive

Re: Flip board view: horizontal scrollbar swapped ?

 

I would file a bug report for this.

There is actually an underlying problem that is going to keep causing
little things like this to pop up...
The GAL / tool framework doesn't have a transform matrix applied between
the user inputs and the world coordinate system.

When the Flip Board view is active, the world coordinates are flipped at
the output stage (when being sent to the renderer).
But, anything that modifies the view in world space (like the scrollbar,
but also actions like aligning objects to each other, moving them around
with the cursor, etc) is going to be backwards.
This is currently solved in the align tool and
PCBNEW_CONTROL::CursorControl by checking for IsMirroredX and flipping the
coordinates around in that case.

A better approach would be to insert some kind of transform matrix for
actions that are supposed to take place from the perspective of the
"camera", so that "right" is always "right" and "left" is always "left".
Not only would this eliminate a whole category of bugs, but it would allow
for easy addition of additional view options besides "flip board" -- some
advanced tools have the ability to view the board at arbitrary 90-degree
rotations as well, which is a great feature.

(it would even open the door to editing the board in 3D, since you could
transform coordinates in arbitrary 3D space into the appropriate movements
in the 2D board world coordinates)

-Jon

On Tue, Dec 19, 2017 at 10:30 PM, Henner Zeller <h.zeller@xxxxxxx> wrote:

> Hi,
> I just tried the 'Flip Board View' feature. Neat - but is it
> intentional that the horizontal scrollbar now works, uhm, inversed ?
> It feels very unintuitive ...
>
> Cheers,
>  -h
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References