Commit 8367ed48 authored by Charles Law's avatar Charles Law

Consider MTime of lookuptable

parent 96ea8fd7
......@@ -58,6 +58,23 @@ vtkImageMapToRGBA::~vtkImageMapToRGBA()
}
}
//----------------------------------------------------------------------------
unsigned long vtkImageMapToRGBA::GetMTime()
{
unsigned long t1, t2;
t1 = this->vtkImageToImageFilter::GetMTime();
if (this->LookupTable)
{
t2 = this->LookupTable->GetMTime();
if (t2 > t1)
{
t1 = t2;
}
}
return t1;
}
//----------------------------------------------------------------------------
void vtkImageMapToRGBA::ExecuteInformation()
{
......
......@@ -66,6 +66,10 @@ public:
vtkSetObjectMacro(LookupTable,vtkScalarsToColors);
vtkGetObjectMacro(LookupTable,vtkScalarsToColors);
// Description:
// We need to check the modified time of the lookup table too.
unsigned long GetMTime();
protected:
vtkScalarsToColors *LookupTable;
......
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