[vtkusers] How to get the input to a filter as algorithm output?

David Gobbi david.gobbi at gmail.com
Tue Dec 15 12:33:11 EST 2009


On Tue, Dec 15, 2009 at 10:13 AM, Jérôme <jerome.velut at gmail.com> wrote:
>
> This made me look at the documentation of ShallowCopy/DeepCopy. Finally, I
> found this class:
> http://www.vtk.org/doc/nightly/html/classvtkCell.html#a573202e8c9c3b5367b35fe7ad3fdfb43
>
> where it is said that ShallowCopy is for read-only copy... Is the code
> snippet right? ShallowCopying the output of the internal filter should then
> produce a read-only output for the main filter!

The "ShallowCopy" method does not mean quite the same thing for
vtkDataSet as it does for vtkCell.  What I mean to say in C++ speak
is: vtkCell and vtkDataSet do not share a common base class that
defines a "ShallowCopy" method.  Each has its own particular
definition of ShallowCopy.

   David



More information about the vtkusers mailing list