Based on your data type you can pick the class for the writer and then look at examples on the doxygen pages. e.g for writing polydata, you use vtkXMLPolyDataWriter. The examples are:
http://vtk.org/doc/nightly/html/c2_vtk_e_9.html#c2_vtk_e_vtkXMLPolyDataWriter Utkarsh On Mon, Apr 25, 2011 at 2:09 PM, ali rostai <ali.ros...@gmail.com> wrote: > Thank you, > > excuse me, forgot to cc mail for paraview list, too. > I want to find some examples of how to use vtkXMLWriters. > > Regards, > Ali > > On Mon, Apr 25, 2011 at 8:49 AM, Utkarsh Ayachit > <utkarsh.ayac...@kitware.com> wrote: >> >> Ali, >> >> http://www.vtk.org/VTK/img/file-formats.pdf desribes the VTK file >> formats. It also provides an overview of the VTK data structures. >> Additional information about the VTK data model can be found on >> http://www.paraview.org/Wiki/ParaView/Users_Guide/Table_Of_Contents >> (sepecifically >> http://www.paraview.org/Wiki/ParaView/Users_Guide/VTK_Data_Model >> ) >> >> You have two alternatives, either you can write the raw xml yourself, >> or map your data to the VTK data model and the use the vtkXMLWriters >> to write the data out. >> >> Utkarsh >> >> On Sun, Apr 24, 2011 at 12:45 PM, ali rostai <ali.ros...@gmail.com> wrote: >> > Hi, >> > >> > I am doing a simulation (c++) on unstructured grid and want to use >> > paraview >> > for visualization. >> > >> > I know vtk provides an interface for writing vtk xml files but I can not >> > find any introductory >> > guide to get started. >> > >> > Can any one provide me examples or any guides available? >> > >> > Thanks, >> > Ali >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the ParaView Wiki at: >> > http://paraview.org/Wiki/ParaView >> > >> > Follow this link to subscribe/unsubscribe: >> > http://www.paraview.org/mailman/listinfo/paraview >> > >> > > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview