Method: GtkVTKRenderWindow#Rotate

Defined in:
lib/VTK/gtk/GtkVTKRenderWindow.rb

#Rotate(x, y) ⇒ Object



395
396
397
398
399
400
401
402
403
404
405
406
407
408
# File 'lib/VTK/gtk/GtkVTKRenderWindow.rb', line 395

def Rotate(x,y)
  if @CurrentRenderer

    @CurrentCamera.Azimuth(@LastX - x)
    @CurrentCamera.Elevation(y - @LastY)
    @CurrentCamera.OrthogonalizeViewUp

    @LastX = x
    @LastY = y

    @CurrentRenderer.ResetCameraClippingRange
    self.Render
  end
end