[vtk-developers] vtkClipPlanesPainter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Feb 5 14:48:30 EST 2007


I wonder what's the problem with calling glDisable() at the end of the 
vtkOpenGLClipPlanesPainter::RenderInternal() call. Notice that before 
calling glDisable(), this class allows the superclass to render. The 
superclass conveys the render calls to all it's delegates (which will 
include all the painters that render the geometry etc etc.). Hence they 
would have "rendered" before glDisable() gets called.

Here a link to the original design of the painter:
http://www.vtk.org/Wiki/images/5/5f/VtkPainter_Overview.pdf

Utkarsh.


John Biddiscombe wrote:
> Dear Anyone,
> 
> I notice that vtkClipPlanesPainter (specifically OpenGLPainter) calls 
> glEnagle(...) at the start of Render and glDisable(...) at the end of 
> the render. I presume this is because nobody actually uses this painter 
> right now and so it hasn't been noticed.
> 
> 2 questions.
> 1) I've added a PostRender method to the clipplanes base class so that 
> PostRender can be called after the main mapper has terminated. Any 
> objection to this (by which I mean, does someone have a plan already 
> which conflicts with this?)
> 2) Is there any documentation on the painter classes I am mostly still 
> using customized mappers for my special <cough> stuff, but would like to 
> explore the painters a bit more.
> 
> thanks
> 
> JB
> 




More information about the vtk-developers mailing list