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

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 =========================================================================*/
00035 #ifndef __vtkOpenGLRenderer_h
00036 #define __vtkOpenGLRenderer_h
00037 
00038 #include "vtkRenderer.h"
00039 
00040 class VTK_RENDERING_EXPORT vtkOpenGLRenderer : public vtkRenderer
00041 {
00042 protected:
00043   int NumberOfLightsBound;
00044 
00045 public:
00046   static vtkOpenGLRenderer *New();
00047   vtkTypeRevisionMacro(vtkOpenGLRenderer,vtkRenderer);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051   void DeviceRender(void); 
00052 
00055   void ClearLights(void);
00056 
00057   void Clear(void);
00058 
00060   int UpdateLights(void);
00061   
00062 protected:
00063   vtkOpenGLRenderer();
00064   ~vtkOpenGLRenderer();
00065 
00066   //BTX
00067   // Picking functions to be implemented by sub-classes
00068   virtual void DevicePickRender();
00069   virtual void StartPick(unsigned int pickFromSize);
00070   virtual void UpdatePickId();
00071   virtual void DonePick();
00072   virtual unsigned int GetPickedId();
00073   virtual double GetPickedZ();
00074   // Ivars used in picking
00075   class vtkGLPickInfo* PickInfo;
00076   //ETX
00077   double PickedZ;
00078 private:
00079   vtkOpenGLRenderer(const vtkOpenGLRenderer&);  // Not implemented.
00080   void operator=(const vtkOpenGLRenderer&);  // Not implemented.
00081 };
00082 
00083 #endif