00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkOpenGLRenderer.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00039 #ifndef __vtkOpenGLRenderer_h 00040 #define __vtkOpenGLRenderer_h 00041 00042 #include "vtkRenderer.h" 00043 00044 class VTK_RENDERING_EXPORT vtkOpenGLRenderer : public vtkRenderer 00045 { 00046 protected: 00047 int NumberOfLightsBound; 00048 00049 public: 00050 static vtkOpenGLRenderer *New(); 00051 vtkTypeRevisionMacro(vtkOpenGLRenderer,vtkRenderer); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 void DeviceRender(void); 00056 00059 void ClearLights(void); 00060 00061 void Clear(void); 00062 00064 int UpdateLights(void); 00065 00066 protected: 00067 vtkOpenGLRenderer(); 00068 ~vtkOpenGLRenderer(); 00069 00070 //BTX 00071 // Picking functions to be implemented by sub-classes 00072 virtual void DevicePickRender(); 00073 virtual void StartPick(unsigned int pickFromSize); 00074 virtual void UpdatePickId(); 00075 virtual void DonePick(); 00076 virtual unsigned int GetPickedId(); 00077 virtual float GetPickedZ(); 00078 // Ivars used in picking 00079 class vtkGLPickInfo* PickInfo; 00080 //ETX 00081 float PickedZ; 00082 private: 00083 vtkOpenGLRenderer(const vtkOpenGLRenderer&); // Not implemented. 00084 void operator=(const vtkOpenGLRenderer&); // Not implemented. 00085 }; 00086 00087 #endif