[vtkusers] SetActiveCamera doesn't work

masabumi ishihara maty.ishihara at gmail.com
Thu Oct 30 05:47:39 EDT 2008


Hi VTK users,

I tried to use SetActiveCamera method,
because I'd like to fix the image center when I am operating on the image.
But it didn't work well, as a result, the center of the image moved
half out of the window.
My VTK proguram is as follows,

			vtkCamera *camera = vtkCamera::New();
			camera=vtkImage[nCurrent].pRenderer->GetActiveCamera();
			camera->SetWindowCenter((double)0,(double)0);
			vtkImage[nCurrent].pRenderer->SetActiveCamera(camera);

If you know my mistake on the above program, please let me know!

Thanks,

Maty



More information about the vtkusers mailing list