MantisBT - VTK
View Issue Details
0006955VTK(No Category)public2008-05-05 12:002013-04-05 19:57
Ken Moreland 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
 
 
0006955: vtkInformation::CopyEntry ignores deep flag
Many of the forms of the CopyEntry method in vtkInformation ignore their deep flag. Instead they always do a shallow copy, which of course can lead to some surprising results when a DeepCopy of a vtkInformation or its entries is performed.

I attached a patch to vtkInformation.cxx that should fix the problem.
No tags attached.
child of 0006956closed Utkarsh Ayachit ParaView Temporal statistics filter output reports wrong ranges 
patch vtkInformation.cxx.patch (4,474) 2008-05-05 12:00
https://www.vtk.org/Bug/file/6440/vtkInformation.cxx.patch
Issue History
2008-05-05 12:00Ken MorelandNew Issue
2008-05-05 12:00Ken MorelandFile Added: vtkInformation.cxx.patch
2008-05-05 12:20Ken MorelandRelationship addedchild of 0006956
2008-08-26 13:49Utkarsh AyachitStatusbacklog => tabled
2008-08-26 13:49Utkarsh AyachitAssigned To => Utkarsh Ayachit
2008-08-27 08:59Utkarsh AyachitNote Added: 0013199
2008-08-27 10:18Ken MorelandNote Added: 0013202
2008-08-27 11:08Utkarsh AyachitStatustabled => @80@
2008-08-27 11:08Utkarsh AyachitResolutionopen => fixed
2008-08-27 11:08Utkarsh AyachitNote Added: 0013207
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:57Berk GeveciStatuscustomer review => closed

Notes
(0013199)
Utkarsh Ayachit   
2008-08-27 08:59   
It seems like none of the vtkInformationKey subclasses provide an implementation for DeepCopy().
(0013202)
Ken Moreland   
2008-08-27 10:18   
Hmm. I must not have noticed that because in my case the missing keys were being recreated again after the copy.

It seems to me that vtkInformationKey::DeepCopy should be a pure virtual class (like ShallowCopy), which would force all of the subclasses to provide an implementation.
(0013207)
Utkarsh Ayachit   
2008-08-27 11:08   
Committing Ken's patch to make vtkInformation::Copy()
respect the deep-copy flag. Also added default vtkInformationKey::DeepCopy()
implementation which simply does a shallow copy.

/cvsroot/ParaView3/ParaView3/VTK/Common/vtkInformation.cxx,v <-- VTK/Common/vtkInformation.cxx
new revision: 1.27; previous revision: 1.26
/cvsroot/ParaView3/ParaView3/VTK/Common/vtkInformationKey.h,v <-- VTK/Common/vtkInformationKey.h
new revision: 1.12; previous revision: 1.11