[vtkusers] // now this looks like a pipeline :-)

Paul Tait paul at opes.com.au
Sun Mar 9 19:54:56 EST 2003


Hi All

Has anybody thought of using the << operator to build a pipeline ???


w2i           = vtkWindowToImageFilter::New();
jpegSave = vtkJPEGWriter::New();

// w2i->SetInput (myWindow);
// jpegSave->SetInput(w2i->GetOutput());

// now this looks like a pipeline :-)
jpegSave << w21 << myWindow

jpegSave->SetFileName(nomeFile);
jpegSave->SetQuality(95);
jpegSave->Write();





More information about the vtkusers mailing list