VTK
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 =========================================================================*/
31 #ifndef vtkLightingMapPass_h
32 #define vtkLightingMapPass_h
33 
34 #include "vtkRenderingOpenGL2Module.h" // For export macro
35 #include "vtkDefaultPass.h"
36 
38 
39 class VTKRENDERINGOPENGL2_EXPORT vtkLightingMapPass : public vtkDefaultPass
40 {
41 public:
42  static vtkLightingMapPass *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
50  enum RenderMode { LUMINANCE, NORMALS };
51  vtkSetMacro(RenderType, RenderMode);
52  vtkGetMacro(RenderType, RenderMode);
54 
60  static vtkInformationIntegerKey *RENDER_LUMINANCE();
61 
67  static vtkInformationIntegerKey *RENDER_NORMALS();
68 
73  void Render(const vtkRenderState *s) VTK_OVERRIDE;
74 
75  protected:
80 
84  ~vtkLightingMapPass() VTK_OVERRIDE;
85 
90  void RenderOpaqueGeometry(const vtkRenderState *s) VTK_OVERRIDE;
91 
92  private:
93  vtkLightingMapPass(const vtkLightingMapPass&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkLightingMapPass&) VTK_DELETE_FUNCTION;
95 
96  RenderMode RenderType;
97 };
98 
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:33
Key for integer values in vtkInformation.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.