ScalarBarWidget interactor

Hmm, i tried to impelented this but without succes. I also wanted to use vtkCommand.InteractionEvent and filtr it by interaction event, but still here was only 4 interaction event without right click press event :confused:

However, I did something like this:

  1. I added Observer to iren
  2. the Observer activates when you right-click.
  3. the Observer takes the position of the click and checks if it is inside the scalar bar.
  4. executes xyz if it is.