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 ?