| View Issue Details [ Jump to Notes ] | [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0009239 | VTK | (No Category) | public | 2009-07-07 07:05 | 2012-12-12 12:02 |
|
| Reporter | xabi riobe | |
| Assigned To | David Gobbi | |
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0009239: vtkWindowToImageFilter incorrectly sets the camera |
| Description | vtkWindowToImageFilter does not set the camera parameter UseHorizontalViewAngle so the result image is not the same as the render window output if this parameter is initialy set to 1 and the window is "vertical".
see attached patch to fix the problem. |
| Steps To Reproduce | Set UseHorizontalViewAngle to 1 in current camera. Set the window height bigger than the width. |
| Tags | No tags attached. |
|
| Project | |
| Type | |
|
| Attached Files | vtkWTIF.patch [^] (781 bytes) 2009-07-07 07:05 [Show Content] [Hide Content]--- vtkWindowToImageFilter.cxx 2009-07-07 10:54:00.129773600 +0200
+++ vtkWindowToImageFilter.cxx 2009-07-07 11:34:59.510873000 +0200
@@ -28,7 +28,7 @@
#include "vtkActor2DCollection.h"
#include <vtkstd/vector>
-vtkCxxRevisionMacro(vtkWindowToImageFilter, "$Revision: 1.50 $");
+vtkCxxRevisionMacro(vtkWindowToImageFilter, "$Revision: 1.51 $");
vtkStandardNewMacro(vtkWindowToImageFilter);
class vtkWTI2DHelperClass
@@ -295,6 +295,7 @@
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());
aren->SetActiveCamera(cam);
}
|
|