[vtkusers] vtkLineWidget2 - customize/restrain interaction?

Sven Prevrhal sprevrha at gmail.com
Thu Apr 10 13:05:06 EDT 2008


Thanks Matthias,

I found a workaround for the lack of built-in restraining that does not
require deriving a new class. I simply provide code in the callback that
checks movement and adjusts it if necessary. However, it _is_ quirky and
definitely a hack :-)

Sven

-----Original Message-----
From: Matthias Riechmann [mailto:riechmann at ira.uka.de] 
Sent: Thursday, April 10, 2008 12:20 AM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkLineWidget2 - customize/restrain interaction?

Hi,

that's something I was interested, too. But while trying to implement an
alternative version of vtkLineWidget I discovered some - I don't want to
call it hack, but it's a weired construct - problems in the "architecture"
of the widgets "framework": vtkLineWidget makes use of vtkPointWidget and
calls it's ProcessEvents method, which is protected but a friend of
vtkLineWidget meaning this method can only be called from vtkPointWidget or
the ORIGINAL vtkLineWidget. So the problem is: 
You can't just copy and modify the code of vtkLineWidget without making
changes within the VTK. So a complete redesign of the line widget would be
necessary and possibly this still would not work out. At this point I
decided the original line widget isn't that bad anyway...

But maybe one of the vtk developers has a better idea. Besides I heard about
effords of redisigning the 3d widget. But maybe those are only rumors...


Matthias





Sven Prevrhal schrieb:
> Hi community –
> 
>  
> 
> I just want to translate/rotate them but not resize them
> 
>  
> 
> Thank you and cheers,
> 
> Sven
> 
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> 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

--
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




More information about the vtkusers mailing list