#1 connection polyline not drawn to round square and ellipse

closed
nobody
None
5
2011-02-17
2008-06-05
fantaz
No

Hi, I've noticed that poly line connector when connecting to/from round rect or ellipse is not drawn the same way as it's drawn to/from regular rectangle and circle.
Steps to reproduce:
1. Insert reound rect and ellipse
2. Connect them with poly line connector
3. Move one of the objects around the second one

The result:
At certain angles the connection line is not drawn so that line starts/ends at the object's round(arc) segment boundary, while this is not the case when the line is supposed to start at the object's straight line segment boundary.
If I wasn't clear, sorry, it's because the english is not my first language.
I've uploaded a picture on flickr so one could see what I'm trying to say

best regards,
fantaz

Discussion

  • fantaz
    fantaz
    2008-06-05

    png picture explaining the wxsf polyline connector behaviour

     
    Attachments
  • fantaz
    fantaz
    2008-06-05

    Logged In: YES
    user_id=952458
    Originator: YES

    sorry, no flickr, just attachment

     
  • Logged In: NO

    Hi fantaz,
    this is not bug but the feature... ;) the "problem" is caused by the fact, that ellipses and rounded rectangles are derived from generic rectangular shape and have not overrided GetBorderPoint() virtual function implemented in the wxSFRectShape class. I have choosen this approach because of a drawing speed optimization, but it can be changed in the future.

     
    • status: open --> closed
     
  • fantaz
    fantaz
    2008-06-09

    Logged In: YES
    user_id=952458
    Originator: YES

    yeah, sorry for filing a bug, should be on todo list, or feature request.
    anyway, thanx for the feedback
    best regards,
    fantaz

     
  • fantaz
    fantaz
    2008-06-09

    • status: closed --> open
     
    • priority: 5 --> 1
    • status: open --> pending
     
    • priority: 1 --> 5
    • status: pending --> open
     
    • status: open --> closed
     
  • Implemented (with ellipses).