Commit 8fd506e9 authored by Isaak Lim's avatar Isaak Lim

added an OVM double property visualizer option to map the alpha color channel...

added an OVM double property visualizer option to map the alpha color channel of entities outside a range to 0

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20100 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2bed372f
......@@ -134,6 +134,11 @@ void OVMPropertyVisualizerDouble<MeshT>::visualizeProp(PropType prop, EntityIter
color = (colorMin)*(1.0-t) + (colorMax)*t;
}
if (doubleWidget->doubleMapOutsideRange->isChecked()) {
if (prop[*e_it] < min || prop[*e_it] > max)
color[3] = 0.f;
}
// set color
object->colors()[*e_it] = color;
}
......
......@@ -17,7 +17,16 @@
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
......@@ -126,6 +135,13 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="doubleMapOutsideRange">
<property name="text">
<string>Map values outside of range to alpha = 0</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="doubleAbsolute">
<property name="text">
......
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