[vtkusers] How disable a interactor
Francois Louis LAILLIER
flaillier at eldim.fr
Thu Mar 15 11:33:39 EDT 2007
________________________________
From: Naim [mailto:naim at electromagneticworks.com]
Sent: jeudi 15 mars 2007 16:27
To: Francois Louis LAILLIER; vtkusers at vtk.org
Subject: RE: [vtkusers] How disable a interactor
Thanks for your help naim and Miguel.
I'll try the Naim tip because I use vtkinteractorstyleUser to click on
my volume to move 3 plans which I define with vtkplaneactor,and I'll
select their with the second event, the propicker..
Override the OnLeftButtonDown for example and use a Boolean flag.
virtual void OnLeftButtonDown()
{
if(disable)
return;
vtkInteractorStyleTrackballCamera::OnLeftButtonDown();
}
Before this you must derive your interactor from
vtkInteractorStyleTrackballCamera (my default interactor) class.
Naim Himrane
Electromagneticworks Inc.
________________________________
From: vtkusers-bounces+naim=electromagneticworks.com at vtk.org
[mailto:vtkusers-bounces+naim=electromagneticworks.com at vtk.org] On
Behalf Of Francois Louis LAILLIER
Sent: March 15, 2007 10:54 AM
To: vtkusers at vtk.org
Subject: [vtkusers] How disable a interactor
Hello, I'm programming in visual basic language. It's particular to use
interactor in this language.
The interactors like rotation, zoom and pan with the mouse are setting
by default in VB6.
I have a checkbox, when I tick it, I enable the leftbuttonpressevent of
the mouse, and the rotation of camera doesn't work, that works.
But when I untick the checkbox, I want the leftbuttonpressevent is
disable. I used renwin.removeObservers.
Is there the good function? Or how can I do to put the interactor by
default.
Thanks!
Best regards, Francois Louis.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070315/5b0db745/attachment.htm>
More information about the vtkusers
mailing list