VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends
vtkShaderCodeLibrary Class Reference

Library for Hardware Shaders. More...

#include <vtkShaderCodeLibrary.h>

Inheritance diagram for vtkShaderCodeLibrary:
Inheritance graph
[legend]
Collaboration diagram for vtkShaderCodeLibrary:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkShaderCodeLibraryNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)

Static Public Member Functions

static vtkShaderCodeLibraryNew ()
static int IsTypeOf (const char *type)
static vtkShaderCodeLibrarySafeDownCast (vtkObjectBase *o)
static char * GetShaderCode (const char *name)
static const char ** GetListOfShaderCodeNames ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const

Friends

class vtkInternalCleanup
static void RegisterShaderCode (const char *name, const char *code)
 vtkShaderCodeLibrary ()
 ~vtkShaderCodeLibrary ()

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 30 of file vtkShaderCodeLibrary.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 34 of file vtkShaderCodeLibrary.h.


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkShaderCodeLibrary::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

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 71 of file vtkShaderCodeLibrary.h.


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