VTK  9.1.0
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 "vtkHardwareSelector.h"
31#include "vtkRenderingOpenGL2Module.h" // For export macro
32
33class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLHardwareSelector : public vtkHardwareSelector
34{
35public:
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
63protected:
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.
74
75 void SavePixelBuffer(int passNo) override;
76
79
80private:
82 void operator=(const vtkOpenGLHardwareSelector&) = delete;
83};
84
85#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
implements the device specific code of vtkOpenGLHardwareSelector.
void RenderProcessId(unsigned int processid) override
Called by any vtkMapper or subclass to render process id.
void RenderCompositeIndex(unsigned int index) override
Called by any vtkMapper or vtkProp subclass to render a composite-index.
void PreCapturePass(int pass) override
void PostCapturePass(int pass) override
void SavePixelBuffer(int passNo) override
void EndRenderProp(vtkRenderWindow *) override
static vtkOpenGLHardwareSelector * New()
void EndRenderProp() override
Called by the mapper before and after rendering each prop.
void BeginRenderProp(vtkRenderWindow *) override
void BeginSelection() override
~vtkOpenGLHardwareSelector() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void BeginRenderProp() override
Called by the mapper before and after rendering each prop.
void EndSelection() override
create a window for renderers to draw into