[vtk-developers] PlaceWidget

Will Schroeder will.schroeder at kitware.com
Wed Feb 6 18:12:29 EST 2008


Dean-

You have write access, no? I am okay with adding some scripts. I don't want
the examples to become a dumping ground though. So let's be somewhat
selective in what goes in, and make sure that it is well documented and
instructive.

W

On 2/6/08, dean.inglis at camris.ca <dean.inglis at camris.ca> wrote:
>
> looking into this a bit further, there doesnt seem to be
> a need to provide methods like
> PlaceWidget(double xmin, double xmax, double ymin, double ymax, double
> xmin, double zmax)
>
> for tcl when there is only
> PlaceWidget(double bounds[6])
>
> since one can always in tcl do
>   set bnds [[some_filter GetOutput ] GetBounds]
>   some_new_widget PlaceWidget [lindex $bnds 0] [lindex $bnds 1] [lindex
> $bnds 2] [lindex $bnds 3] [lindex $bnds 4] [lindex $bnds 5]
>
> without having explicitly defined and wrapped the former method.  Same
> thing goes for
> methods found in vtkHandleRepresentation and subclasses like
> SetPoint1DisplayPosition, SetPoint1WorldPosition etc.
>
> On another note, in experimenting with new/old widgets, I have over time
> converted almost all widgets/testing/cxx files into tcl scripts that can
> be
> run as examples ( no test harness code ).  If anyone at kitware or
> otherwise
> would really like these to be in say Examples/GUI/Tcl I'd be happy to
> commit
> them.  Perhaps there should be and Examples/Widgets examples subdir?
>
> Dean
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



-- 
William J. Schroeder, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20080206/4cd47083/attachment.html>


More information about the vtk-developers mailing list