00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMaterialLibrary.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00024 #ifndef __vtkMaterialLibrary_h 00025 #define __vtkMaterialLibrary_h 00026 00027 #include "vtkObject.h" 00028 00029 class VTK_IO_EXPORT vtkMaterialLibrary : public vtkObject 00030 { 00031 public: 00032 static vtkMaterialLibrary* New(); 00033 vtkTypeMacro(vtkMaterialLibrary, vtkObject); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00040 static char* GetMaterial(const char* name); 00041 00045 static const char** GetListOfMaterialNames(); 00046 00048 static unsigned int GetNumberOfMaterials(); 00049 protected: 00050 vtkMaterialLibrary(); 00051 ~vtkMaterialLibrary(); 00052 00053 private: 00054 vtkMaterialLibrary(const vtkMaterialLibrary&); // Not implemented. 00055 void operator=(const vtkMaterialLibrary&); // Not implemented. 00056 }; 00057 00058 #endif 00059