Re: Showing a VTK view as a wxPanel
Andrew Trevorrow <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAOn6ko2gYqdUdAdQnXfHOJBvwXb+a9_HeEA+fdc6EM-3y4d7QQ@mail.gmail.com> |
You might want to look at Ready, a wxWidgets app that uses VTK: https://github.com/GollyGang/ready In particular, see wxVTKRenderWindowInteractor.* in src/gui. Hope that helps, Andrew On Fri, Sep 22, 2023 at 9:41 PM 'Alex Bettarini' via wx-users < [email protected]> wrote: > I have already posted this in the wXWidgets forums, but I am restating it > here for correctedness. > > I need to add 3D functionality to my project by using VTK in a wxWidgets > GUI with all the usual buttons and controls. > These are my requirements: > > 1. embed VTK as a wxPanel, or wxFrame, or wxGLCanvas subclass, or anything > that achieves the same result > 2. C++ project using CMake on macOS Windows and Linux > 3. after drawing the VTK panel I need to overlay graphics elements drawn > with OpenGL (Core profile). Luckily VTK is also using OpenGL, so I need to > reuse the same graphics context, but using my own OpenGL shaders. > > What I have done so far: > - I am using wxWidgets 3.2.2.1 and VTK 9.3.0.rc1 > - I have already created a first Hello World project based on > https://github.com/harshn05/wxvtk-UpdatedOnJan23_2018 > On macOS I needed to make some minor edits to build successfully but when > I run it nothing appears in the VTK area. > > Can anybody please help with a basic, up-to-date, tested (possibly macOS > first) example to get me started ? > > -- > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > --- > You received this message because you are subscribed to the Google Groups > "wx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/wx-users/1b52314c-c4d9-4f29-ad87-c2967d170958n%40googlegroups.com > <https://groups.google.com/d/msgid/wx-users/1b52314c-c4d9-4f29-ad87-c2967d170958n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CAOn6ko2gYqdUdAdQnXfHOJBvwXb%2Ba9_HeEA%2Bfdc6EM-3y4d7QQ%40mail.gmail.com.