Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ParaView
ParaView
Commits
b8ce4395
Commit
b8ce4395
authored
Oct 31, 2018
by
Cory Quammen
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Invert option to Threshold Filter
Also modified Threshold.xml test to exercise the new option.
parent
7a1fc573
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
1 deletion
+19
-1
Applications/ParaView/Testing/XML/CMakeLists.txt
Applications/ParaView/Testing/XML/CMakeLists.txt
+1
-1
Applications/ParaView/Testing/XML/Threshold.xml
Applications/ParaView/Testing/XML/Threshold.xml
+4
-0
Documentation/release/dev/threshold-invert-option.md
Documentation/release/dev/threshold-invert-option.md
+3
-0
ParaViewCore/ServerManager/SMApplication/Resources/filters.xml
...iewCore/ServerManager/SMApplication/Resources/filters.xml
+10
-0
Testing/Data/Baseline/ThresholdInvert.png.sha512
Testing/Data/Baseline/ThresholdInvert.png.sha512
+1
-0
No files found.
Applications/ParaView/Testing/XML/CMakeLists.txt
View file @
b8ce4395
...
@@ -156,6 +156,7 @@ SET (TESTS_WITH_INLINE_COMPARES
...
@@ -156,6 +156,7 @@ SET (TESTS_WITH_INLINE_COMPARES
${
CMAKE_CURRENT_SOURCE_DIR
}
/SaveLargeScreenshot.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/SaveLargeScreenshot.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Slice.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Slice.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TestIsoVolume.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TestIsoVolume.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Threshold.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TransferFunctionResetOnVisibilityChange.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TransferFunctionResetOnVisibilityChange.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UpdateTransferFunctionRanges.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UpdateTransferFunctionRanges.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/XYChart.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/XYChart.xml
...
@@ -499,7 +500,6 @@ list(APPEND TESTS_WITH_BASELINES
...
@@ -499,7 +500,6 @@ list(APPEND TESTS_WITH_BASELINES
${
CMAKE_CURRENT_SOURCE_DIR
}
/TimeInspector.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TimeInspector.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TimeStepProgressBar.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/TimeStepProgressBar.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Tessellate.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Tessellate.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/Threshold.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo1.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo1.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo2.xml
${
CMAKE_CURRENT_SOURCE_DIR
}
/UndoRedo2.xml
...
...
Applications/ParaView/Testing/XML/Threshold.xml
View file @
b8ce4395
...
@@ -16,4 +16,8 @@
...
@@ -16,4 +16,8 @@
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ThresholdBetween/ThresholdBetween_1/DoubleLineEdit"
command=
"set_full_precision_text"
arguments=
"0.44"
/>
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/ThresholdBetween/ThresholdBetween_1/DoubleLineEdit"
command=
"set_full_precision_text"
arguments=
"0.44"
/>
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/Accept"
command=
"activate"
arguments=
""
/>
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/Accept"
command=
"activate"
arguments=
""
/>
<pqevent
object=
"pqClientMainWindow/variableToolbar/actionScalarBarVisibility"
command=
"set_boolean"
arguments=
"false"
/>
<pqevent
object=
"pqClientMainWindow/variableToolbar/actionScalarBarVisibility"
command=
"set_boolean"
arguments=
"false"
/>
<pqcompareview
object=
"pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport"
baseline=
"$PARAVIEW_DATA_ROOT/Baseline/Threshold.png"
width=
"300"
height=
"300"
/>
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/Invert/CheckBox"
command=
"set_boolean"
arguments=
"true"
/>
<pqevent
object=
"pqClientMainWindow/propertiesDock/propertiesPanel/Accept"
command=
"activate"
arguments=
""
/>
<pqcompareview
object=
"pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/CentralWidgetFrame/Viewport"
baseline=
"$PARAVIEW_DATA_ROOT/Baseline/ThresholdInvert.png"
width=
"300"
height=
"300"
/>
</pqevents>
</pqevents>
Documentation/release/dev/threshold-invert-option.md
0 → 100644
View file @
b8ce4395
# Threshold filter has new Invert option
The
**Threshold**
filter usually extracts cells that fall within lower and upper bounds of a data array. A new
**Invert**
option instead causes it to extract cells outside the lower and upper bounds.
ParaViewCore/ServerManager/SMApplication/Resources/filters.xml
View file @
b8ce4395
...
@@ -7354,6 +7354,16 @@ array.
...
@@ -7354,6 +7354,16 @@ array.
results.
results.
</Documentation>
</Documentation>
</IntVectorProperty>
</IntVectorProperty>
<IntVectorProperty command="SetInvert"
default_values="0"
name="Invert"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>Invert the threshold results. That is, cells that would have been in the
output with this option off are excluded, while cells that would have been excluded from
the output are included.
</Documentation>
</IntVectorProperty>
<Hints>
<Hints>
<Visibility replace_input="2" />
<Visibility replace_input="2" />
</Hints>
</Hints>
...
...
Testing/Data/Baseline/ThresholdInvert.png.sha512
0 → 100644
View file @
b8ce4395
6bd8a3546ac58c25448d06dd7ec385021499c9633629a2b96f88ed49abf2cd9c383fa7d9658195705aa21412581ca4240760c8f0f7a6c8a979ba980b907cba62
Cory Quammen
@cory.quammen
mentioned in commit
f6f7672d
·
Dec 04, 2018
mentioned in commit
f6f7672d
mentioned in commit f6f7672d155cbad463f7fb022969c15b9617ca9f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment