VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkLightingHelper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLightingHelper.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
=========================================================================*/
28
#ifndef __vtkLightingHelper_h
29
#define __vtkLightingHelper_h
30
31
#include "
vtkObject.h
"
32
#include "
vtkShader2.h
"
// for vtkShader2Type
33
34
class
vtkShaderProgram2
;
35
36
class
VTK_RENDERING_EXPORT
vtkLightingHelper
:
public
vtkObject
37
{
38
public
:
39
static
vtkLightingHelper
*
New
();
40
vtkTypeMacro(
vtkLightingHelper
,
vtkObject
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent);
42
44
48
void
Initialize(
vtkShaderProgram2
*shader,
49
vtkShader2Type
mode
);
50
vtkGetObjectMacro(Shader,
vtkShaderProgram2
);
52
55
void
PrepareForRendering();
56
57
//BTX
58
protected
:
59
vtkLightingHelper
();
60
~
vtkLightingHelper
();
61
62
void
SetShader(
vtkShaderProgram2
*shader);
63
vtkShaderProgram2
*
Shader
;
64
65
private
:
66
vtkLightingHelper
(
const
vtkLightingHelper
&);
// Not implemented.
67
void
operator=(
const
vtkLightingHelper
&);
// Not implemented.
68
//ETX
69
};
70
71
#endif
Generated on Thu Mar 13 2014 08:10:32 for VTK by
1.8.1.2