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=========================================================================*/
34#ifndef vtkLightingMapPass_h
35#define vtkLightingMapPass_h
36
37#include "vtkRenderingOpenGL2Module.h" // For export macro
38#include "vtkDefaultPass.h"
39
41
42class VTKRENDERINGOPENGL2_EXPORT vtkLightingMapPass : public vtkDefaultPass
43{
44public:
47 void PrintSelf(ostream& os, vtkIndent indent);
48
50
53 enum RenderMode { LUMINANCE, NORMALS };
54 vtkSetMacro(RenderType, RenderMode);
55 vtkGetMacro(RenderType, RenderMode);
57
64
71
76 virtual void Render(const vtkRenderState *s);
77
78 protected:
83
88
93 virtual void RenderOpaqueGeometry(const vtkRenderState *s);
94
95 private:
96 vtkLightingMapPass(const vtkLightingMapPass&) VTK_DELETE_FUNCTION;
97 void operator=(const vtkLightingMapPass&) VTK_DELETE_FUNCTION;
98
99 RenderMode RenderType;
100};
101
102#endif
Implement the basic render passes.
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for integer values in vtkInformation.
static vtkLightingMapPass * New()
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...
virtual void Render(const vtkRenderState *s)
Perform rendering according to a render state s.
virtual ~vtkLightingMapPass()
Destructor.
RenderMode
Set the type of lighting render to perform.
virtual void RenderOpaqueGeometry(const vtkRenderState *s)
Opaque pass with key checking.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkInformationIntegerKey * RENDER_LUMINANCE()
If this key exists on the PropertyKeys of a prop, the active scalar array on the prop will be rendere...
Context in which a vtkRenderPass will render.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.