#26 unusual clipping

closed-fixed
nobody
AquaTerm (26)
5
2005-01-02
2004-12-08
No

If I draw a line, call aqtRenderPlot, then add a
poly-line to the plot and call aqtRenderPlot again to
update the display to show the new line, then this line
appears clipped. By this I mean that it looks like the
line is being drawn in a box that is slightly smaller
then that which would hold the line. The attached
example better illustrates this behavior.

-Hazen

Discussion

  • Hazen Babcock

    Hazen Babcock - 2004-12-08
     
  • Per Persson

    Per Persson - 2004-12-08

    Logged In: YES
    user_id=350616

    This happens because the bounds for a path is computed from the
    coordinates only, linewidth is not taken into account. The bounds are used
    to avoid excessive screen redrawing (i.e. the whole plot) when doing a
    partial update. To force a complete redraw, use Debug -> Refresh View
    menu
    (CMD-R).

    I guess that the bounds should be increased by a linewidth/2 margin to
    guarantee that any path is completly within the stated bounds.

     
  • Per Persson

    Per Persson - 2004-12-08
    • status: open --> open-accepted
     
  • Per Persson

    Per Persson - 2004-12-08

    Logged In: YES
    user_id=350616

    I've uploaded a potential (one-line :-) fix to the patch tracker. No testing
    except for your example. If you can't find any side effects, feel free to
    commit the change.

     
  • Hazen Babcock

    Hazen Babcock - 2004-12-09

    Logged In: YES
    user_id=1119203

    I checked it on a few of the plplot examples and didn't
    notice any side effects. If I don't find anything by this
    weekend I'll commit it then. Thanks for fixing this so promptly!

    -Hazen

     
  • Per Persson

    Per Persson - 2005-01-02
    • status: open-accepted --> closed-fixed
     
  • Per Persson

    Per Persson - 2005-01-02

    Logged In: YES
    user_id=350616

    Fixed in CVS.

     

Log in to post a comment.