VTK
|
helper to assist in simulating lighting similar to default OpenGL pipeline. More...
#include <vtkLightingHelper.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkLightingHelper * | NewInstance () const |
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 (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkLightingHelper () | |
~vtkLightingHelper () | |
void | SetShader (vtkShaderProgram2 *shader) |
Protected Attributes | |
vtkShaderProgram2 * | Shader |
helper to assist in simulating lighting similar to default OpenGL pipeline.
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 37 of file vtkLightingHelper.h.
Reimplemented from vtkObject.
Definition at line 41 of file vtkLightingHelper.h.
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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkLightingHelper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
vtkLightingHelper* vtkLightingHelper::NewInstance | ( | ) | const |
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.
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 64 of file vtkLightingHelper.h.