VTK  9.3.1
vtkOpenGLHardwareSelector.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkOpenGLHardwareSelector_h
16 #define vtkOpenGLHardwareSelector_h
17 
18 #include "vtkHardwareSelector.h"
19 #include "vtkRenderingOpenGL2Module.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLHardwareSelector : public vtkHardwareSelector
23 {
24 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
33  void BeginRenderProp() override;
34  void EndRenderProp() override;
35 
40  void RenderCompositeIndex(unsigned int index) override;
41 
46  void RenderProcessId(unsigned int processid) override;
47 
48  // we need to initialize the depth buffer
49  void BeginSelection() override;
50  void EndSelection() override;
51 
52 protected:
54  ~vtkOpenGLHardwareSelector() override;
55 
56  void PreCapturePass(int pass) override;
57  void PostCapturePass(int pass) override;
58 
59  // Called internally before each prop is rendered
60  // for device specific configuration/preparation etc.
61  void BeginRenderProp(vtkRenderWindow*) override;
62  void EndRenderProp(vtkRenderWindow*) override;
63 
64  void SavePixelBuffer(int passNo) override;
65 
68 
69 private:
71  void operator=(const vtkOpenGLHardwareSelector&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #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:28
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.