Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forum
Open Source community
Training and e-learning
A la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forum / An initial stage for OpenCascade with Gtk, a funtional class on Gtkmm

Forum

An initial stage for OpenCascade with Gtk, a funtional class on Gtkmm
advil2005/08/26 04:21
Hi, all !

After a lot of time, and after a lot of confutions at last i have some conclutions on doing a OCC widget class on wxWidgets or on Gtk++

OpenCascade don't create its own OpenGL context, it use a windows that has a GL context activated. If you see the simple tutorial MakeBottle (that come with OCC intalletion) on view.cxx file, you can see that for the X11 case it creates a window using Xlib and it assings a GL context to this window throw GLX. After this it takes its XID (throw Qt winId() method) and create a Xw_window that wrap this X11 window to be used in the rest of opencascade calls !.

Then with this knowlage i began to work on my wxWindows widget. But on this process, it was clear to me that i need to study GTK++. A lot of work only to do a widget on wxWindows, then i decide to work directly on Gtk++, or better on Gtkmm (its C++ wrapper).

On this moment using Gtkmm, GtkGlExt , GtkGlExtmm, i wrote a widget class GtkOpenCascade3d, that only show a OCC shape on a window.

http://edwin.iband.net/opencascade/gtkmmocascade.tar.bz2

i only prove my code on linux.

Atte:
Edwin Barrios Nuñez
 
 
Latest news
  • FAQ section updated
  • OPEN CASCADE Uses Intel ® Parallel Studio XE to Introduce Parallelism into SALOME SMESH Module
  • Open CASCADE Technology 6.5.2 is available for download!

  • © OPEN CASCADE 2000 - 2012  |  Search  |  Contacts   |  Site map