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

vtkMesaRenderer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMesaRenderer.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 =========================================================================*/
00041 #ifndef __vtkMesaRenderer_h
00042 #define __vtkMesaRenderer_h
00043 
00044 #include "vtkRenderer.h"
00045 
00046 class VTK_RENDERING_EXPORT vtkMesaRenderer : public vtkRenderer
00047 {
00048 protected:
00049   int NumberOfLightsBound;
00050 
00051 public:
00052   static vtkMesaRenderer *New();
00053   vtkTypeRevisionMacro(vtkMesaRenderer,vtkRenderer);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057   void DeviceRender(void); 
00058 
00061   void ClearLights(void);
00062 
00063   void Clear(void);
00064 
00066   int UpdateLights(void);
00067   
00068 
00069   
00070   // Create a vtkMesaCamera, will be used by the super class
00071   // to create the correct camera object.
00072   virtual vtkCamera* MakeCamera();
00073   
00074   // Create a vtkMesaLight, will be used by the super class
00075   // to create the correct light object.
00076   virtual vtkLight* MakeLight();
00077   
00078 protected:
00079   vtkMesaRenderer();
00080   ~vtkMesaRenderer();
00081 
00082   //BTX
00083   // Picking functions to be implemented by sub-classes
00084   virtual void DevicePickRender();
00085   virtual void StartPick(unsigned int pickFromSize);
00086   virtual void UpdatePickId();
00087   virtual void DonePick();
00088   virtual unsigned int GetPickedId();
00089   virtual double GetPickedZ();
00090   // Ivars used in picking
00091   class vtkGLPickInfo* PickInfo;
00092   //ETX
00093   double PickedZ;
00094 private:
00095   vtkMesaRenderer(const vtkMesaRenderer&);  // Not implemented.
00096   void operator=(const vtkMesaRenderer&);  // Not implemented.
00097 };
00098 
00099 #endif