VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 
32 class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkLightingMapPass : public vtkDefaultPass
33 {
34 public:
35  static vtkLightingMapPass* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
44  {
46  NORMALS
47  };
48  vtkSetMacro(RenderType, RenderMode);
49  vtkGetMacro(RenderType, RenderMode);
51 
58  static vtkInformationIntegerKey* RENDER_LUMINANCE();
59 
66  static vtkInformationIntegerKey* RENDER_NORMALS();
67 
72  void Render(const vtkRenderState* s) override;
73 
74 protected:
79 
83  ~vtkLightingMapPass() override;
84 
89  void RenderOpaqueGeometry(const vtkRenderState* s) override;
90 
91 private:
92  vtkLightingMapPass(const vtkLightingMapPass&) = delete;
93  void operator=(const vtkLightingMapPass&) = delete;
94 
95  RenderMode RenderType;
96 };
97 
98 VTK_ABI_NAMESPACE_END
99 #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.
#define VTK_MARSHALAUTO
Implement the basic render passes.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.