[vtkusers] [vtk-developers] Started on VTK 4 compatibility removal
David Gobbi
david.gobbi at gmail.com
Wed May 4 16:54:46 EDT 2011
On Wed, May 4, 2011 at 2:37 PM, Timothy Shead <tshead at sandia.gov> wrote:
> On 5/4/11 2:23 PM, Berk Geveci wrote:
>>
>> Hi folks,
>>
>> For those that are interested, I started working on removing the VTK 4
>> backwards compatibility layer as described here:
>>
>> http://www.vtk.org/Wiki/VTK/Remove_VTK_4_Compatibility
>
> Just one question - the article mentions "Since data objects can no longer
> know about their producers ..." - what is the impact on the use-case where a
> data structure is created and populated in-place, then used as the input to
> a pipeline?
>
> filter->SetInputConnection(0, data_structure->GetProducerPort());
>
> ... I'd really hate to let this go.
>
> Cheers,
> Tim
It's my understanding that in that case, you would use
filter->SetInput(0, data_object);
or
filter->SetInput(data_object);
with the expectation that this will not create a pipeline connection,
i.e. SetInputConnection() and SetInput() are no longer equivalent.
- David
More information about the vtkusers
mailing list