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

Rendering/vtkMesaRenderer.h

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