How to change mouse cursor when we mose the mouse in ResliceCursorWidget

Hey,

Actually when we click at the sphere in center of an actor in ResliceCursorWidget, the mouse cursor turns to another form:

Screenshot from 2022-11-25 13-26-01

I need to change this form, to show “Nothing” in case we click and move the mouse cursor, but I don’t know why.

I want to do this because this actual form of cursor doesn’t let us to see what is behind, it’s masking the vue.

Look at publicAPI.updateCursor in ResliceCursorWidget/behavior.js. You may have to inherit from it to overload it.

Thank you for your answer,

publicAPI.updateCursor = function () {
   switch (model.activeState.getUpdateMethodName()) {
     case InteractionMethodsName.TranslateCenter:
       model._apiSpecificRenderWindow.setCursor('move'); //none

       break;

I modified the setCursor value to none, but in this case I can’t see the cursor even when I hover over it, is there a way to say : set the cursor to none only when I click on it?

Not that I know of.

Hi,If you need to change the style, you need to make svg changes in RenderWindow.js

1 Like

Thank you for your answer, do you have an example of that?