[vtkusers] vtkLookupTable.GetColor()

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu May 19 16:22:29 EDT 2005


Chris,

	Thanks for the feeback. I recently removed this call since it was kept 
from an old approach in lookuptable.

Anyway I'll add it back with a deprecation warning

Thanks,
Mathieu
As a side note those kind of calls are dangerous in C++ since they 
return the same pointer.

Chris Want wrote:
> 
> Hi all,
> 
> I just ran one of my fairly recent python scripts that
> use the GetColor method of vtkLookupTable as
> 
> color = lut.GetColor(scalar)
> 
> It failed, and upon reading the latest docs, it appears
> that the new way is to do:
> 
> lut.GetColor(scalar, color).
> 
> I was just curious as to why this changed, and
> why the old prototype wasn't kept around as
> some kind of overloaded function?
> 
> Regards,
> Chris
> 




More information about the vtkusers mailing list