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:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
43  //BTX
46  //ETX
47 
51 
55 
59  void Render();
60 
61 //BTX
62 protected:
65 
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
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkColorMaterialHelper::Render
void Render()
vtkColorMaterialHelper::Initialize
void Initialize(vtkShaderProgram2 *)
vtkRenderingOpenGLModule.h
vtkColorMaterialHelper::eMaterialParamater
eMaterialParamater
Definition: vtkColorMaterialHelper.h:70
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkColorMaterialHelper::Mode
eMaterialParamater Mode
Definition: vtkColorMaterialHelper.h:78
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkColorMaterialHelper::SetUniformVariables
void SetUniformVariables()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkColorMaterialHelper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkObject.h
vtkColorMaterialHelper::PrepareForRendering
void PrepareForRendering()
vtkShaderProgram2
GLSL Program.
Definition: vtkShaderProgram2.h:68
vtkColorMaterialHelper::New
static vtkColorMaterialHelper * New()
vtkColorMaterialHelper::SetShader
void SetShader(vtkShaderProgram2 *)
vtkColorMaterialHelper
a helper to assist in simulating the ColorMaterial behaviour of the default OpenGL pipeline.
Definition: vtkColorMaterialHelper.h:37
vtkColorMaterialHelper::Shader
vtkShaderProgram2 * Shader
Definition: vtkColorMaterialHelper.h:67
vtkColorMaterialHelper::vtkColorMaterialHelper
vtkColorMaterialHelper()
vtkColorMaterialHelper::~vtkColorMaterialHelper
~vtkColorMaterialHelper()
VTKRENDERINGOPENGL_EXPORT
#define VTKRENDERINGOPENGL_EXPORT
Definition: vtkRenderingOpenGLModule.h:15