-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Widget handles not pickable within vtkVolume #3163
Comments
Do you confirm that you have the same behavior with the ImageCroppingWidget example ? https://kitware.github.io/vtk-js/examples/ImageCroppingWidget.html Can you try with older versions of VTK.js, I wonder if it is a regression... |
After the test it appears that the behavior has been like this in older versions as well. To me it seems clear that the handles should remain pickable even if inside a volume but maybe this does not fit in the scope of a bug. What do the maintainers think? |
You can disable the picking of the volume rendering with Ideally (if you have time or funding...), the Volume rendering mapper, for the picking pass, should render ONLY where opacity > 0 (or a specific threshold). |
Thank you for the pointer. Setting the picking of the volume to false works perfectly in any version tested (27 and 32.5.1 used in my project). However in my project it didn't work at first. It turns out that the flag was reinitialized to true at some point. After setting it right before creating the widget it worked well. |
Bug description
I am trying to create a box, that highlights a certain area of a CT volume, that needs to be resizable.
I tried creating a widget based on
vtkImageCroppingWidget
to add handles to the box for resizing.However, when placing the widget within the CT volume, the handles are not accessible anymore.
Steps to reproduce
vtkVolume
to a the renderervtkWidgetManager
and avtkImageCroppingWidget
Detailed Behavior
Once the widget's handles are contained within the volume, they are no longer accessible with the cursor.
Not accessible meaning that the usual hand cursor to select the handle doesn't show anymore and we can not manipulate the handle.
Expected Behavior
There should be an option that allows widget handles to be prioritized over other props.
The behavior should be similar to the following example: Vtk BoxWidget Example
Environment
The text was updated successfully, but these errors were encountered: