VTK
dox/Rendering/Core/vtkMaterialLibrary.h
Go to the documentation of this file.
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 "vtkRenderingCoreModule.h" // For export macro
00028 #include "vtkObject.h"
00029 
00030 class VTKRENDERINGCORE_EXPORT vtkMaterialLibrary : public vtkObject
00031 {
00032 public:
00033   static vtkMaterialLibrary* New();
00034   vtkTypeMacro(vtkMaterialLibrary, vtkObject);
00035   void PrintSelf(ostream& os, vtkIndent indent);
00036 
00041   static char* GetMaterial(const char* name);
00042 
00046   static const char** GetListOfMaterialNames();
00047 
00049 
00050   static unsigned int GetNumberOfMaterials();
00051 protected:
00052   vtkMaterialLibrary();
00053   ~vtkMaterialLibrary();
00055 
00056 private:
00057   vtkMaterialLibrary(const vtkMaterialLibrary&); // Not implemented.
00058   void operator=(const vtkMaterialLibrary&); // Not implemented.
00059 };
00060 
00061 #endif
00062