VTK  9.3.20240328
vtkClearRGBPass.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
13 #ifndef vtkClearRGBPass_h
14 #define vtkClearRGBPass_h
15 
16 #include "vtkRenderPass.h"
17 #include "vtkRenderingOpenGL2Module.h" // For export macro
18 
19 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKRENDERINGOPENGL2_EXPORT vtkClearRGBPass : public vtkRenderPass
23 {
24 public:
25  static vtkClearRGBPass* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
32  void Render(const vtkRenderState* s) override;
33 
35 
39  vtkSetVector3Macro(Background, double);
40  vtkGetVector3Macro(Background, double);
42 
43 protected:
48 
52  ~vtkClearRGBPass() override;
53 
54  double Background[3];
55 
56 private:
57  vtkClearRGBPass(const vtkClearRGBPass&) = delete;
58  void operator=(const vtkClearRGBPass&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
Paint in the color buffer.
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkClearRGBPass * New()
~vtkClearRGBPass() override
Destructor.
vtkClearRGBPass()
Default constructor.
a simple class to control print indentation
Definition: vtkIndent.h:108
OpenGL rendering window.
Perform part of the rendering of a vtkRenderer.
Definition: vtkRenderPass.h:49
Context in which a vtkRenderPass will render.
@ Background
Definition: vtkX3D.h:71