vtkLightingHelper Class Reference

#include <vtkLightingHelper.h>

Inheritance diagram for vtkLightingHelper:

Inheritance graph
[legend]
Collaboration diagram for vtkLightingHelper:

Collaboration graph
[legend]

List of all members.


Detailed Description

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.

See also:
vtkShaderProgram2

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 vtkShaderProgram2GetShader ()

Static Public Member Functions

static vtkLightingHelperNew ()
static int IsTypeOf (const char *type)
static vtkLightingHelperSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkLightingHelper ()
 ~vtkLightingHelper ()
void SetShader (vtkShaderProgram2 *shader)

Protected Attributes

vtkShaderProgram2Shader

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 40 of file vtkLightingHelper.h.


Constructor & Destructor Documentation

vtkLightingHelper::vtkLightingHelper (  )  [protected]

vtkLightingHelper::~vtkLightingHelper (  )  [protected]


Member Function Documentation

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]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

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]


Member Data Documentation

Definition at line 63 of file vtkLightingHelper.h.


The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:32:30 2010 for VTK by  doxygen 1.5.6