vtkMaterialLibrary Class Reference

#include <vtkMaterialLibrary.h>

Inheritance diagram for vtkMaterialLibrary:

Inheritance graph
[legend]
Collaboration diagram for vtkMaterialLibrary:

Collaboration graph
[legend]

List of all members.


Detailed Description

Library for Materials.

This class provides the Material XMLs.

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

Definition at line 29 of file vtkMaterialLibrary.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 vtkMaterialLibraryNew ()
static int IsTypeOf (const char *type)
static vtkMaterialLibrarySafeDownCast (vtkObject *o)
static char * GetMaterial (const char *name)
static const char ** GetListOfMaterialNames ()
static unsigned int GetNumberOfMaterials ()

Protected Member Functions

 vtkMaterialLibrary ()
 ~vtkMaterialLibrary ()

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 33 of file vtkMaterialLibrary.h.


Constructor & Destructor Documentation

vtkMaterialLibrary::vtkMaterialLibrary (  )  [protected]

vtkMaterialLibrary::~vtkMaterialLibrary (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

static int vtkMaterialLibrary::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 vtkMaterialLibrary::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 vtkMaterialLibrary* vtkMaterialLibrary::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkObject.

void vtkMaterialLibrary::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* vtkMaterialLibrary::GetMaterial ( 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** vtkMaterialLibrary::GetListOfMaterialNames (  )  [static]

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

static unsigned int vtkMaterialLibrary::GetNumberOfMaterials (  )  [static]

Returns the number of materials provided by the library.


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

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