Use vtkActor2D To Make 2D Button On Screen

Environment: VTK8.2.0 + Qt 5.12.2. I have tried vtkImageActor, vtkActor2D and vtkButtonWidget to make 2D button in different scenes. After comparing them, I think vtkActor2D is the most convenient and the safest solution. Here is an example using vtkButtonWidget, Use vtkButtonWidget To Create 2D Button. vtkImageActor is a 3D actor, we need Read more…

Check Point Inside Circle On Screen

This article is a sequel to the previous one https://www.weiy.city/2023/04/draw-a-circle-around-mouse-postion-on-screen/. Let’s check if the vertex of cone is inside the red circle when we move mouse. CustomIteractorStyle.cpp UPaintBrush.cpp UPaintBrush.h Output:

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

X