[vtkusers] deleting actor from renderer

Abeer Mahdi abeer_adnan at hotmail.com
Tue Dec 6 09:10:39 EST 2005


hello,

I have tryed RemoveActor (vtkProp *p) from vtkRenderer, and after that I 
call renderer.render();
However when running the program and changing the parameters of the graph, I 
get a popup message saying "SetPixelFormat failed" Do you know what is 
causing this ?
Thanks in advance

Abeer


>From: Florian Drescher <fdrescher at gmail.com>
>To: Abeer Mahdi <abeer_adnan at hotmail.com>
>CC: vtkusers at vtk.org
>Subject: Re: [vtkusers] deleting actor from renderer
>Date: Tue, 6 Dec 2005 14:22:42 +0100
>
>Hello!
>
>Do you rerender your scene after the removal?
>
>Have you tried using the function
>void RemoveActor (vtkProp *p) from vtkRenderer?
>
>
>On 12/6/05, Abeer Mahdi <abeer_adnan at hotmail.com> wrote:
> > I have drawn a graph with nodes and edges using vtkPoints and 
>vtklineSource.
> > I have also made a  GUI which can change the parameters of the graph. In
> > this case I have to redraw only the edges of the graph. However I cann't
> > delete the 'old' edges, this causes the graph to get bigger and bigger
> > (because no edges are removed).
> > I'm using vtk on Java and using vtkPanel instead of vtkRenderWindow(). I
> > have tryed deleting the 'edgeActor' as following :
> > panel.getRenderer().getActor().getLastActor().vtkDelet();
> > Here I'm sure that edgeActor is the lastActor.
> >
> > I also tryed setMapper(null). But it doesn't seem to work.
> > Do any one have suggestion for me ?? I'm really stack here ...
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers

_________________________________________________________________
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.nl/




More information about the vtkusers mailing list