1 #include <visp3/ustk_core/usConfig.h>
3 #ifdef USTK_HAVE_VTK_QT
4 #include "usVirtualNeedle.h"
5 #include <vtkSmartPointer.h>
6 #include <vtkSphereSource.h>
8 int main(
int argc,
char **argv)
11 QApplication app(argc, argv);
17 vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New();
18 sphereSource->SetCenter(0, 0.01, 0.01);
19 sphereSource->SetRadius(0.01);
20 sphereSource->Update();
24 app.setActiveWindow(&scene);
26 scene.showMaximized();
33 int main() { std::cout <<
"Install vtk with qt4 or qt5 support to run this tutorial." << std::endl; }
Class used to render a virtual needle movable in a 3D environment.
void setMeshInScene(vtkPolyData *mesh)