[vtkusers] GetMousePosition(&x,&y) doesn't work!!!!
Rahul Goela
rahulgoela at yahoo.com
Fri Dec 5 01:28:12 EST 2003
Hi,
I want to get the current mouse position and am using
the following code:
int mouseX, mouseY;
float z;
iren->GetMousePosition(&mouseX, &mouseY);
z=renderer->GetZ(mouseX,mouseY);
This gives me following values always...even when i
keep move the mouse on the interactor window.
mouseX = 0
mouseY = 0
z = 1
This is vry WIERD!!!!
Isn't there any way in VTK to get the current mouse
pointer position?
any help in this regard would be appreciated.
Thanks in advance!
regards,
Rahul
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
More information about the vtkusers
mailing list