#include <vtkMaterialLibrary.h>
This class provides the Material XMLs.
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 vtkMaterialLibrary * | New () |
static int | IsTypeOf (const char *type) |
static vtkMaterialLibrary * | SafeDownCast (vtkObject *o) |
static char * | GetMaterial (const char *name) |
static const char ** | GetListOfMaterialNames () |
static unsigned int | GetNumberOfMaterials () |
Protected Member Functions | |
vtkMaterialLibrary () | |
~vtkMaterialLibrary () |
vtkMaterialLibrary::vtkMaterialLibrary | ( | ) | [protected] |
vtkMaterialLibrary::~vtkMaterialLibrary | ( | ) | [protected] |
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 vtkTypeRevisionMacro 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 vtkTypeRevisionMacro 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] |
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.