Add PostRender() method to vtkTexture
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I would like to see a PostRender() method added to vtkTexture that is called by vtkProperty::PostRender(). The vtkTexture::PostRender() method would let you clean up things you set up for applying the texture. For example, in vtkOpenGLProperty, you could use the PostRender() method to add a call to glDisable(GL_TEXTURE_2D), preventing you from having to disable texturing in other classes throughout VTK.
My particular need for a PostRender() method is prompted by a custom OpenGL 3D texture class I have written. I can enable 3D texturing in my class in the Load() method, but there is no logical place to disable it because after the geometry is rendered, there is no call back to vtkTexture. Because VTK does not support 3D textures by default, nowhere else in the code disables 3D texturing, which can cause rendering problems. For this reason, I would like to be able to disable 3D texturing in a PostRender() method in my custom class.