MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015384 | VTK | (No Category) | public | 2015-03-17 14:38 | 2016-08-12 09:55 |
Reporter | Sam Fries | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | 6.0.0 | ||||
Target Version | Fixed in Version | ||||
Project | TBD | ||||
Type | incorrect functionality | ||||
Summary | 0015384: Resizing vtkRenderWindow while OffScreenRendering is True makes bad output | ||||
Description | Running the below script will generate output that looks like the associated vtkRenderer isn't getting resized, though when I printed out the results of ren.GetSize(), they reflected the correct size. I've attached the resized PNG output. import vtk win = vtk.vtkRenderWindow() win.SetSize(300, 300) ren = vtk.vtkRenderer() ren.SetBackground(.5, .4, .3) win.AddRenderer(ren) win.SetOffScreenRendering(True) filter = vtk.vtkWindowToImageFilter() filter.SetInput(win) filter.Update() writer = vtk.vtkPNGWriter() writer.SetInputConnection(filter.GetOutputPort()) writer.SetFileName("base.png") writer.Write() win.SetSize(600, 300) filter = vtk.vtkWindowToImageFilter() filter.SetInput(win) filter.Update() writer.SetInputConnection(filter.GetOutputPort()) writer.SetFileName("resized.png") writer.Write() | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/20/resized.png ![]() | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-03-17 14:38 | Sam Fries | New Issue | |||
2015-03-17 14:38 | Sam Fries | File Added: resized.png | |||
2015-04-09 15:10 | David C. Lonie | Note Added: 0034349 | |||
2015-04-09 15:23 | Sam Fries | Note Added: 0034350 | |||
2015-04-10 12:17 | Joe Melnyk | Note Added: 0034354 | |||
2016-07-06 16:47 | Berk Geveci | Status | backlog => expired | ||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037374 | |||
2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved | ||
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|