Commit edbb4ffe authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Code Review

Merge topic '14244_fix_stereo_image_captures' into master

169f0154 BUG #14244: Fix stereo image captures.
parents fa145803 169f0154
......@@ -292,25 +292,7 @@ void vtkWindowToImageFilter::RequestData(
viewAngles[i] = cams[i]->GetViewAngle();
parallelScale[i] = cams[i]->GetParallelScale();
cam = cams[i]->NewInstance();
cam->SetPosition(cams[i]->GetPosition());
cam->SetFocalPoint(cams[i]->GetFocalPoint());
cam->SetViewUp(cams[i]->GetViewUp());
cam->SetClippingRange(cams[i]->GetClippingRange());
cam->SetParallelProjection(cams[i]->GetParallelProjection());
cam->SetFocalDisk(cams[i]->GetFocalDisk());
cam->SetUserTransform(cams[i]->GetUserTransform());
cam->SetUseHorizontalViewAngle(cams[i]->GetUseHorizontalViewAngle());
cam->SetViewShear(cams[i]->GetViewShear());
cam->SetModelTransformMatrix(cams[i]->GetModelTransformMatrix());
cam->SetEyeTransformMatrix(cams[i]->GetEyeTransformMatrix());
cam->SetUseOffAxisProjection(cams[i]->GetUseOffAxisProjection());
cam->SetScreenBottomLeft(cams[i]->GetScreenBottomLeft());
cam->SetScreenBottomRight(cams[i]->GetScreenBottomRight());
cam->SetScreenTopRight(cams[i]->GetScreenTopRight());
cam->SetEyeSeparation(cams[i]->GetEyeSeparation());
double eyePos[3];
cams[i]->GetEyePosition(eyePos);
cam->SetEyePosition(eyePos);
cam->ShallowCopy(cams[i]);
aren->SetActiveCamera(cam);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment