~ubuntu-branches/ubuntu/gutsy/vtk/gutsy

« back to all changes in this revision

Viewing changes to Rendering/vtkWindowToImageFilter.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Michele Angrisano
  • Date: 2007-06-30 22:39:48 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070630223948-6tn51upaurwfrcz8
Tags: 5.0.3-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add export SHELL=/bin/bash in debian/rules.
  - Update maintainer in field debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "vtkRendererCollection.h"
24
24
#include "vtkStreamingDemandDrivenPipeline.h"
25
25
 
26
 
vtkCxxRevisionMacro(vtkWindowToImageFilter, "$Revision: 1.39 $");
 
26
vtkCxxRevisionMacro(vtkWindowToImageFilter, "$Revision: 1.39.4.1 $");
27
27
vtkStandardNewMacro(vtkWindowToImageFilter);
28
28
 
29
29
//----------------------------------------------------------------------------
306
306
          {
307
307
          deltay = 2.0*deltay/(visVP[3] - visVP[1]);
308
308
          }
309
 
        cam->SetWindowCenter(deltax,deltay);        
 
309
        cam->SetWindowCenter(windowCenters[i*2]+deltax,windowCenters[i*2+1]+deltay);
310
310
        cam->SetViewAngle(asin(sin(viewAngles[i]*3.1415926/360.0)*mag) 
311
311
                          * 360.0 / 3.1415926);
312
312
        cam->SetParallelScale(parallelScale[i]*mag);