Skip to content
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

Change the range in the color map editor => update selection widget min/max line edits #746

Conversation

FedeMPouzols
Copy link
Contributor

This fixes #12544 The VSI selection widget should react properly when you change the range of the color scale in the Paraview "color map editor". This is done here with a Vtk callback on the RGBPoints property of the Vtk proxy for the color lookup table of the color editor.

To test:

  • Open the Paraview color map editor and use it to change the color scale range. Your changes should reflect in the VSI color selection widget (the minimum and maximum line edits).
  • Play with colors and see if they behave consistently. I'm not totally sure if this is what we wanted to do, so let's chat about it (I'm putting this as "In progress" for now).

Release notes: See here http://www.mantidproject.org/ReleaseNotes_3_5_UI_Changes, in "3D Visualisation (VSI)".

@FedeMPouzols
Copy link
Contributor Author

I'm going to see if we can also keep the checkbox "auto color scaling" in sync with the Paraview map editor. That should be coming in a next commit a bit later today...

@FedeMPouzols
Copy link
Contributor Author

I think the "auto color scaling" check box behaves well now (in sync with the Paraview color map editor).

But maybe we should still have a chat. Now that the VSI simple ColorSelectionWidget is updated by the ParaQ color map values, it turns out that we get different color ranges when switching between views. My first guess would be that we still want to enforce the default VSI auto-scale initially on all the views? Or is it better to use the scale that the ParaQ color editor produces by default?

I also noticed another oddity. This is in "use log" tick boxes. They are connected "left to right" but not "right to left". This could be easy to fix, if only I could find what vtk property is involved in that log scale check box.

@FedeMPouzols
Copy link
Contributor Author

Aha, I think I can have the log-scale issue fixed a bit later today still in time for tonight's build.

@mantid-roman mantid-roman self-assigned this May 14, 2015
@mantid-roman
Copy link
Contributor

Can I start testing?

@FedeMPouzols
Copy link
Contributor Author

I think this should be ready now. The last commits should have:

  • fixed the issue with the log-scale check boxes
  • mitigated the issue with the auto-scaled colors when switching views

About the second point we still have a glitch when you switch to the multislice view. You'll often lose the auto-scale state, so the user needs to click again on 'auto scale' if it wants the default vsi auto range instead of the Paraview range. If I don't find a very last minute solution for this, it will have to be a new ticket to sort out later.

@FedeMPouzols
Copy link
Contributor Author

The windows failure is an unrelated issue of one of the CI machines.

@NickDraper
Copy link
Contributor

Windows build on my PC is fine

@NickDraper
Copy link
Contributor

Interaction seems a great improvement to me. This alters some of the same classes as the change Anton has just put in. Do we want to check they work nicely together?

@FedeMPouzols
Copy link
Contributor Author

I'm going to merge the latest master and see if everything is still fine.

@NickDraper
Copy link
Contributor

On windows it looks good, but this needs a check on Mac as we saw some ealier behaviour that was suspicious (max and min value not being updated)

@FedeMPouzols FedeMPouzols modified the milestones: Release 3.5, Release 3.4 May 15, 2015
…to_color_selection_widget_lineedits

Conflicts:
	Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/MdViewerWidget.cpp

Sort out merge conflict from when we moved setBackgroundColor to the bottom of switchViews, re #11706
@eXeC64
Copy link
Contributor

eXeC64 commented Jun 4, 2015

There's a merge conflict currently.

…_link_color_map_editor_to_color_selection_widget_lineedits

Conflicts:
	Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/ViewBase.cpp

spurious conflict in principle, re #11706
@OwenArnold OwenArnold self-assigned this Jun 10, 2015
OwenArnold added a commit that referenced this pull request Jun 11, 2015
…olor_map_editor_to_color_selection_widget_lineedits

Change the range in the color map editor => update selection widget min/max line edits
@OwenArnold OwenArnold merged commit 560a351 into master Jun 11, 2015
@OwenArnold OwenArnold deleted the 11706_color_map_vsi_link_color_map_editor_to_color_selection_widget_lineedits branch June 11, 2015 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Colour maps in VSI
5 participants