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 =========================================================================*/
27 #ifndef vtkOpenGLHardwareSelector_h
28 #define vtkOpenGLHardwareSelector_h
29 
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkHardwareSelector.h"
32 
33 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLHardwareSelector : public vtkHardwareSelector
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  void BeginRenderProp() override;
45  void EndRenderProp() override;
46 
51  void RenderCompositeIndex(unsigned int index) override;
52 
57  void RenderProcessId(unsigned int processid) override;
58 
59  // we need to initialize the depth buffer
60  void BeginSelection() override;
61  void EndSelection() override;
62 
63 protected:
65  ~vtkOpenGLHardwareSelector() override;
66 
67  void PreCapturePass(int pass) override;
68  void PostCapturePass(int pass) override;
69 
70  // Called internally before each prop is rendered
71  // for device specific configuration/preparation etc.
72  void BeginRenderProp(vtkRenderWindow *) override;
73  void EndRenderProp(vtkRenderWindow *) override;
74 
75  void SavePixelBuffer(int passNo) override;
76 
79 
80 private:
82  void operator=(const vtkOpenGLHardwareSelector&) = delete;
83 };
84 
85 #endif
virtual void SavePixelBuffer(int passNo)
virtual void EndSelection()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
implements the device specific code of vtkOpenGLHardwareSelector.
virtual void PostCapturePass(int pass)
virtual void PreCapturePass(int pass)
virtual void RenderProcessId(unsigned int processid)
Called by any vtkMapper or subclass to render process id.
virtual void EndRenderProp()
Called by the mapper before and after rendering each prop.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void BeginSelection()
static vtkHardwareSelector * New()
virtual void BeginRenderProp()
Called by the mapper before and after rendering each prop.
create a window for renderers to draw into
virtual void RenderCompositeIndex(unsigned int index)
Called by any vtkMapper or vtkProp subclass to render a composite-index.