VTK  9.2.20230327
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 
40 VTK_ABI_NAMESPACE_BEGIN
42 
43 class VTKRENDERINGOPENGL2_EXPORT vtkLightingMapPass : public vtkDefaultPass
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
55  {
57  NORMALS
58  };
59  vtkSetMacro(RenderType, RenderMode);
60  vtkGetMacro(RenderType, RenderMode);
62 
69 
76 
81  void Render(const vtkRenderState* s) override;
82 
83 protected:
88 
92  ~vtkLightingMapPass() override;
93 
98  void RenderOpaqueGeometry(const vtkRenderState* s) override;
99 
100 private:
101  vtkLightingMapPass(const vtkLightingMapPass&) = delete;
102  void operator=(const vtkLightingMapPass&) = delete;
103 
104  RenderMode RenderType;
105 };
106 
107 VTK_ABI_NAMESPACE_END
108 #endif
Implement the basic render passes.
a simple class to control print indentation
Definition: vtkIndent.h:120
Key for integer values in vtkInformation.
~vtkLightingMapPass() override
Destructor.
vtkLightingMapPass()
Default constructor.
static vtkInformationIntegerKey * RENDER_NORMALS()
if this key exists on the ProperyKeys of a prop, the active vector array on the prop will be rendered...
void Render(const vtkRenderState *s) override
Perform rendering according to a render state s.
RenderMode
Set the type of lighting render to perform.
static vtkLightingMapPass * New()
static vtkInformationIntegerKey * RENDER_LUMINANCE()
If this key exists on the PropertyKeys of a prop, the active scalar array on the prop will be rendere...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderOpaqueGeometry(const vtkRenderState *s) override
Opaque pass with key checking.
Context in which a vtkRenderPass will render.