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 "vtkObject.h"
32 
33 class vtkShaderProgram2;
34 
36 {
37 public:
38  static vtkColorMaterialHelper* New();
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:
59 
60  void SetShader(vtkShaderProgram2*);
62 
64  {
65  DISABLED = 0,
66  AMBIENT = 1,
67  DIFFUSE = 2,
68  SPECULAR = 3,
69  AMBIENT_AND_DIFFUSE = 4,
70  EMISSION = 5
71  };
73 
74 private:
75  vtkColorMaterialHelper(const vtkColorMaterialHelper&); // Not implemented.
76  void operator=(const vtkColorMaterialHelper&); // Not implemented.
77 //ETX
78 };
79 
80 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
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:37
#define VTK_RENDERING_EXPORT
static vtkObject * New()