QT C++ code samples

More
6 years 11 months ago - 6 years 11 months ago #151580 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi,

Today we added the G-code class to the program and did a Linuxcnc test. Users only have to press the cam button to see the
output like this. Below the g-code output in a spoiler.

The lead-in is implemented as a kind of macro behind the screen. This makes it able to use a dxf lead in template for users.
Lead in may be a 3d curve for example. The curve only needs a begin point and endpoint, see it as a vector..




Everything looks good. Have to make a link to the cut sequence (keep parts together), no problem.

I want to ask the linux users to comment about the following items :

- who wants to use code snippets? for example : little holes below .. mm slower .. % or for example a lead in path dxf macro?
- g_code parameters like : pierce Z speed, lead in speed (this is maybe a new item), etc. etc.
- special features.. ??
- PlasmaC features or postprocessor features ??

Attached the test g-code output :
Warning: Spoiler!


Okey we are at a exiting moment with the program now, have a nice day and don't forget to comment about program features.

Another test today :

Showing a example of a pipe flange. Here we show how the triangulation is done to get a solid product with opengl.


With triangulation as a solid view :


Linuxcnc output :


Gcode of pipe flange in spoiler :
Warning: Spoiler!


Okey i see we can optimize the holes to do a shortest path with keep parts together..
The lead in is nice.. it point's always to the center of the circle.. even when it's a g2.
Last edit: 6 years 11 months ago by Grotius.
The following user(s) said Thank You: tommylight, Clive S

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #151621 by phillc54
Replied by phillc54 on topic QT C++ code samples
This just gets better and better, awesome job...

If users could create their own custom postprocessor, similar to say SheetCam would be good.
The following user(s) said Thank You: tommylight, Clive S, Grotius

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #151741 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi Phill,

Thank you for your advice.

Attached a example of how the post processor can be set up. At least how i think it can be done at this moment.

It has several more items, like a tool library, code snippets and a axis configuration. This all can be loaded and saved in a configuration file related to the program. Editing the configuration file can also be done in Geanny or Wordpad.

I think this Treemodel structure can also be nice for editing the contour cut path's in the main cad cam screen.

- Soon try to add pocket milling operations.

The following user(s) said Thank You: phillc54, tommylight, Clive S

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #151994 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi,

I programmed the tools in a seperate window. It's done in a tableview format. Just like excel. Tools can be saved and loaded trough the text file tools.txt.

The tooltable can add and delete lines, insert lines at a selected place, the lines can be moved up and down to sort your tool table.
I think this is quite good..



The text file can be edited off line. A tool.txt example output :
Warning: Spoiler!


Okey this tool window template we can use as template for the postprocessor window and the machine head's window.
Problably the contour editing goes trough a tree structure..

Have a nice day !
The following user(s) said Thank You: phillc54, tommylight

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #152613 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi,

Bit by bit we go on. I had difficult times constructing a combobox with multiple data on the same line and qt has a tiny bug according
to display the toolbar order. So far no problems anymore.

At the moment doing some work on the cam window on the right of the screen. The treewidget is interacting with the contours.
The buttonboxes data in the toolbar are saved and loaded and refreshed during program execution.

I need some more time to make it as espected..

Have a nice day !

The following user(s) said Thank You: phillc54, tommylight, Clive S, emilvv

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #153606 by Grotius
Replied by Grotius on topic QT C++ code samples
Hi guy's.

Everyone a good new year !

For the cad/cam program i spent some time in adding dimension features, see the example picture.

If users need a factory drawing, it needs dimension's and it must be printed to paper.. If not, it's useless..

I have read some document's about printing the opengl screen. We can save it as png or bitmap,
but that will result in a very bad output for the printer resolution.

So i am more thinking to output a pdf file (vector style) for printing... The pdf file does not need the opengl parameters. It only needs
the array data... I have to investegate more time about setting up a pdf file from scratch with c++.

So far so good, the dimension class works nice !

Last edit: 6 years 10 months ago by Grotius.
The following user(s) said Thank You: phillc54, tommylight, Clive S

Please Log in or Create an account to join the conversation.

Time to create page: 1.160 seconds
Powered by Kunena Forum