[vtkusers] Update issue in derived class of vtkOpenGLPolyDataMapper

Rocco Gasteiger post at rocco-gasteiger.de
Wed May 25 17:09:24 EDT 2011


Dear vtk-users,

 

I have derived a class "MyPolyDataMapper" from vtkOpenGLPolyDataMapper to
implement my own mapper behavior. However, I have noticed that after I
closed the vtkRenderWindow it can (!) happen that nothing is rendered. If I
simplified the method "RenderPiece(vtkRenderer * renderer, vtkActor *
actor)" to following function body:

 

void MyPolyDataMapper::RenderPiece( vtkRenderer * renderer, vtkActor * actor
)

{

   this->vtkOpenGLPolyDataMapper::RenderPiece( renderer, actor );

} 

 

Nevertheless, the behavior is the same. In that case, when I change, e.g.,
the poly data input. The rendering occurs. I think I didn't update the
mapper in an appropriate way. I have looked into the source code of
"vtkOpenGLPolyDataMapper" to get an clue of how to do that but I didn't
found something yet. So, can somebody give me an hint what the reason for
this behavior can be. Note, it doesn't appear every time I close and open
the vtkRenderWindow but sometimes.

 

Thanks in advance, Rocco

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110525/d10755f4/attachment.htm>


More information about the vtkusers mailing list