[vtkusers] Restoring LeftButtonPressEvent to default

Naim naim at electromagneticworks.com
Fri Nov 17 10:56:43 EST 2006


Try this (C++)

iren->SetInteractorStyle(My_Default_InteractorStyle); 
iren->Modified();

My_Default_InteractorStyle is vtkInteractorStyleTrackballCamera.


Naim Himrane
Electromagneticworks Inc.


-----Original Message-----
From: vtkusers-bounces+naim=electromagneticworks.com at vtk.org
[mailto:vtkusers-bounces+naim=electromagneticworks.com at vtk.org] On Behalf Of
Robert V Canning
Sent: November 17, 2006 10:39 AM
To: vtkusers at vtk.org
Subject: [vtkusers] Restoring LeftButtonPressEvent to default 


Hi,

      I am experimenting with changing the left button mouse so that
rotation only occurs on one axis at a time (Azimuth only or Elevation
only).  I used the CustomInteraction.tcl example to guide me and this works
great.  I want to be able to restore the left button and mouse move events
back to their defaults.  I know that I could just enable both Azimuth and
Elevation to get the trackball effect but if it was originally in joystick
I don't know how to bring it back.  Any suggestions?

I am using VTK 5.0.2 with Tcl 8.4.13 on a Windows XP system.

Thanks,

Bob

This communication is for use by the intended recipient and contains
information that may be Privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender by
return e-mail and delete this e-mail from your system. Unless explicitly
and conspicuously designated as "E-Contract Intended", this e-mail does
not constitute a contract offer, a contract amendment, or an acceptance
of a contract offer. This e-mail does not constitute a consent to the
use of sender's contact information for direct marketing purposes or for
transfers of data to third parties.

Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean

           http://www.DuPont.com/corp/email_disclaimer.html
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list