New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Scene horizontal and vertical ruler and axis guides #68

Closed
trevorsandy opened this Issue Aug 21, 2018 · 2 comments

Comments

1 participant
@trevorsandy
Owner

trevorsandy commented Aug 21, 2018

Subject

Add ruler and guides to GUI scene.

Your environment

  • Version of LPub3D v2.2.2
  • Operating system All

Solution

Turn on/off ruler and guides from the menu.

@trevorsandy trevorsandy self-assigned this Aug 21, 2018

@trevorsandy trevorsandy added the feature label Aug 21, 2018

@trevorsandy trevorsandy added this to the v2.3.0 milestone Aug 21, 2018

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Aug 21, 2018

Almost done...

@trevorsandy

This comment has been minimized.

Owner

trevorsandy commented Aug 24, 2018

Initial implementation completed. Note while the ruler feature is mostly done, there is still some more to do on the guides around detecting the precise object under the cursor at mouse click.

I’m fighting a little bit with Qt to get the guides to do what I want. Basically, an object’s center coord (0,0) is presented as the clicked object (e.g. an assembly) is dragged. The intent of the feature is to display guides along the x and y coordinates to aid the user in positioning the dragged object. To this end, I am adjusting the coord presented to that of the top left of the object’s bounding rectangle so the guides sit at a more useful position relative to the dragged object - this is to say, the guides straddle the object’s top left edge versus its center. The unintended behaviour is I’m just not getting a smooth and consistent placement of the “adjusted” guide position from the drag event.

Anyway, either of the two capabilities can be turned on or off from the menu icon toolbar:

Menu buttons toggled on:
screenshot - 25_08_2018 01_32_24

Window scene with both Ruler and Guides turned on:
screenshot - 25_08_2018 01_34_33

Note that there is no meta command for page Guides and page Ruler. Instead, these settings are persisted by LPub3D at the application level.

Cheers,

@trevorsandy trevorsandy added this to DONE in LPub3D Maintenance via automation Aug 24, 2018

@trevorsandy trevorsandy moved this from DONE to DEPLOYED in LPub3D Maintenance Sep 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment