[vtkusers] Restricting movement of vtkSphereWidget/vtkLinkeWidget

Matthias Riechmann riechmann at ira.uka.de
Tue Sep 9 08:35:16 EDT 2008


Hi,

I'd like to restrict the movement of a vtkSphereWidget/vtkLinkeWidget. 
Currently I'm using a vtkCallbackCommand to to get observe the movement. 
In callback method I read the widget's position, adjust it to a valid 
value and set the widget's position afterwards to the calculated value. 
The result works in principal but the visualisation is a very bad 
because the widget is drawn first on the originally moved position and 
on the corrected position afterwards. Is there a way to guarantee a 
rerender only after the correction of the position?

I'm using vtk 5.0.2 in a Qt application. Are there any solution for my 
problem in the new vtk 5.2? I understand there are a lot of improvements 
concerning the widgets.


Matthias




-- 
Dipl.-Inform. Matthias Riechmann
Institut für Prozessrechentechnik, Automation und Robotik
Medizin-Gruppe
Universität Karlsruhe (TH)
Gebäude 40.28, Zimmer 103
Engler-Bunte-Ring 8
76131 Karlsruhe

Fon: +49 (721) 608-4049
Fax: +49 (721) 608-7141

Web: http://wwwipr.ira.uka.de/~richmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: riechmann.vcf
Type: text/x-vcard
Size: 493 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080909/4f249c1d/attachment.vcf>


More information about the vtkusers mailing list