views:

15

answers:

0

Hi,

since some days I'm working with the VTK and I need some help. Is it possible to swap out the rendering codeblock?Like this:

  void display(XXXXXX)
    {
        vtkActor actor = new vtkActor();
        actor.SetMapper(XXXXXXX);

        vtkRenderer ren2 = new vtkRenderer();
        ren2.AddActor(actor);
        vtkRenderWindow renWin = new vtkRenderWindow();
        renWin.AddRenderer(ren2);

        vtkRenderWindowInteractor iren = new vtkRenderWindowInteractor();
        iren.SetRenderWindow(renWin);
        renWin.SetSize(800, 800);
        renWin.Render();
    }

but I dont know, how to get the mapperdata out of the other methode? cause its not a string, its not a int... (vtkDataSetMapper mapper = new vtkDataSetMapper();) What i want is, that when I change data that I dont need to pass through the whole code. Only the rendering prosess.

thanks