VTK
|
a helper to assist in simulating the ColorMaterial behaviour of the default OpenGL pipeline. More...
#include <vtkColorMaterialHelper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkColorMaterialHelper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Initialize (vtkShaderProgram2 *) |
virtual vtkShaderProgram2 * | GetShader () |
void | SetUniformVariables () |
void | PrepareForRendering () |
void | Render () |
Static Public Member Functions | |
static vtkColorMaterialHelper * | New () |
static int | IsTypeOf (const char *type) |
static vtkColorMaterialHelper * | SafeDownCast (vtkObjectBase *o) |
Protected Types | |
enum | eMaterialParamater { DISABLED = 0, AMBIENT = 1, DIFFUSE = 2, SPECULAR = 3, AMBIENT_AND_DIFFUSE = 4, EMISSION = 5 } |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkColorMaterialHelper () | |
~vtkColorMaterialHelper () | |
void | SetShader (vtkShaderProgram2 *) |
Protected Attributes | |
vtkShaderProgram2 * | Shader |
eMaterialParamater | Mode |
a helper to assist in simulating the ColorMaterial behaviour of the default OpenGL pipeline.
vtkColorMaterialHelper is a helper to assist in simulating the ColorMaterial behaviour of the default OpenGL pipeline. Look at vtkColorMaterialHelper_s for available GLSL functions.
Definition at line 36 of file vtkColorMaterialHelper.h.
Reimplemented from vtkObject.
Definition at line 40 of file vtkColorMaterialHelper.h.
enum vtkColorMaterialHelper::eMaterialParamater [protected] |
Definition at line 69 of file vtkColorMaterialHelper.h.
vtkColorMaterialHelper::vtkColorMaterialHelper | ( | ) | [protected] |
vtkColorMaterialHelper::~vtkColorMaterialHelper | ( | ) | [protected] |
static vtkColorMaterialHelper* vtkColorMaterialHelper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static int vtkColorMaterialHelper::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
virtual int vtkColorMaterialHelper::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
static vtkColorMaterialHelper* vtkColorMaterialHelper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkColorMaterialHelper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented from vtkObject.
void vtkColorMaterialHelper::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual vtkShaderProgram2* vtkColorMaterialHelper::GetShader | ( | ) | [virtual] |
Capture current OpenGL state and initialize uniform variables used by the helper shader.
Captures current OpenGL state. DEPRECATED (Use PrepareForRendering2 instead)
void vtkColorMaterialHelper::Render | ( | ) |
Initializes uniform variables with the last captured OpenGL state. NOTHING IS RENDERED THIS SETS UNIFORMS. DEPRECATED: Use SetUnformVariables instead.
void vtkColorMaterialHelper::SetShader | ( | vtkShaderProgram2 * | ) | [protected] |
vtkShaderProgram2* vtkColorMaterialHelper::Shader [protected] |
Definition at line 67 of file vtkColorMaterialHelper.h.
eMaterialParamater vtkColorMaterialHelper::Mode [protected] |
Definition at line 78 of file vtkColorMaterialHelper.h.