[vtk-developers] A pipeline manager to handle New/Delete + InputConnection?

John Platt jcplatt at dsl.pipex.com
Thu Jan 28 14:43:27 EST 2010


Hi,

I wonder how many developers use simple pipeline managers to handle New(), 
Delete(), SetInputConnection() etc.

Something along the lines ...

enum eFilterId { F1, F2, F3, F4 }; // filter keys

vtkFilter1* f1 = myPipeLine<vtkFilter1>.insert( F1 ); // vtkFilter1::New()
f1->SetProperty( 7 );
myPipeLine<vtkFilter4>.insert( F4 ); // vtkFilter4::New(), connect F1 to F4
myPipeLine<vtkFilter3>.insert( F3 ); // vtkFilter3::New(), connect F3 
between F1 & F4

myPipeLine.remove( F3 ); // vtkFilter3::Delete(), reconnect F1 to F4

This could take the pressure off the use of smart pointers while handling 
connectivity too.

Just a thought.

John. 





More information about the vtk-developers mailing list