Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

VTK - adjust the camera

by adufour / Alexandre Dufour

This script illustrates how to adjust (some of) the camera parameters in a 3D VTK viewer

version 1 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version: initial version
// Title: VTK - adjust the camera
// Author: Alexandre Dufour
// Description: This is a script for the Icy software
// that adjusts (some of) the parameters of the camera
// of an active 3D viewer


// Retrieve the active viewer
viewer = getSequence().getFirstViewer()

// assuming a 3D (VTK) viewer, retrieve the camera
camera = viewer.getCanvas().getRenderer().GetActiveCamera()

// mess around with it (see www.vtk.org/doc/nightly/html/classvtkCamera.html
camera.Azimuth(20)
camera.Roll(10)
camera.Zoom(1.05)

// refresh the canvas
viewer.getCanvas().refresh()




This script has no documentation. A Problem ? ask the community.



Icy script publication Id : Q1V9K9