00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLMaterialReader.h,v $ 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 =========================================================================*/ 00047 #ifndef __vtkXMLMaterialReader_h 00048 #define __vtkXMLMaterialReader_h 00049 00050 #include "vtkObject.h" 00051 00052 class vtkXMLDataElement; 00053 class vtkXMLMaterial; 00054 class vtkXMLMaterialParser; 00055 00056 class VTK_IO_EXPORT vtkXMLMaterialReader : public vtkObject 00057 { 00058 public: 00059 vtkTypeRevisionMacro(vtkXMLMaterialReader,vtkObject); 00060 void PrintSelf(ostream& os, vtkIndent indent); 00061 static vtkXMLMaterialReader* New(); 00062 00064 00065 vtkSetStringMacro(FileName); 00066 vtkGetStringMacro(FileName); 00068 00072 void ReadMaterial(); 00073 00075 vtkXMLMaterial* GetMaterial(); 00076 protected: 00077 vtkXMLMaterialReader(); 00078 ~vtkXMLMaterialReader(); 00079 00081 virtual void CreateXMLParser(); 00082 00084 virtual void DestroyXMLParser(); 00085 00086 char* FileName; 00087 vtkXMLMaterialParser* XMLParser; 00088 vtkTimeStamp ParseTime; 00089 00090 private: 00091 vtkXMLMaterialReader(const vtkXMLMaterialReader&); // Not implemented. 00092 void operator=(const vtkXMLMaterialReader&); // Not implemented. 00093 }; 00094 #endif