项目作者: jafrado

项目描述 :
VTK with QT+OpenGL
高级语言: C++
项目地址: git://github.com/jafrado/QVTKOpenGLWidget.git
创建时间: 2020-02-11T19:59:39Z
项目社区:https://github.com/jafrado/QVTKOpenGLWidget

开源协议:BSD 2-Clause "Simplified" License

下载


QVTKOpenGLWidget

Test app for verification of VTK built with support of QT+OpenGL

Installation

Unix
VTK with QT5 and OpenGL

  1. apt-get install vtk qt5 opengl

Windows
VTK with QT and OpenGL installed.

  1. C:\vcpkg>vcpkg install qt5 vtk[opengl] --triplet x64-windows

Build

Unix

  1. cd QVTKOpenGLWidget; mkdir build; cd !$ & cmake ..

Windows
Under Visual Studio 2019 (Community Edition) Developer Command Prompt

  1. cd QVTKOpenGLWidget
  2. cmake .. -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
  3. devenv /rebuild Release qvtkopengl.sln
  4. devenv /rebuild Debug qvtkopengl.sln

Expected Results

The application will launch as below, you can use the mouse to move around the cylinder and zoom in and out with the Middle mouse wheel.

alt text