![Sharjith Naramparambath's picture Sharjith Naramparambath's picture](https://dev.opencascade.org/sites/default/files/styles/user/public/pictures/picture-61-1617210098.jpg?itok=3Q1b9hjh)
Wed, 09/11/2002 - 12:45
Forums:
Hi,
Has anyone used GTK or glade for making GUI for cascade applications? If yes can I get some help about it?
I have built the basic window and controls using GTK but don't know how to integrate a cascade viewer and functionality to it.
Plesae help.
N. Sharjith
Wed, 09/11/2002 - 14:15
Hi,
not my GUI, but you could try the following link:
http://sourceforge.net/projects/gnocad/
Perhaps it helps.
Best regards,
Patrik Müller
Fri, 11/03/2006 - 12:40
Hi
I think this link is not available now.
Pl. send the correct link
regards
-gp
Fri, 11/03/2006 - 17:52
Hi,
the link is about 4 years old. I think sourceforge has removed the project :-(
Greets,
Patrik
Sun, 11/05/2006 - 13:42
Anyway, OpenCascade is designed so that can run almost on any drawable "thing", i.e. any window where OpenGL can open a context. For example, in Windows you can use OpenCascade on any HWND you pass to the viewer/window/driver set.
So I suppose the same thing it's true for X. I don't know X programming, but you should find the "Handle" of the GTK window and create a Viewer/View on it. Then you pass all the required events to the view and the game is over :)
Good Luck.
Mon, 11/06/2006 - 09:48
http://edwin.iband.net/opencascade/gtkmmocascade.tar.bz2
http://www.google.com/codesearch?q=makebottle&btnG=Search+Code
Fri, 07/10/2009 - 16:03
I need use OpenCascade 6.1 for Qt3.
Thu, 11/09/2006 - 17:32
Dear all,
i have cooked up a sample code based on gtk gui finally with some reference of gtkmm code from this forum itself. i have done it using glade as the interface builder. the appication is complete like the data exchange sample provided with occ using qt. but it is single document only. i would like to share the code to the forum but donot have a webspace to host . if anyone is interested, i can mail him the tar file of the project.
Thu, 11/09/2006 - 18:45
How big is the file?
You can send it "peter at dolbey dot freeserve dot co dot uk" (with the obvious character replacments) and I could see if it would fit on my site, along with my Qt4 demo. It would be interesting to see how these two demos might be aligned.
Pete
Mon, 11/27/2006 - 13:59
Hi
Is the code available to the forum users ?
What are the tools/libraries used ?
thanks
- gpr
Mon, 11/27/2006 - 15:12
Is the code available to the forum users? Of course. Visit http://myweb.tiscali.co.uk/dolbey/QtOpenCascade.
Its designed to run with Qt 4.2.1 and OCC 6.1 compiled with VS2005. The main design intention of the current demo is to prove that OCC and Qt can be linked without using any Qt3 support objects. However beware of a couple of gotcha's.
1. The QtOpenCascadeWin.pri file contains references to a bunch of libraries you may not have if you haven't recompiled OpenCASCADE from source. These are the wok*.libs and the libs for DRAWEXE. You can remove these from the pri file.
2. I have built OCC 6.1 and Qt 4 on Visual Studio 2005 at home. There may be problems with memory allocation if you mix VS2005 and VS2003 binaries. I have tested that the modification above works fine using VS2003, Qt4 and the standard dlls (build with VS2003 on Windows).
The sample is still a work in progress - I only had time to re-edit the web pages slightly over the week-end. There's some discussion on http://www.opencascade.org/org/forum/thread_10338/
I've added some minor grid management functionality since the original upload ,an experimental "point on plane" algorithm, and I'm adding some file readers into the code. But for the last couple of weeks I've been looking at some the "old" OpenCASCADE projects to try to determine the right direction for the next version. If anyone has knowledge of any activity with FreeCAD, exoTK and so on, please let me know via this forum. And I'm considering taking "requirements" from others as well.
Pete
Mon, 11/27/2006 - 15:21
p.s. Unfortunately if its the GTK demo your after, Nair never contacted me.
Mon, 11/27/2006 - 15:26
Thanks .. i was looking for the GTK version. ( as QT is not free
for deployment)
Have u built using Qt and OCC on Linux ?
Mon, 11/27/2006 - 15:52
No, but theoretically nothing in the example source code is hardwired to Win32. I did leave the WNT compile time directive in the .pro file without a "win32:" prefix, and it should be possible to create a QtOpenCascadeUnix.pri file to enable qmake to create makefiles that link to Unix libs and reference this in the .pro file.
Pete
Wed, 11/29/2006 - 11:58
Good news for those interested. Nair has posted his GTK sample to me and it should be available for download by the end of the week (hopefully tonight). I'll update the forum when its available.
Pete
Tue, 07/05/2022 - 17:53
Hello. Could u please give me the project sample you made (Gtk and occt)? I am going crazy for 3 days traying to link occt and gtk widget) Thank u in advance