[vtkusers] How to use vtkAVIWriter?

dirce dirce at ipn.pt
Wed Sep 12 06:35:47 EDT 2007


This is how i have used the vtkAVIWriter:

	vtkAVIWriter *avi=vtkAVIWriter::New();
	vtkWindowToImageFilter *w2i=vtkWindowToImageFilter::New();
	w2i->SetInput(renWin0);//the render window
	avi->SetFileName(m_Path+"TestAVIWriter2.avi"); 
	avi->SetInputConnection(w2i->GetOutputPort()); 
	avi->Start(); 
		//
		///Do something  that alters each frame
		//
		w2i->Modified();//importante 
		avi->Write(); 
	} 
	avi->End(); 

//clean
	avi->Delete();
	w2i->Delete();


Hello,

I'm trying to make a video of inside of curvy tube expressed by
example Medical1.cxx.
This problem may be solved by vtkAVIWriter.

But I don't know how to use vtkWriter.
In this case, do I need to set the coordinates of tube for vtkCamera
or vtkAVIWriter?
If so, please let me know the details.
Or are there the other techniques ?


Regards,

--
Takuji KOBAYASHI
Technologico de Monterrey
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list