[vtkusers] vtkRectilinearGrid::Initialize() during the render process?

tom fogal tfogal at apollo.sr.unh.edu
Wed Jun 9 15:36:39 EDT 2004


I've finally found out why my X, Y, Z arrays are suddenly becoming
NULL before they are rendered - earlier in the rendering process
they are SET to NULL as part of Update() procedures.

I understand that the rendering process would want to Update() before
it renders, but why would an update initialize vtk data structures?
It seems like Initialize() should be called as a 'clean up' function
just before object destruction?

So I guess my question is now 'where is the correct place to set the
output of my vtkSource object?'. Initially I tried in a public 'Read'
function which the instantiator was expected to call, now I have it
in ExecuteInformation(), but it seems I need it to be in some process
that occurs after Update().

Thanks!

-tom


A full backtrace is below, if you're wondering how it got to an
Initialize from an Update.

#0  vtkRectilinearGrid::Initialize (this=0x51ee30) at /home/tfogal/tarballs/VTK/Common/vtkRectilinearGrid.cxx:82
#1  0x0000002a95755e77 in vtkDataObject::UpdateData (this=0x51ee30) at /home/tfogal/tarballs/VTK/Common/vtkDataObject.cxx:348
#2  0x0000002a958198ff in vtkRectilinearGrid::UpdateData (this=0x51ee30)
    at /home/tfogal/tarballs/VTK/Common/vtkRectilinearGrid.cxx:1091
#3  0x0000002a95821ab2 in vtkSource::UpdateData (this=0x5244a0, output=0x524570)
    at /home/tfogal/tarballs/VTK/Common/vtkSource.cxx:339
#4  0x0000002a95755f5d in vtkDataObject::UpdateData (this=0x524570) at /home/tfogal/tarballs/VTK/Common/vtkDataObject.cxx:373
#5  0x0000002a95755c4a in vtkDataObject::Update (this=0x524570) at /home/tfogal/tarballs/VTK/Common/vtkDataObject.cxx:254
#6  0x0000002a95e40ba2 in vtkMapper::Update (this=0x51dca0) at /home/tfogal/tarballs/VTK/Rendering/vtkMapper.cxx:347
#7  0x0000002a95e4f00d in vtkPolyDataMapper::Update (this=0x51dca0)
    at /home/tfogal/tarballs/VTK/Rendering/vtkPolyDataMapper.cxx:104
#8  0x0000002a95e4f050 in vtkPolyDataMapper::GetBounds (this=0x51dca0)
    at /home/tfogal/tarballs/VTK/Rendering/vtkPolyDataMapper.cxx:119
#9  0x0000002a95dcbbd1 in vtkActor::GetBounds (this=0x516950) at /home/tfogal/tarballs/VTK/Rendering/vtkActor.cxx:322
#10 0x0000002a95e6adee in vtkRenderer::ComputeVisiblePropBounds (this=0x51e230, allBounds=0x7fbfffef50)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderer.cxx:626
#11 0x0000002a95e6b140 in vtkRenderer::ResetCamera (this=0x51e230) at /home/tfogal/tarballs/VTK/Rendering/vtkRenderer.cxx:684
#12 0x0000002a95e6aa62 in vtkRenderer::GetActiveCamera (this=0x51e230)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderer.cxx:519
#13 0x0000002a95e5eef9 in vtkRenderWindow::DoStereoRender (this=0x51e650)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderWindow.cxx:622
#14 0x0000002a95e5ee81 in vtkRenderWindow::DoFDRender (this=0x51e650)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderWindow.cxx:606
#15 0x0000002a95e5e9a2 in vtkRenderWindow::DoAARender (this=0x51e650)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderWindow.cxx:500
#16 0x0000002a95e5e15c in vtkRenderWindow::Render (this=0x51e650)
    at /home/tfogal/tarballs/VTK/Rendering/vtkRenderWindow.cxx:327
#17 0x0000002a95ef6a2e in vtkXOpenGLRenderWindow::Render (this=0x51e650)
    at /home/tfogal/tarballs/VTK/Rendering/vtkXOpenGLRenderWindow.cxx:1285
#18 0x0000000000406dcd in main () at objtest.cc:40



More information about the vtkusers mailing list