VTK  9.3.1
vtkLightingMapPass.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
22 #ifndef vtkLightingMapPass_h
23 #define vtkLightingMapPass_h
24 
25 #include "vtkDefaultPass.h"
26 #include "vtkRenderingOpenGL2Module.h" // For export macro
27 
28 VTK_ABI_NAMESPACE_BEGIN
30 
31 class VTKRENDERINGOPENGL2_EXPORT vtkLightingMapPass : public vtkDefaultPass
32 {
33 public:
34  static vtkLightingMapPass* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
43  {
45  NORMALS
46  };
47  vtkSetMacro(RenderType, RenderMode);
48  vtkGetMacro(RenderType, RenderMode);
50 
56  static vtkInformationIntegerKey* RENDER_LUMINANCE();
57 
63  static vtkInformationIntegerKey* RENDER_NORMALS();
64 
69  void Render(const vtkRenderState* s) override;
70 
71 protected:
76 
80  ~vtkLightingMapPass() override;
81 
86  void RenderOpaqueGeometry(const vtkRenderState* s) override;
87 
88 private:
89  vtkLightingMapPass(const vtkLightingMapPass&) = delete;
90  void operator=(const vtkLightingMapPass&) = delete;
91 
92  RenderMode RenderType;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
RenderMode
Set the type of lighting render to perform.
static vtkDefaultPass * New()
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
Context in which a vtkRenderPass will render.
a simple class to control print indentation
Definition: vtkIndent.h:28
Key for integer values in vtkInformation.
virtual void RenderOpaqueGeometry(const vtkRenderState *s)
Opaque pass without key checking.
Implement the basic render passes.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.