VTK  9.2.6
vtkLightingMapPass.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLightingMapPass.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 =========================================================================*/
34 #ifndef vtkLightingMapPass_h
35 #define vtkLightingMapPass_h
36 
37 #include "vtkDefaultPass.h"
38 #include "vtkRenderingOpenGL2Module.h" // For export macro
39 
41 
42 class VTKRENDERINGOPENGL2_EXPORT vtkLightingMapPass : public vtkDefaultPass
43 {
44 public:
45  static vtkLightingMapPass* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
54  {
56  NORMALS
57  };
58  vtkSetMacro(RenderType, RenderMode);
59  vtkGetMacro(RenderType, RenderMode);
61 
67  static vtkInformationIntegerKey* RENDER_LUMINANCE();
68 
74  static vtkInformationIntegerKey* RENDER_NORMALS();
75 
80  void Render(const vtkRenderState* s) override;
81 
82 protected:
87 
91  ~vtkLightingMapPass() override;
92 
97  void RenderOpaqueGeometry(const vtkRenderState* s) override;
98 
99 private:
100  vtkLightingMapPass(const vtkLightingMapPass&) = delete;
101  void operator=(const vtkLightingMapPass&) = delete;
102 
103  RenderMode RenderType;
104 };
105 
106 #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:39
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.