[vtkusers] Using FLTK and VTK

John Shalf jshalf at lbl.gov
Thu Nov 9 14:07:44 EST 2000


Yeah,
its easily confused.

You need to update the Fl side too (ugh).

  vtkFlRenderWindow *renWin;
  Fl_vtk_Window *vtkwin;
    // .... stuff ....
  global.renWin->Render();
  global.vtkwin->redraw();

-john

Joey Mukherjee wrote:

> Does anybody use VTK with FLTK?
>
> I'm giving it a shot and am having a couple problems.  I have downloaded
> Frank Da's vtkFlWindowInteractor and John Shalf's vtkFlWindow.
>
> Frank's didn't compile for me since it was using the older vtkInteractor
> interface.  John's did compile and work, but when I call _renWin->Render
> (), the window is not re-rendered.  If I click in the window, the
> re-rerendering occurs.
>
> I might be using something wrong since I let VTK/FLTK create my window:
>
> // Creates a new VTK/GL window embedded in the current window.
>
>         _iren = new Fl_vtk_Window (_renWin, 1, 1,600, 600);
>         _iren->size_range (10, 10, 0, 0);
>         _iren->show (0, NULL);
>
> Any ideas?
>
> Joey
>
> +-------------------------------------------------------------------------
> -+
> +     Joey Mukherjee
> +
> +      joey at swri.org                      "I intend to live forever,
> +
> +  http://www.space.swri.edu/~joey        so far, so good...
> +
> +
> +
> +-------------------------------------------------------------------------
> -+
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list