[vtkusers] How to use vtkAVIWriter?

Takuji Kobayashi 5222xms at gmail.com
Wed Sep 12 15:47:19 EDT 2007


Hi, Dirce

Thank you for your reply.
I can understand basic how to use vtkAVIwriter.

Regards,
--
Takuji

2007/9/12, dirce <dirce at ipn.pt>:
>
> 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
>
> _______________________________________________
> 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