[vtkusers] Avoiding deep copying of LUT's
John Platt
jcplatt at lineone.net
Thu Jun 3 12:26:55 EDT 2004
Hi Users,
I have a C++ object that is a common source of a lookup table, LUT, for
my VTK objects. This table can be one of two tables LUT1 or LUT2. Each
time the table is changed I do
LUT->DeepCopy( LUT1 ) or
LUT->DeepCopy( LUT2 )
so that LUT always has the latest table for the VTK object.
This works OK but doesn't follow the usual elegance of the VTK API - is
there a better way?
ShallowCopy() has not been implemented. Is there a particular reason for
this?
I also noticed that DeepCopy() does not change the MTime so Modified()
must be called after the copy.
No complaints - just curious :-)
John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040603/628b4f23/attachment.htm>
More information about the vtkusers
mailing list