occQt | A simple OpenCASCADE Qt demo

 by   eryar C++ Version: v1.0 License: MIT

kandi X-RAY | occQt Summary

kandi X-RAY | occQt Summary

occQt is a C++ library. occQt has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

occQt
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              occQt has a low active ecosystem.
              It has 134 star(s) with 90 fork(s). There are 25 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 16 have been closed. On average issues are closed in 215 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of occQt is v1.0

            kandi-Quality Quality

              occQt has 0 bugs and 0 code smells.

            kandi-Security Security

              occQt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              occQt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              occQt is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              occQt releases are available to install and integrate.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of occQt
            Get all kandi verified functions for this library.

            occQt Key Features

            No Key Features are available at this moment for occQt.

            occQt Examples and Code Snippets

            No Code Snippets are available at this moment for occQt.

            Community Discussions

            QUESTION

            How to embed opencascade V3d_View in gtkmm widget
            Asked 2021-Jul-29 at 16:53

            I'm trying to port the code from https://github.com/eryar/occQt to gtkmm, by creating a custom widget and overriding the Gtk::widget::on_realize() method like

            ...

            ANSWER

            Answered 2021-Jul-29 at 16:53

            I haven't used GTK since university, so my experience is pretty basic here.

            There are two basic approaches for embedding OpenGL-based viewer into GTK:

            1. Ask OCCT to create OpenGL context for a native window taken from a normal Widget or entire window.
            2. Wrap existing OpenGL context created by GUI library itself, e.g. Gtk::GLArea.

            Your current code tries to follow the first approach used by conventional samples for Qt Widgets and MFC coming with OCCT. I guess it should be feasible, but implies some limitations and issues with mixing GTK widgets, as GTK will not be aware of OpenGL usage.

            In contrast, Gtk::GLArea looks like a "modern" way for embedding OpenGL renderer designed by GTK developers and expected to work transparently.

            Therefore, I've tried implementing a Hello-World sample using Gtk::GLArea (based on a development snapshot of OCCT 7.6.0dev):
            https://github.com/gkv311/occt-samples-gtk

            I don't bring the whole code of the sample here, as it is quite large in size. Putting OCCT Viewer into Gtk::GLArea includes some tricky parts like:

            • Wrapping native Window into Aspect_Window (it could be also Xw_Window like in your sample, more general Aspect_NeutralWindow or another subclass).
            • Wrapping OpenGL context created by Gtk::GLArea into Aspect_RenderingContext/OpenGl_Context.
            • Wrapping offscreen buffer (FBO) used by Gtk::GLArea for rendering content into OpenGl_FrameBuffer.
            • Putting all viewer redraws into dedicated callback for Gtk::GLArea::signal_render().
            • Redirecting user input to viewer (with help of AIS_ViewController).

            It is important to note, that GTK may be run in different context:

            • X11 server - X Window is created and GLX is used for OpenGL.
              This is default OCCT configuration for Linux;
            • Wayland - native window is not X Window and EGL is used for OpenGL context.
              OCCT does support EGL but as a dedicated configuration as alternative to GLX, while GTK handles this in runtime somehow. In addition, OCCT does not (yet) provide any wrapper for a Wayland native window, though it might be not critical for using.
            • GTK also has an option to use OpenGL ES instead of OpenGL.

            Initially I expected Gtk::GLArea to work natively, but instead a very basic sample (without OCCT viewer) displays artifacts to me (widgets randomly blacked) on Xubuntu 18.04, though it works as expected on Ubuntu 21.04 (within Xorg session). I don't know if it is a bug fixed in GTK implementation, or there is something that should be fixed in a sample to workaround problem on older Linux.

            Source https://stackoverflow.com/questions/68541925

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install occQt

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/eryar/occQt.git

          • CLI

            gh repo clone eryar/occQt

          • sshUrl

            git@github.com:eryar/occQt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link