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 
32 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLHardwareSelector : public vtkHardwareSelector
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:
61 
62  // Called internally before and after each prop is rendered
63  // for device specific configuration/preparation etc.
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
vtkOpenGLHardwareSelector::~vtkOpenGLHardwareSelector
virtual ~vtkOpenGLHardwareSelector()
vtkOpenGLHardwareSelector::BeginRenderProp
virtual void BeginRenderProp()
vtkOpenGLHardwareSelector::BeginRenderProp
virtual void BeginRenderProp(vtkRenderWindow *)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkOpenGLHardwareSelector::RenderProcessId
virtual void RenderProcessId(unsigned int processid)
vtkHardwareSelector.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkOpenGLHardwareSelector::RenderCompositeIndex
virtual void RenderCompositeIndex(unsigned int index)
vtkOpenGLHardwareSelector
implements the device specific code of vtkOpenGLHardwareSelector.
Definition: vtkOpenGLHardwareSelector.h:33
vtkHardwareSelector::EndRenderProp
virtual void EndRenderProp()
vtkOpenGLHardwareSelector::New
static vtkOpenGLHardwareSelector * New()
vtkHardwareSelector
manager for OpenGL-based selection.
Definition: vtkHardwareSelector.h:76
vtkOpenGLHardwareSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOpenGLHardwareSelector::RenderAttributeId
virtual void RenderAttributeId(vtkIdType attribid)
vtkOpenGLHardwareSelector::SavePixelBuffer
virtual void SavePixelBuffer(int passNo)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkOpenGLHardwareSelector::EndRenderProp
virtual void EndRenderProp(vtkRenderWindow *)
vtkOpenGLHardwareSelector::EndRenderProp
virtual void EndRenderProp()
Definition: vtkOpenGLHardwareSelector.h:42
vtkOpenGLHardwareSelector::vtkOpenGLHardwareSelector
vtkOpenGLHardwareSelector()
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:89