Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Rendering/vtkOpenGLRenderer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOpenGLRenderer.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00022 #ifndef __vtkOpenGLRenderer_h
00023 #define __vtkOpenGLRenderer_h
00024 
00025 #include "vtkRenderer.h"
00026 
00027 class VTK_RENDERING_EXPORT vtkOpenGLRenderer : public vtkRenderer
00028 {
00029 protected:
00030   int NumberOfLightsBound;
00031 
00032 public:
00033   static vtkOpenGLRenderer *New();
00034   vtkTypeRevisionMacro(vtkOpenGLRenderer,vtkRenderer);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00038   void DeviceRender(void); 
00039 
00042   void ClearLights(void);
00043 
00044   void Clear(void);
00045 
00047   int UpdateLights(void);
00048   
00049 protected:
00050   vtkOpenGLRenderer();
00051   ~vtkOpenGLRenderer();
00052 
00053   //BTX
00054   // Picking functions to be implemented by sub-classes
00055   virtual void DevicePickRender();
00056   virtual void StartPick(unsigned int pickFromSize);
00057   virtual void UpdatePickId();
00058   virtual void DonePick();
00059   virtual unsigned int GetPickedId();
00060   virtual double GetPickedZ();
00061   // Ivars used in picking
00062   class vtkGLPickInfo* PickInfo;
00063   //ETX
00064   double PickedZ;
00065 private:
00066   vtkOpenGLRenderer(const vtkOpenGLRenderer&);  // Not implemented.
00067   void operator=(const vtkOpenGLRenderer&);  // Not implemented.
00068 };
00069 
00070 #endif