VTK
vtkMesaRenderer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMesaRenderer.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef __vtkMesaRenderer_h
30 #define __vtkMesaRenderer_h
31 
32 #include "vtkRenderer.h"
33 
35 {
36 protected:
38 
39 public:
40  static vtkMesaRenderer *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45  void DeviceRender(void);
46 
49  void ClearLights(void);
50 
51  void Clear(void);
52 
54  int UpdateLights(void);
55 
56 
57 
58  // Create a vtkMesaCamera, will be used by the super class
59  // to create the correct camera object.
60  virtual vtkCamera* MakeCamera();
61 
62  // Create a vtkMesaLight, will be used by the super class
63  // to create the correct light object.
64  virtual vtkLight* MakeLight();
65 
66 protected:
68  ~vtkMesaRenderer();
69 
70  //BTX
71  // Picking functions to be implemented by sub-classes
72  virtual void DevicePickRender();
73  virtual void StartPick(unsigned int pickFromSize);
74  virtual void UpdatePickId();
75  virtual void DonePick();
76  virtual unsigned int GetPickedId();
77  virtual unsigned int GetNumPickedIds();
78  virtual int GetPickedIds(unsigned int atMost, unsigned int *callerBuffer);
79  virtual double GetPickedZ();
80  // Ivars used in picking
81  class vtkGLPickInfo* PickInfo;
82  //ETX
83  double PickedZ;
84 private:
85  vtkMesaRenderer(const vtkMesaRenderer&); // Not implemented.
86  void operator=(const vtkMesaRenderer&); // Not implemented.
87 };
88 
89 #endif