Building new Full Qt c/c++ HMI (incl. nml and EtherCAT )

More
04 Sep 2021 07:18 - 04 Sep 2021 07:22 #219583 by udoS
@Grotius
An other parametric designer that looks great is Antimony.
The point is always that they have a Viewer API and parametric input and c/c++.
And the best of all - they allow for bool operatin nativ. So you could substract the Milling-tool from the stock.
KIS KIS
Last edit: 04 Sep 2021 07:22 by udoS.

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

More
04 Sep 2021 17:50 #219616 by Grotius
Hi Udo,

* About the Qt_Graphics_Widget: I was thinking of something more simple like your openGL;
Once you have the graphic widget running, it is easy to use. If you want to use it from the c++ code,
there are examples how to draw a line etc. For example scrolling trough the source of simple_cam will help you using the widget.
Related to other viewers like Antimony, opencascade is the mclaren of the cad graphic viewers.

*Is there a great G-Code editor out there with high lighting g-code blocks and( now pushing ) the graphic representation of it.
I don't know at the moment.




 

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

More
05 Sep 2021 12:50 #219665 by udoS
Now the Qt_Graphics_Widget start and is connected to the lcnc axis.
How to get the Widget into my HMI and populate it with .Obj models and stuff.
The rotation with the mouse still doesn't work.
Attachments:

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

More
05 Sep 2021 18:54 #219687 by Grotius
Hi,

You are almost there.

In attached archive read : install_freeimage_occ ( take your time to read this doc, recompiling takes a few minutes, i hope you have fast pc anyway ).

Then in the /src/cplusplus_testgui/cplusplus_testgui.pro you can load the example i made for you how to embed the opencascade in your app.
Mention in your .pro (the .pro file of your own app from previous post) file to add the "opengl" at the first line, see my example.
Copy the last section of my .pro file example.
And in fact the widget has only 4 files of actual code. (opencascade.cpp & .h , draw_primitives.cpp & .h)

Ok good luck master Kenobi !
You can ask how to translate the cone in next post !
 
Attachments:

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

More
06 Sep 2021 09:54 #219747 by udoS
@Grotius
Your Qt_Graphics_Widget is talking to Linuxcnc. LOL


 
The following user(s) said Thank You: tommylight

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

More
06 Sep 2021 13:29 #219758 by udoS
@Grotius

Can you tell me what this means. ?
Attachments:

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

More
06 Sep 2021 13:31 #219759 by udoS
@Grotius

And this for info.
Attachments:

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

More
06 Sep 2021 14:12 #219760 by udoS
@Grotius
What do you expect this is doing?

wget github.com/grotius-cnc/Linux-Pro/release....0.0/opencascade.deb
dpkg -i opencascade.deb
mkdir build
make clean # for existing installs.
cd build
cmake ..

???

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

More
06 Sep 2021 17:07 #219773 by Grotius
Hi,

It looks you have to install c++ standard librarys for "math" etc. You can look wich one includes math.
I suggest to install "build essentials" packages.debian.org/sid/build-essential

For the wheelevent, wich qt version are you working on? I use 5.15.2
Your last post is about recompling opencascade to enable "pictures" and "textures" with the help of the "freeimage" lib.


 

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

More
06 Sep 2021 21:54 - 06 Sep 2021 21:57 #219793 by udoS
For the wheelevent, wich qt version are you working on? I use 5.15.2
Nop. I' still on 5.12.4 ;

That math ... thing is all solved. Same problem like the include_next <stdlib.h> . But I got that figured out.
You need to add a QMAKE_CFLAGS_ISYSTEM = -I into the .pro right under the CONFIG += c++11
3 things:
1.) the qt_test does not find the Lib += -I../ -lopencascade. even so it's there.
2.) at compile time of the opencascade.pro it asks for a file ...  etc. see picture from last entry.
So what pictures and textures and path do I add there. From your sample or .... ?
3.) Any clue how to send the feedback of the drive back to the cnc over the nml channel. This is most pressing. No step forward.


 
Last edit: 06 Sep 2021 21:57 by udoS.

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

Time to create page: 0.362 seconds
Powered by Kunena Forum