Commit 9ab73663 authored by Mathieu Westphal's avatar Mathieu Westphal

Fix a bug with the OpacityWidget when range was changing

When range was changing from a high minimum to a low maximum
a bug could happen where there min was not correctly set adn the opaicty widget
became white.
This fixes it and add a test for it.

Fix #19090
parent 10512274
d130cc3345381eae77ab00f57ca8a5b556123f6fba2352ffeb3aa53585c822aa8ac0e9f020b91fa03015a3595198e221153b86e7d71d78746a9986b818d52bc7
......@@ -246,6 +246,7 @@ ExternalData_Expand_Arguments(ParaViewData _
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/OBBMajorAxis.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/OBBMediumAxis.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/OBBMinorAxis.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/OpacityWidgetRange.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/PartitionedDataSet_Slice.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/PartitionedDataSet_Surface.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/PartitionedDataSetCollection_Slice.png}"
......@@ -408,6 +409,7 @@ SET (TESTS_WITHOUT_BASELINES
FindWidget.xml
ModifyGUIWindowTitle.xml
OpenHelp.xml
OpacityWidgetRange.xml
PartialArrayInLineChart.xml
PointCellDataConversion.xml
ReloadCGNSFile.xml
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar/menuSources/Alphabetical" command="activate" arguments="RTAnalyticSource" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/variableToolbar/displayColor/Variables" command="activated" arguments="RTData" />
<pqevent object="pqClientMainWindow/variableToolbar/actionEditColorMap" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar/menuFilters/Alphabetical" command="activate" arguments="Calculator" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ResultArrayName/ResultArrayName" command="set_string" arguments="RTData" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/Function/Function" command="set_string" arguments="RTData * 100" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/colorMapEditorDock/colorMapEditorPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/Properties/ColorOpacityEditor/ResetRangeToData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,34,8,/0:0/0:0" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,34,8,/0:0/0:0" />
<pqevent object="pqClientMainWindow/colorMapEditorDock/colorMapEditorPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/Properties/ColorOpacityEditor/ResetRangeToData" command="activate" arguments="" />
<pqcompareview object="pqClientMainWindow/colorMapEditorDock/colorMapEditorPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/Properties/ColorOpacityEditor/OpacityEditor/1QVTKWidget0" baseline="$PARAVIEW_DATA_ROOT/Applications/ParaView/Testing/Data/Baseline/OpacityWidgetRange.png" threshold="5" width="300" height="150" />
</pqevents>
......@@ -206,7 +206,6 @@ public:
this->ChartXY->SetAutoSize(true);
this->ChartXY->SetShowLegend(false);
this->ChartXY->SetForceAxesToBounds(true);
this->ChartXY->SetZoomWithMouseWheel(false);
this->ContextView->GetScene()->AddItem(this->ChartXY.GetPointer());
this->ContextView->SetInteractor(this->Widget->interactor());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment