#include <vtkLightingHelper.h>


vtkLightingHelper is an helper to assist in simulating lighting similar to default OpenGL pipeline. Look at vtkLightingHelper_s for available GLSL functions.
Definition at line 36 of file vtkLightingHelper.h.
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| void | PrepareForRendering () |
| void | Initialize (vtkShaderProgram2 *shader, vtkShader2Type mode) |
| virtual vtkShaderProgram2 * | GetShader () |
Static Public Member Functions | |
| static vtkLightingHelper * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkLightingHelper * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkLightingHelper () | |
| ~vtkLightingHelper () | |
| void | SetShader (vtkShaderProgram2 *shader) |
Protected Attributes | |
| vtkShaderProgram2 * | Shader |
| vtkLightingHelper::vtkLightingHelper | ( | ) | [protected] |
| vtkLightingHelper::~vtkLightingHelper | ( | ) | [protected] |
| static vtkLightingHelper* vtkLightingHelper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
| virtual const char* vtkLightingHelper::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
| static int vtkLightingHelper::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 vtkLightingHelper::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 vtkLightingHelper* vtkLightingHelper::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
| void vtkLightingHelper::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
| void vtkLightingHelper::Initialize | ( | vtkShaderProgram2 * | shader, | |
| vtkShader2Type | mode | |||
| ) |
Get/Set the shader program to which we want to add the lighting kernels. mode = VTK_SHADER_TYPE_VERTEX or VTK_SHADER_TYPE_FRAGMENT depending on whether the vertex lighting or fragment lighting is to be used.
| virtual vtkShaderProgram2* vtkLightingHelper::GetShader | ( | ) | [virtual] |
Get/Set the shader program to which we want to add the lighting kernels. mode = VTK_SHADER_TYPE_VERTEX or VTK_SHADER_TYPE_FRAGMENT depending on whether the vertex lighting or fragment lighting is to be used.
| void vtkLightingHelper::PrepareForRendering | ( | ) |
Updates any lighting specific information needed. This must be called before the shader program is bound.
| void vtkLightingHelper::SetShader | ( | vtkShaderProgram2 * | shader | ) | [protected] |
vtkShaderProgram2* vtkLightingHelper::Shader [protected] |
Definition at line 63 of file vtkLightingHelper.h.
1.5.6