You should post the question to the VMTK mailing list then.. <br><br><div class="gmail_quote">On Wed, Oct 28, 2009 at 10:41 AM, Zampini Samuele <span dir="ltr"><<a href="mailto:samuele.zampini@epfl.ch">samuele.zampini@epfl.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks a lot...<br>
<br>
Actually, I did a stupid mistake since I am using a vmtk instance and not a vtk one.<br>
<br>
So that I have to choose a different way out...<br>
<br>
Could you help???<br>
<br>
The error I get is this:<br>
<br>
Reading VTK XML image file.<br>
Spacing (0.48828101157999998, 0.48828101157999998, 0.39999961852999999)<br>
Origin (0.0, 0.0, 0.0)<br>
Dimensions (512, 512, 548)<br>
Traceback (most recent call last):<br>
File "vmtkgui.py", line 128, in call_VOI<br>
self.vmtkinterface.VOI(self.vmtkinterface.input_filename, self.vmtkinterface.output_filename)<br>
File "/amd/smana1/root/cmcs/zampini/valvestent/code/gui_apps/example/gui_python/vmtkinterface.py", line 156, in VOI<br>
self.vmtkRenderer.RemoveAllViewProps()<br>
AttributeError: 'vmtkRenderer' object has no attribute 'RemoveAllViewProps'<br>
<br>
<br>
<br>
Thanks a lot,<br>
<br>
Samuele.<br>
<br>
<br>
________________________________________<br>
Da: Karthik Krishnan [<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>]<br>
Inviato: mercoledė 28 ottobre 2009 13.23<br>
A: Zampini Samuele<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Oggetto: Re: [vtkusers] Deleting / Hiding all the objects in a window<br>
<br>
On Wed, Oct 28, 2009 at 7:49 AM, Zampini Samuele<br>
<<a href="mailto:samuele.zampini@epfl.ch">samuele.zampini@epfl.ch</a>> wrote:<br>
> Dear all,<br>
><br>
> I would like to delete (or hide) all the objects that I have in a windows before adding other objects.<br>
<br>
Either renderer->RemoveAlllViewProps() or<br>
Iterate thru the prop collection of the renderer in question<br>
(renderer->GetViewProps()) and set its visibility to 0<br>
<br>
><br>
> How can I do this?<br>
><br>
> Thanks a lot,<br>
><br>
> samuele.<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><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>
><br>
</blockquote></div><br><br clear="all"><br>