An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit b5e6d95b authored by David Cole's avatar David Cole
Browse files

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.47...

ENH: Merge changes from main tree into VTK-5-0 branch. (cvs -q up -j1.47 -j1.48 Rendering/vtkWindowToImageFilter.cxx)
parent 38559b94
......@@ -23,7 +23,7 @@
#include "vtkRendererCollection.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkWindowToImageFilter, "1.39");
vtkCxxRevisionMacro(vtkWindowToImageFilter, "1.39.4.1");
vtkStandardNewMacro(vtkWindowToImageFilter);
//----------------------------------------------------------------------------
......@@ -306,7 +306,7 @@ void vtkWindowToImageFilter::RequestData(
{
deltay = 2.0*deltay/(visVP[3] - visVP[1]);
}
cam->SetWindowCenter(deltax,deltay);
cam->SetWindowCenter(windowCenters[i*2]+deltax,windowCenters[i*2+1]+deltay);
cam->SetViewAngle(asin(sin(viewAngles[i]*3.1415926/360.0)*mag)
* 360.0 / 3.1415926);
cam->SetParallelScale(parallelScale[i]*mag);
......
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