[vtkusers] ResetCamera() via 'r' Key - disable or manipulate?
reppesis at gmail.com
reppesis at gmail.com
Fri Oct 19 06:16:00 EDT 2012
I semi-solved this by doing the following, but as you suspected: Some weird
stuff happens when holding the 'r' key.
renderer.AddObserver("ResetCameraEvent", PostResetCamera)
def PostResetCamera(obj, event):
active_camera = obj.GetActiveCamera()
active_camera.Zoom(1.3)
So after all I'd love to override OnChar() but I can't adapt the example
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/KeypressEvents to
Python.
class MyInteractorStyle(vtkInteractorStyleTrackballCamera):
def OnKeyPress(self):
print "hallo"
doesn't do anything at all, those macros don't seem to exist :S
--
View this message in context: http://vtk.1045678.n5.nabble.com/ResetCamera-via-r-Key-disable-or-manipulate-tp5716643p5716732.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list