[vtkusers] ANNOUNCE: vtkSplineWidget addtion to VTK/Hybrid

Dean Inglis dean.inglis at on.aibn.com
Wed Nov 6 17:13:07 EST 2002


Hi,

I have just added a new widget class to VTK in
VTK/Hybrid: vtkSplineWidget.  A test will be
coming sometime later this week if the
dashboard registers ok for this class.  The test
will illustrate locking a spline widget
to a vtkImagePlaneWidget via callback mechanism,
the geometry of the spline will be fed to a 
vtkProbeFilter/vtkXYPlotActor pipeline to generate
an on the fly profile tool.

The widget has the following features:
The spline has spherical handles like other widgets, the number 
of which can be changed, which is somewhat different that other 
widgets with handles. The resolution of the spline can also be 
changed, similar to a vtkLineSource.

By grabbing one of the spherical handles (use the left mouse 
button), the spline can be oriented and stretched (the other 
handles remain fixed). By grabbing the spline itself (left or 
middle mouse button), the entire spline can be translated.
(Translation can also be employed by using the "shift-left-mouse-button"
combination inside of the widget.) Scaling (about the center of 
the spline) is achieved by using the right mouse button. By 
moving the mouse "up" the render window the spline will be made 
bigger; by moving "down" the render window the widget will be 
made smaller.  Finally, holding the ctrl key down and then grabbing 
either a handle or the spline itself with the middle mouse button 
enables spinning of the widget about its center.

In addition there are methods to constrain the spline so that it 
is aligned with a plane.

enjoy, (and feedback is always welcome)
Dean

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Inglis, Ph.D.
-      Centre for Appendicular       -
- Magnetic Resonance Imaging Studies -
25 Charlton Avenue East, Unit 610
Hamilton, ONT, L8N 1Y2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the vtkusers mailing list