VTK
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 "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkObject.h"
33 
34 class vtkShaderProgram2;
35 
37 {
38 public:
39  static vtkColorMaterialHelper* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
43  //BTX
44  void Initialize(vtkShaderProgram2*);
45  vtkGetObjectMacro(Shader, vtkShaderProgram2);
46  //ETX
47 
50  void SetUniformVariables();
51 
54  void PrepareForRendering();
55 
59  void Render();
60 
61 //BTX
62 protected:
65 
66  void SetShader(vtkShaderProgram2*);
68 
70  {
71  DISABLED = 0,
72  AMBIENT = 1,
73  DIFFUSE = 2,
74  SPECULAR = 3,
75  AMBIENT_AND_DIFFUSE = 4,
76  EMISSION = 5
77  };
79 
80 private:
81  vtkColorMaterialHelper(const vtkColorMaterialHelper&); // Not implemented.
82  void operator=(const vtkColorMaterialHelper&); // Not implemented.
83 //ETX
84 };
85 
86 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
a helper to assist in simulating the ColorMaterial behaviour of the default OpenGL pipeline...
GLSL Program.
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkShaderProgram2 * Shader
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
static vtkObject * New()