[vtkusers] vtkLookupTable and memory
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon May 8 18:44:07 EDT 2006
Eugene Kim wrote:
> Hi everyone,
>
> Just a question to anyone who might know. Does the
> SetNumberOfTableValues function in vtkLookupTable actually perform any
> memory operations? To clarify, does it increase the size of the array
> upon a new larger number and decrease the size upon a smaller one in
> memory?
vtkLookupTable internally uses a vtkUnsignedCharArray. The call of
SetNumberOfTableValues actually calls SetNumberOfTuples which makes sure
to allocate the proper memory size.
HTH
Mathieu
More information about the vtkusers
mailing list