Commit 43679c8c authored by Berk Geveci's avatar Berk Geveci
Browse files

Added option to interpolate colors before mapping

parent 3556db3a
......@@ -83,7 +83,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPVData);
vtkCxxRevisionMacro(vtkPVData, "1.289");
vtkCxxRevisionMacro(vtkPVData, "1.290");
int vtkPVDataCommand(ClientData cd, Tcl_Interp *interp,
int argc, char *argv[]);
......@@ -2923,6 +2923,11 @@ void vtkPVData::SaveInBatchScript(ofstream *file)
<< " GetProperty ColorMode] SetElements1 "
<< part->GetPartDisplay()->GetMapper()->GetColorMode()
<< endl;
*file << " [$pvTemp" << partD->GetGeometryID()
<< " GetProperty InterpolateColorsBeforeMapping] SetElements1 "
<< part->GetPartDisplay()->GetMapper()->GetInterpolateScalarsBeforeMapping()
<< endl;
*file << " [$pvTemp" << partD->GetGeometryID()
<< " GetProperty Representation] SetElements1 "
......
......@@ -66,6 +66,14 @@
default_values="0">
</IntVectorProperty>
<IntVectorProperty
name="InterpolateColorsBeforeMapping"
command="SetInterpolateScalarsBeforeMapping"
number_of_elements="1"
default_values="0">
<BooleanDomain name="bool"/>
</IntVectorProperty>
<StringVectorProperty
name="ColorArray"
command="SelectColorArray"
......
Supports Markdown
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