23 #ifndef vtkOpenGLRenderer_h
24 #define vtkOpenGLRenderer_h
26 #include "vtkRenderingOpenGLModule.h"
29 class vtkOpenGLRendererLayerList;
64 virtual void Clear(
void);
77 int GetDepthPeelingHigherLayer();
94 void CheckCompilation(
unsigned int fragmentShader);
101 virtual void StartPick(
unsigned int pickFromSize);
106 virtual int GetPickedIds(
unsigned int atMost,
unsigned int *callerBuffer);
121 int RenderPeel(
int layer);
126 friend class vtkOpenGLImageResliceMapper;
132 int GetUseTextureUniformVariable();
138 int GetTextureUniformVariable();
virtual double GetPickedZ()=0
Return the Z value for the last picked Prop.
virtual void ReleaseGraphicsResources(vtkWindow *)
virtual void ClearLights(void)
Internal method temporarily removes lights before reloading them into graphics pipeline.
virtual int UpdateLights(void)
Ask all lights to load themselves into rendering pipeline.
abstract specification for renderers
virtual int GetPickedIds(unsigned int atMost, unsigned int *callerBuffer)=0
OpenGL mapper for image slice display.
virtual void UpdatePickId()=0
window superclass for vtkRenderWindow
int DepthPeelingHigherLayer
virtual void DeviceRender()=0
Create an image.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
int ViewportWidth
Cache viewport values for depth peeling.
virtual void DeviceRenderTranslucentPolygonalGeometry()
Render translucent polygonal geometry.
int DepthPeelingIsSupportedChecked
This flag is on once the OpenGL extensions required by the depth peeling technique have been checked...
virtual void DeviceRenderOpaqueGeometry()
Render opaque polygonal geometry.
vtkOpenGLRendererLayerList * LayerList
Used by the depth peeling technique to store the transparency layers.
vtkShaderProgram2 * ShaderProgram
virtual unsigned int GetPickedId()=0
int ViewportX
Cache viewport values for depth peeling.
virtual void StartPick(unsigned int pickFromSize)=0
int ViewportHeight
Cache viewport values for depth peeling.
virtual unsigned int GetNumPickedIds()=0
int ViewportY
Cache viewport values for depth peeling.
int DepthPeelingIsSupported
This flag is on if the current OpenGL context supports extensions required by the depth peeling techn...
unsigned int OpaqueLayerZ
static vtkRenderer * New()
Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on...
virtual void DevicePickRender()=0
Perform part of the rendering of a vtkRenderer.
class vtkGLPickInfo * PickInfo
unsigned int DepthFormat
Actual depth format: vtkgl::DEPTH_COMPONENT16_ARB or vtkgl::DEPTH_COMPONENT24_ARB.
virtual void DonePick()=0
unsigned int TransparentLayerZ
virtual void Clear()
Clear the image to the background color.
unsigned int ProgramShader