vtkShaderCodeLibrary Class Reference

#include <vtkShaderCodeLibrary.h>

Inheritance diagram for vtkShaderCodeLibrary:

Inheritance graph
[legend]
Collaboration diagram for vtkShaderCodeLibrary:

Collaboration graph
[legend]

List of all members.


Detailed Description

Library for Hardware Shaders.

This class provides the hardware shader code.

Thanks:
Shader support in VTK includes key contributions by Gary Templet at Sandia National Labs.

Definition at line 29 of file vtkShaderCodeLibrary.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)

Static Public Member Functions

static vtkShaderCodeLibraryNew ()
static int IsTypeOf (const char *type)
static vtkShaderCodeLibrarySafeDownCast (vtkObject *o)
static char * GetShaderCode (const char *name)
static const char ** GetListOfShaderCodeNames ()
static void RegisterShaderCode (const char *name, const char *code)

Protected Member Functions

 vtkShaderCodeLibrary ()
 ~vtkShaderCodeLibrary ()

Friends

class vtkInternalCleanup

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 33 of file vtkShaderCodeLibrary.h.


Constructor & Destructor Documentation

vtkShaderCodeLibrary::vtkShaderCodeLibrary (  )  [protected]

vtkShaderCodeLibrary::~vtkShaderCodeLibrary (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

static int vtkShaderCodeLibrary::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 vtkObject.

virtual int vtkShaderCodeLibrary::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 vtkObject.

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

Reimplemented from vtkObject.

void vtkShaderCodeLibrary::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.

static char* vtkShaderCodeLibrary::GetShaderCode ( const char *  name  )  [static]

Obtain the code for the shader with given name. Note that Cg shader names are prefixed with CG and GLSL shader names are prefixed with GLSL. This method allocates memory. It's the responsibility of the caller to free this memory.

static const char** vtkShaderCodeLibrary::GetListOfShaderCodeNames (  )  [static]

Returns an array of pointers to char strings that are the names of the shader codes provided by the library. The end of the array is marked by a null pointer.

static void vtkShaderCodeLibrary::RegisterShaderCode ( const char *  name,
const char *  code 
) [static]

Provides for registering shader code. This overrides the compiled in shader codes.


Friends And Related Function Documentation

friend class vtkInternalCleanup [friend]

Definition at line 68 of file vtkShaderCodeLibrary.h.


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

Generated on Sat Dec 27 13:49:17 2008 for VTK by  doxygen 1.5.6