[Kst] [Bug 121068] Arrow view objects not always clipped correctly

netterfield at astro.utoronto.ca netterfield at astro.utoronto.ca
Fri Feb 3 23:20:00 CET 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------- Additional Comments From netterfield astro utoronto ca  2006-02-03 23:19 -------
Best I can tell, arrows and lines are broken at a fundamental level!

-The desired drag points for finite width lines are the centers of the ends of the lines.
-kstViewObjects drag from the corners of the bounding box.

We are left with a few options:
1: when drawing the line, move the end points so they stay inside the bounding box.  When changing orientation, move the corners so they ~make sense.  This is what the current implementation tries to do - and almost succeeds.  For wide lines, the UI is very odd this way.  The current implementation could easily be fixed to make this work (oddly though).

2: re-define the clip region so that it can extend outside the bounding box.  The drag points are where you think they should be.  BUT: the bounding box is smaller than the drawn region, so re-draw might not happen on a partial cover-expose, and the mouse doesn't always know it is over the line or arrow.  This is Andrew's patch.

3: some sort of fundamental re-design to get it right.

I think that #3 is not an option.

#1 & #2 have their own uglinesses.  In triage mode, I guess I would weakly vote for #2.  Others should give their vote (but not spend any more time on it) and I will render an edict tomorrow AM.

More information about the Kst mailing list