how to use SetLeftButtonPressMethod
Herzig David
ia96herz at bs6450b.cs.fh-aargau.ch
Wed Dec 1 08:13:18 EST 1999
On Wed, 01 Dec 1999, you wrote:
> Hello,
>
> I need to re-define the methods associated with mouse events in C++.
> As a beginning I want to set the method 'exit(0)' to the left button
> press. I've seen SetLeftButtonPressMethod from class
> vtkRenderWindowInteractor.
>
> Did anybody use this method before and could show me an example?
>
> Thanks a lot in advance!
> Sylvain
>
Hello Sylvain
I define the SetLeftButtonPressMethod with the following Source Code:
void LeftButtonPressMethod(void *arg){
vtkRenderWindowInteractor *iren = (vtkRenderWindowInteractor *)arg;
...
}
void main( int argc, char *argv[] ){
...
iren->SetLeftButtonPressMethod(LeftButtonPressMethod,(void *)iren);
...
}
NOTE: iren is a vtkRenderWindowInteractor Object.
-----------------------------------------------------------------------------
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