vtk Motion Callback
David Gobbi
dgobbi at irus.rri.on.ca
Wed Nov 10 17:15:42 EST 1999
Hi Sean,
If you are using the nightly releases, there is a class called
vtkInteractorStyleUser that provides what you need.
Take a look at these examples:
vtk/graphics/examplesPython/CustomInteraction.py
vtk/graphics/examplesTcl/CustomInteraction.tcl
- David
--David Gobbi, MSc dgobbi at irus.rri.on.ca
Advanced Imaging Research Group
Robarts Research Institute, University of Western Ontario
On Wed, 10 Nov 1999, Sean Spicer wrote:
>
> Everyone,
>
> I have a request for vtk developers...
>
> Could someone add a series of:
>
> void SetLeftButtonMotionMethod(void (*f)(void *), void *arg);
> void SetLeftButtonMotionMethodArgDelete(void (*f)(void *));
> void SetMiddleButtonMotionMethod(void (*f)(void *), void *arg);
> void SetMiddleButtonMotionMethodArgDelete(void (*f)(void *));
> void SetRightButtonMotionMethod(void (*f)(void *), void *arg);
> void SetRightButtonMotionMethodArgDelete(void (*f)(void *));
>
> to the vtkInteractorStyle class.
>
> Providing only the button press and release methods is really incomplete,
> and doesn't allow the user to define his/her own motion mask functions.
>
> Of course maybe there's another way to do what I want...
>
> Basically I want to overide the interactor's middle button, enabling a
> function which runs while the button is down (moving or not) and depends
> on the mouse position in the window. With the current methods, I can only
> grab the mouse position when the button is pressed or released. Is there
> another way to do this without subclassing the vtkInteractorStyle class
> and making everything machine specific?
>
> cheers,
>
> sean
>
>
> ___________________________________________________________________________
> Sean Spicer Stanford University Medical Center
> Biomechanical Engineering Division of Vascular Surgery, Suite H3642
> Cardiovascular Biomechanics Lab Stanford CA, 94305
> Telephone...650.723.1695
> Fax.........650.723.8762
>
> http://solvedeath.stanford.edu/~spicer
>
>
>
>
> -----------------------------------------------------------------------------
> 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