Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feature] Scene horizontal and vertical ruler and axis guides #68
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:
Note that there is no meta command for page Guides and page Ruler. Instead, these settings are persisted by LPub3D at the application level.