VTK
|
Library for Materials. More...
#include <vtkMaterialLibrary.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkMaterialLibrary * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkMaterialLibrary * | New () |
static int | IsTypeOf (const char *type) |
static vtkMaterialLibrary * | SafeDownCast (vtkObjectBase *o) |
static char * | GetMaterial (const char *name) |
static const char ** | GetListOfMaterialNames () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
static unsigned int | GetNumberOfMaterials () |
vtkMaterialLibrary () | |
~vtkMaterialLibrary () |
Library for Materials.
This class provides the Material XMLs.
Definition at line 30 of file vtkMaterialLibrary.h.
Reimplemented from vtkObject.
Definition at line 34 of file vtkMaterialLibrary.h.
vtkMaterialLibrary::vtkMaterialLibrary | ( | ) | [protected] |
Returns the number of materials provided by the library.
vtkMaterialLibrary::~vtkMaterialLibrary | ( | ) | [protected] |
Returns the number of materials provided by the library.
static vtkMaterialLibrary* vtkMaterialLibrary::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkMaterialLibrary::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
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.