VTK
|
helper to assist in simulating lighting similar to default OpenGL pipeline. More...
#include <vtkLightingHelper.h>
Public Types | |
enum | { VTK_MAX_LIGHTS = 8 } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkLightingHelper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Initialize (vtkShaderProgram2 *shader, vtkShader2Type mode) |
virtual vtkShaderProgram2 * | GetShader () |
void | EncodeLightState () |
void | PrepareForRendering () |
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 40 of file vtkLightingHelper.h.
Reimplemented from vtkObject.
Definition at line 44 of file vtkLightingHelper.h.
anonymous enum |
Definition at line 47 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.
void vtkLightingHelper::EncodeLightState | ( | ) | [inline] |
Encodes light state in diffuse component 3, where the shader looks for it.
Definition at line 63 of file vtkLightingHelper.h.
Encodes light state in diffuse component 3, where the shader looks for it.
void vtkLightingHelper::SetShader | ( | vtkShaderProgram2 * | shader | ) | [protected] |
vtkShaderProgram2* vtkLightingHelper::Shader [protected] |
Definition at line 73 of file vtkLightingHelper.h.