<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We can load a VTK file from an input string by using the following API<div><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(112, 61, 170); ">vtkSmartPointer<span style="color: #000000"><</span>vtkPolyDataReader<span style="color: #000000">> reader = </span>vtkSmartPointer<span style="color: #000000"><</span>vtkPolyDataReader<span style="color: #000000">>::</span><span style="color: #3d1d81">New</span><span style="color: #000000">();</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(61, 29, 129); "><span style="color: #000000">reader-></span>ReadFromInputStringOn<span style="color: #000000">();</span></div><div><span style="font-family: Menlo; font-size: 11px; ">reader-></span><span style="font-family: Menlo; font-size: 11px; color: rgb(61, 29, 129); ">SetInputString</span><span style="font-family: Menlo; font-size: 11px; ">(data, length);</span><span class="Apple-tab-span" style="white-space:pre">        </span><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I would like to do the same for VTP files.  The problem is that VTP files are in XML format and require that you use the vtkXMLPolyDataReader class.  This class however does not have methods to support reading from an input string.  Any suggestions on how to get around this issue?</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Jon Chmura</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><a href="mailto:jon.chmura@me.com">jon.chmura@me.com</a></div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>