[vtkusers] Camera alignment
Rodolfo Palacios
rpalacios75 at hotmail.com
Wed May 4 21:45:00 EDT 2005
Hello.
I'm working on an application for medical images visualization. I need to
display the three common views of medical 3d imaging: axial, coronal and
sagittal. My problem is that I can't seem to find an effective way to align
each camera to display the images correctly. (I'm using
vtkImagePlaneWidgets).
One way I've been trying to do this is this one, but doesn't work very well,
I don't know why.
vtkXWindowCamera->SetFocalPoint(0,(bounds[3]/2),bounds[5]/2));
vtkXWindowCamera->SetPosition((bounds[1]),(bounds[3]/2),(bounds[5]/2));
vtkXWindowCamera->ComputeViewPlaneNormal();
vtkXWindowCamera->SetViewUp(0, 0, 1);
vtkXWindowCamera->OrthogonalizeViewUp();
vtkXWindow->GetRenderer()->SetActiveCamera(vtkXWindowCamera);
vtkXWindow->GetRenderer()->ResetCamera(bounds);
vtkXWindow->GetRenderer()->ResetCameraClippingRange();
Thank you.
Rodolfo Palacios.
More information about the vtkusers
mailing list