vtkCgShaderProgram Class Reference

#include <vtkCgShaderProgram.h>

Inheritance diagram for vtkCgShaderProgram:

Inheritance graph
[legend]
Collaboration diagram for vtkCgShaderProgram:

Collaboration graph
[legend]

List of all members.


Detailed Description

Cg Shader Program.

vtkCgShaderProgram allows vtkShaderProperty (later vtkProperty) to treat a vertex/fragment shader pair as a single unit for the purpose of setting their common material library and encapsulating shader operation: shader installation and variable initialization.

Since the interface between Cg shaders is only resolved at runtime (shader runtime that is, after they've been installed on the card), Cg does not have the concept of a shader Program. This class simply delegates shader program functions to its delegate vtkCgShaders.

See also:
vtkShaderBase, vtkShader, vtkCgShader, vtkShaderProgram
Thanks:
Shader support in VTK includes key contributions by Gary Templet at Sandia National Labs.

Definition at line 52 of file vtkCgShaderProgram.h.


Public Types

typedef vtkShaderProgram Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Render (vtkActor *, vtkRenderer *)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkCgShaderProgramSafeDownCast (vtkObject *o)
static vtkCgShaderProgramNew ()

Protected Member Functions

 vtkCgShaderProgram ()
 ~vtkCgShaderProgram ()
virtual vtkShaderNewShader ()

Member Typedef Documentation

Reimplemented from vtkShaderProgram.

Definition at line 55 of file vtkCgShaderProgram.h.


Constructor & Destructor Documentation

vtkCgShaderProgram::vtkCgShaderProgram (  )  [protected]

vtkCgShaderProgram::~vtkCgShaderProgram (  )  [protected]


Member Function Documentation

virtual const char* vtkCgShaderProgram::GetClassName (  )  [virtual]

Reimplemented from vtkShaderProgram.

static int vtkCgShaderProgram::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkShaderProgram.

virtual int vtkCgShaderProgram::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkShaderProgram.

static vtkCgShaderProgram* vtkCgShaderProgram::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkShaderProgram.

static vtkCgShaderProgram* vtkCgShaderProgram::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

void vtkCgShaderProgram::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 vtkShaderProgram.

virtual void vtkCgShaderProgram::Render ( vtkActor ,
vtkRenderer  
) [virtual]

Implements vtkShaderProgram.

virtual vtkShader* vtkCgShaderProgram::NewShader (  )  [protected, virtual]

Creates and returns a new vtkCgShader.

Implements vtkShaderProgram.


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

Generated on Sat Dec 27 13:19:36 2008 for VTK by  doxygen 1.5.6