VTK
vtkXMLMaterialReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLMaterialReader.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 =========================================================================*/
47 #ifndef __vtkXMLMaterialReader_h
48 #define __vtkXMLMaterialReader_h
49 
50 #include "vtkIOXMLModule.h" // For export macro
51 #include "vtkObject.h"
52 
53 class vtkXMLDataElement;
54 class vtkXMLMaterial;
56 
57 class VTKIOXML_EXPORT vtkXMLMaterialReader : public vtkObject
58 {
59 public:
61  void PrintSelf(ostream& os, vtkIndent indent);
62  static vtkXMLMaterialReader* New();
63 
65 
66  vtkSetStringMacro(FileName);
67  vtkGetStringMacro(FileName);
69 
73  void ReadMaterial();
74 
76 
77  vtkXMLMaterial* GetMaterial();
78 protected:
82 
84  virtual void CreateXMLParser();
85 
87  virtual void DestroyXMLParser();
88 
89  char* FileName;
92 
93 private:
94  vtkXMLMaterialReader(const vtkXMLMaterialReader&); // Not implemented.
95  void operator=(const vtkXMLMaterialReader&); // Not implemented.
96 };
97 #endif