Drawing TO-DO

This post is a work-in-progress list of things to fix in the Drawing development branch

More like bugs:

  • Rendering issue – can’t really fix without significant work, also isn’t specific to Drawing
  • Select the right (or left or top…) view so that it turns completely blue. than move the front view. You will notice the wrong movement of the selected view (figure out which is better highlight mode between dragging anchor vs child views, and use that mode consistently for both)
  • Update regions are wrong: seems that only the areas in the dotted view frame get updated, if the text below the view goes outside the view frame this becomes a problem, you see remaining artefacts while moving. this also happens a lot when repositioning dimensions
  • When adding dimensions to one view the frame of this view updates not correctly
  • The dimensions get somehow misaligned, they shift on the pages y axis downwards for some reason
  • If you change from first to third angle the positions of left and right views etc change, but not the isometric views.
  • For the A4 template it seems impossible to make the dimension font small enough, you would go to size 4 or lower to get something reasonable, but than the font looks really weird. Also 4 is small… normal size for A4 writing is 12, but this is really huge in the drawing workbench compared to text tools like word
  • Automatic scaling often doesn’t work properly
  • Repaint around the template to remove artefacts
  • Drawing viewer widget should resize
  • Update icons for isometric and orthographic views in the document tree thing. (asked for drawings in the forum)
  • Save and Save As don’t seem to work while Drawing Viewer is open?
  • Figure out what’s going on with the two properties for the template name (TODO in 8476bab)
  • BSpline problem that results in bad bounding boxes (in progress)

More like features:

  • Update template with appropriate text, First/Third angle symbol, customisable logo, etc.
  • Align isometric views too. From ickby: “Best it to anchor them to the orthographic projections, for example the FrontTopRight would be anchored to the Top view top:top, and the FrontTopRight would be anchored to the right view right:right. This would give always a nice projection grid.”
  • Selecting the view for draging should work on the whole view area, not only the dotted frame. So only omit the areas where you can select the lines/dotes etc.
  • Possibly add spinboxes for the scale selector, this would allow change the value with the mouse wheel
  • Ability to change template of an existing drawing
  • Get rid of the “exception as flow control device” in Geometry

Areas to investigate:

  • SVG/PDF/etc export

2 thoughts on “Drawing TO-DO

  1. Luke Parry

    A few comments that may be helpful.

    “Update regions are wrong: seems that only the areas in the dotted view frame get updated, if the text below the view goes outside the view frame this becomes a problem, you see remaining artefacts while moving. this also happens a lot when repositioning dimensions”

    The QGraphicsItem bounding box is calculcated for all the lines of the Part view. Then an offset of ~ 5px is applied and the dashed border is drawn. Anything outside of this will not / or should not be drawn. I suppose large text labels, will need to be including in the bounding box calculation. I also think Dimension objects are parented by the view they are connected to which I don’t think are taken into account in the bounding box calculations. Like I said in the previous email, I don’t think the bounding box is done correctly in principle.

    “The dimensions get somehow misaligned, they shift on the pages y axis downwards for some reason”
    I rememer having this problem, but couldn’t remember if I ever fixed this. What i encountered was the dimensions moving after closing the drawing view and then opening it again. I believe it may be related to the properties update mechanism.

    “For the A4 template it seems impossible to make the dimension font small enough, you would go to size 4 or lower to get something reasonable, but than the font looks really weird. Also 4 is small… normal size for A4 writing is 12, but this is really huge in the drawing workbench compared to text tools like word”

    I agree the font size is non-standard and needs fixing and have noticed this for a while. You will have to look at QGraphicsTextItem. I think there is a high quality option for QFont that is passed to it (in QGraphicsItemViewDimension::updateView)

    “Selecting the view for draging should work on the whole view area, not only the dotted frame. So only omit the areas where you can select the lines/dotes etc.”

    I think a decision from the users might be helpful here. I wasn’t sure if it’d be better so that views can be dragged by the lines initially. Avoiding this made selection easier.

    Hope that helps with the troubleshooting 🙂

    Luke

    Like

    Reply
  2. ianrrees Post author

    Yep, thanks for the thoughts! I mostly just made this into a post so I’ve got an easy way to edit things as they change – most of the body came from post comments, earlier posts, etc. I suppose that a bug tracker would be a better tool for this :).

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s