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 "vtkObject.h"
51 
52 class vtkXMLDataElement;
53 class vtkXMLMaterial;
55 
57 {
58 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61  static vtkXMLMaterialReader* New();
62 
64 
65  vtkSetStringMacro(FileName);
66  vtkGetStringMacro(FileName);
68 
72  void ReadMaterial();
73 
75 
76  vtkXMLMaterial* GetMaterial();
77 protected:
81 
83  virtual void CreateXMLParser();
84 
86  virtual void DestroyXMLParser();
87 
88  char* FileName;
91 
92 private:
93  vtkXMLMaterialReader(const vtkXMLMaterialReader&); // Not implemented.
94  void operator=(const vtkXMLMaterialReader&); // Not implemented.
95 };
96 #endif