vtk Motion Callback

Sean Spicer spicer at bme.stanford.edu
Wed Nov 10 15:39:22 EST 1999


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




More information about the vtkusers mailing list