[vtkusers] R: Deleting / Hiding all the objects in a window

Zampini Samuele samuele.zampini at epfl.ch
Wed Oct 28 10:41:10 EDT 2009


Thanks a lot...

Actually, I did a stupid mistake since I am using a vmtk instance and not a vtk one.

So that I have to choose a different way out...

Could you help???

The error I get is this:

Reading VTK XML image file.
Spacing  (0.48828101157999998, 0.48828101157999998, 0.39999961852999999)
Origin  (0.0, 0.0, 0.0)
Dimensions  (512, 512, 548)
Traceback (most recent call last):
  File "vmtkgui.py", line 128, in call_VOI
    self.vmtkinterface.VOI(self.vmtkinterface.input_filename, self.vmtkinterface.output_filename)
  File "/amd/smana1/root/cmcs/zampini/valvestent/code/gui_apps/example/gui_python/vmtkinterface.py", line 156, in VOI
    self.vmtkRenderer.RemoveAllViewProps()
AttributeError: 'vmtkRenderer' object has no attribute 'RemoveAllViewProps'



Thanks a lot,

Samuele.


________________________________________
Da: Karthik Krishnan [karthik.krishnan at kitware.com]
Inviato: mercoledì 28 ottobre 2009 13.23
A: Zampini Samuele
Cc: vtkusers at vtk.org
Oggetto: Re: [vtkusers] Deleting / Hiding all the objects in a window

On Wed, Oct 28, 2009 at 7:49 AM, Zampini Samuele
<samuele.zampini at epfl.ch> wrote:
> Dear all,
>
> I would like to delete (or hide) all the objects that I have in a windows before adding other objects.

Either renderer->RemoveAlllViewProps() or
Iterate thru the prop collection of the renderer in question
(renderer->GetViewProps()) and set its visibility to 0

>
> How can I do this?
>
> Thanks a lot,
>
> samuele.
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list