- status: open --> open-accepted
vtkIndirectLookupTable has a variable vtkLookupTable
*LookupTable. When you try to update
vtkIndirectLookupTable LookupTable does not get updated
because we insert a value in the LookupTable and
therefore disable its update function in
vtkIndirectLookupTable.
Here are parts of the File vtkIndirectLookupTable.cxx:
// Consider the Lookup Table when getting the modified time
// Kilian - This M function does not do anything good,
because LookupTable->Build
// will not doe anthing. This is due to the way how
this->Build is written
// (it uses the function LookupTable->SetTebleValue
which disables LookupTable->Build)
// Therefore to update a LookupTable you have to delete
it and recreate it and assign it to this!
//----------------------------------------------------------------------------
unsigned long vtkIndirectLookupTable::GetMTime()
{
unsigned long t1, t2;
t1 = this->vtkScalarsToColors::GetMTime();
if (this->LookupTable)
{
t2 = this->LookupTable->GetMTime();
if (t2 > t1)
{
t1 = t2;
}
}
return t1;
}
There are more comments in this file.
Currently I am always deleting the LookupTable and
reassing a new one to it with the updtaed information.
That does not seem to be ideal!
Bye
Kilian