This is a simple project with wxwidgets, VTK and C++ which shows how a random cube of VTK voxels can be displayed in WX frame. WXformbuilder is also used to develop the barebones of UI. The following image shows a sample output.
Operating system: windows 10 || Compiler used TDM GCC 10.3.0 [https://jmeubank.github.io/tdm-gcc/], || VTK 8.2.0 [https://vtk.org/download/] || wxwidgets 3.2.2.1 [https://www.wxwidgets.org/]