[vtkusers] loading a file

Amy Squillacote amy.squillacote at kitware.com
Fri Nov 2 10:43:46 EDT 2007


Hello Lam,

This is a GUI question, not a VTK one. How you do this depends on which 
GUI toolkit (e.g., Qt, Tcl/Tk, FLTK, etc.) you use.

- Amy

Lam Ha wrote:
> Hi there
>
> I am new to VTK and have just finished some coding. My application 
> reads a .stl file and displays it. At the moment I have hardcoded the 
> filename:
>
> vtkSTLReader *sr = vtkSTLReader::New();
>     sr->SetFileName("Ear.stl");
>
> Now I would like to have a prompt-window (like the browse-button) from 
> where I can choose my desired STL-file to be read. So in the end the 
> last line from above would look like:
>
> sr->SetFileName(filename);
>
> What do I have to do?
>
> Thanks in advance
> Lam
> _______________________________________________
> 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
>

-- 
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106




More information about the vtkusers mailing list