No I didn&#39;t... do I have to?<br><br>What if the data is connected to two mappers and two QVtkWidgets ?&nbsp; Or none?&nbsp; Do I need to remember what data is connected to which renderers and then manually call Render() ?<br><br>
thanks,<br>Paul<br><br><div class="gmail_quote">2008/12/3 Amy Squillacote <span dir="ltr">&lt;<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Paul,<br>
<br>
Did you try calling &quot;Render&quot; after you updated your dataset?<br>
<br>
- Amy<br>
<br>
Paul Harris wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Hi all,<br>
<br>
This is hopefully a silly question, but how do I &quot;push though&quot; changes made on a vtkPolyData object?<br>
<br>
In context, I have a pipeline set up with a vtkPolyData object attached to a mapper which renders to a QVtkWidget.<br>
<br>
I want to update the contents of that object like so...<br>
vtkPolyData * dataSet = the_pipeline_instance;<br>
<br>
 &nbsp; &nbsp; &nbsp;dataSet-&gt;Reset();<br>
 &nbsp; &nbsp; &nbsp;dataSet-&gt;SetPoints(points.get());<br>
 &nbsp; &nbsp; &nbsp;dataSet-&gt;SetVerts(verts.get());<br>
 &nbsp; &nbsp; &nbsp;dataSet-&gt;GetPointData()-&gt;AddArray(sizes.get());<br>
 &nbsp; &nbsp; &nbsp;dataSet-&gt;GetPointData()-&gt;AddArray(colours.get());<br>
<br>
where points, verts, sizes, colours are all set up prior.<br>
<br>
Then I tried to do<br>
dataSet-&gt;Modified();<br>
and even<br>
dataSet-&gt;Update();<br>
<br>
but the rendered image did not change... until i rotated the model.<br>
<br>
Do I have to call Update() on the renderer, or the mapper, or the QVtkWidget ? &nbsp;Doesn&#39;t Modified() notify the filters upstream that something has changed ?<br>
<br>
<br>
and a secondary question, I am using Reset() above, but it mentions that it does not free memory...<br>
Is there another way I should be replacing the contents of my data object ?<br>
<br>
thanks,<br>
Paul<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
 &nbsp;<br>
</blockquote>
<br>
-- <br>
Amy Squillacote &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone: (256) 726-4839<br>
Computer Scientist &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax: (256) 726-4806<br>
CFD Research Corporation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL &nbsp;35805<br>
<br>
<br>
</blockquote></div><br>