VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
vtkColorMaterialHelper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkColorMaterialHelper.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 __vtkColorMaterialHelper_h
29
#define __vtkColorMaterialHelper_h
30
31
#include "
vtkObject.h
"
32
33
class
vtkShaderProgram2
;
34
35
class
VTK_RENDERING_EXPORT
vtkColorMaterialHelper
:
public
vtkObject
36
{
37
public
:
38
static
vtkColorMaterialHelper
*
New
();
39
vtkTypeMacro(
vtkColorMaterialHelper
,
vtkObject
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent);
41
42
//BTX
43
void
Initialize(
vtkShaderProgram2
*);
44
vtkGetObjectMacro(Shader,
vtkShaderProgram2
);
45
//ETX
46
49
void
PrepareForRendering();
50
53
void
Render();
54
55
//BTX
56
protected
:
57
vtkColorMaterialHelper
();
58
~
vtkColorMaterialHelper
();
59
60
void
SetShader(
vtkShaderProgram2
*);
61
vtkShaderProgram2
*
Shader
;
62
63
enum
eMaterialParamater
64
{
65
DISABLED = 0,
66
AMBIENT = 1,
67
DIFFUSE = 2,
68
SPECULAR = 3,
69
AMBIENT_AND_DIFFUSE = 4,
70
EMISSION = 5
71
};
72
eMaterialParamater
Mode
;
73
74
private
:
75
vtkColorMaterialHelper
(
const
vtkColorMaterialHelper
&);
// Not implemented.
76
void
operator=(
const
vtkColorMaterialHelper
&);
// Not implemented.
77
//ETX
78
};
79
80
#endif
Generated on Sun Sep 9 2012 13:03:44 for VTK by
1.8.1.2