VTK
vtkMaterialLibrary.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMaterialLibrary.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef __vtkMaterialLibrary_h
25 #define __vtkMaterialLibrary_h
26 
27 #include "vtkIOGeometryModule.h" // For export macro
28 #include "vtkObject.h"
29 
30 class VTKIOGEOMETRY_EXPORT vtkMaterialLibrary : public vtkObject
31 {
32 public:
33  static vtkMaterialLibrary* New();
34  vtkTypeMacro(vtkMaterialLibrary, vtkObject);
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
41  static char* GetMaterial(const char* name);
42 
46  static const char** GetListOfMaterialNames();
47 
49 
50  static unsigned int GetNumberOfMaterials();
51 protected:
55 
56 private:
57  vtkMaterialLibrary(const vtkMaterialLibrary&); // Not implemented.
58  void operator=(const vtkMaterialLibrary&); // Not implemented.
59 };
60 
61 #endif
62