MantisBT - VTK
View Issue Details
0001859VTK(No Category)public2005-05-16 16:452016-08-12 09:54
Mathieu Malaterre 
Berk Geveci 
normalmajoralways
closedmoved 
 
 
0001859: VTK pipeline / Extent broke apps
This script used to work in VTK 4.4:

package require vtk
# Image pipeline
vtkBMPReader reader
reader SetFileName "$VTK_DATA_ROOT/Data/masonry.bmp"
#vtkImageViewer viewer #seems ok
vtkImageViewer2 viewer
viewer SetInput [reader GetOutput]
vtkRenderWindowInteractor iren
viewer SetupInteractor iren
iren Initialize
iren Start
wm withdraw .

Now it returns:

ERROR: In VTK/Filtering/vtkImageData.cxx, line 1475
vtkImageData (0x81ac1a0): GetScalarPointer: Pixel (0, 0, 0) not in memory.
 Current extent= (0, -1, 0, -1, 0, -1)
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036786
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0002421)
Mathieu Malaterre   
2005-05-16 16:47   
If you replace vtkImageViewer2 with vtkImageViewer the tcl script runs fine.

vtkBMPReader still uses ExecuteInformation/ExecuteData
(0002423)
Mathieu Malaterre   
2005-05-16 17:09   
Brad did a research and found out that vtkImageData::GetScalarPointer direclty uses this->Extent without making sure this is up to date
(0036786)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.