VTK
vtkOpenGLHardwareSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLHardwareSelector.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 =========================================================================*/
26 #ifndef vtkOpenGLHardwareSelector_h
27 #define vtkOpenGLHardwareSelector_h
28 
29 #include "vtkRenderingOpenGL2Module.h" // For export macro
30 #include "vtkHardwareSelector.h"
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  virtual void BeginRenderProp();
42  virtual void EndRenderProp()
45 
48  virtual void RenderCompositeIndex(unsigned int index);
49 
52  virtual void RenderAttributeId(vtkIdType attribid);
53 
56  virtual void RenderProcessId(unsigned int processid);
57 
58 protected:
60  virtual ~vtkOpenGLHardwareSelector();
61 
62  // Called internally before and after each prop is rendered
63  // for device specific configuration/preparation etc.
64  virtual void BeginRenderProp(vtkRenderWindow *);
65  virtual void EndRenderProp(vtkRenderWindow *);
66 
67  virtual void SavePixelBuffer(int passNo);
68 
69  // for internal state
70  class vtkInternals;
71  vtkInternals* Internals;
72 
73 private:
74  vtkOpenGLHardwareSelector(const vtkOpenGLHardwareSelector&); // Not implemented.
75  void operator=(const vtkOpenGLHardwareSelector&); // Not implemented.
76 };
77 
78 #endif
virtual void SavePixelBuffer(int passNo)
implements the device specific code of vtkOpenGLHardwareSelector.
#define VTKRENDERINGOPENGL2_EXPORT
virtual void RenderProcessId(unsigned int processid)
int vtkIdType
Definition: vtkType.h:247
virtual void RenderAttributeId(vtkIdType attribid)
virtual void EndRenderProp()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkHardwareSelector * New()
virtual void BeginRenderProp()
create a window for renderers to draw into
manager for OpenGL-based selection.
virtual void RenderCompositeIndex(unsigned int index)