[vtkusers] serialize a vtk object to a xml string, not to save it to a file

Xiaoping Chen xpchen5871 at gmail.com
Mon Aug 8 16:45:33 EDT 2011


Could someone help on this issue (use a vtkXMLPolyDataWriter instance
to create a serialized vtk xml string)?

On Thu, Jul 28, 2011 at 4:07 PM, Xiaoping Chen <xpchen5871 at gmail.com> wrote:
> Hello,
>
> I am creating a client-server application. The server will be
> Java-based, running in Linux and the client is C++-based, running in
> Windows.
>
> The server will map our internal data into the VTK objects and
> serialized them into the xml strings and then send to the client.
>
> I am able to do this in C++ but not able to do it in VTK Java wrapper.
>  vtkXMLPolyDataWriter allows me to serialize the vtk object and save
> it to a file but NOT allow me to turn it into a xml string.
>
> Please help.
>
> Eric
>



More information about the vtkusers mailing list