Slider bar control on a cut plane

Ron Inbar rinbar at netvision.net.il
Thu Sep 2 05:43:56 EDT 1999


Hello!

In Tcl/Tk you can do this very very easily.  I don't have a running system
in front of me now, but it's something like:

proc SetCutPlane t {
    cutPlane SetOrigin <some expression involving $t>
}
scale .slider -from <min> -to <max> -command SetCutPlane

And Tcl/Tk runs quite nicely under Windows.  I switched from C++ to Tcl just
a couple of weeks ago, and it's actually a lot of fun.

Ron

> If you want examples of how to add UI to a vtk app on a unix system, look
> at the XMace examples in the graphics/examplesCxx subdirectory.  If you
> don't like Xt/Motif, I think some people have worked on a render widget
> for QT.  Check the VTK main page and Sebastian Barre's page.  (linked from
> the Kitware site, sorry I don't have the URL handy...)
>
> All of this refers to writing the app in C/C++.  I think it would be
> relatively straightforward to do in tcl with vtkRenderWidget, but I am no
> tcl-ist so I can't really say.  There was also some mention of a render
> widget usable from python a while back, but I don't know what state that
> is in; I have moved all my work to C++ so I have not kept up.
>
> If you meant on a windows system, well, someone else will have to help
> you...
>
> Regards,
>
> --
> Bryan Van de Ven
> Applied Research Labs
> University of Texas, Austin
>
>
>
>
> --------------------------------------------------------------------------
---
> This is the private VTK discussion list.  Please keep messages on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> --------------------------------------------------------------------------
---
>
>



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list