00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkRTXMLPolyDataReader.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 =========================================================================*/ 00022 #ifndef __vtkRTXMLPolyDataReader_h 00023 #define __vtkRTXMLPolyDataReader_h 00024 00025 #include "vtkXMLPolyDataReader.h" 00026 00027 class vtkRTXMLPolyDataReaderInternals; 00028 00029 class VTK_IO_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader 00030 { 00031 public: 00032 vtkTypeMacro(vtkRTXMLPolyDataReader,vtkXMLPolyDataReader); 00033 void PrintSelf(ostream& os, vtkIndent indent); 00034 static vtkRTXMLPolyDataReader* New(); 00035 00036 // This sets the DataLocation and also 00037 // Reset the reader by calling ResetReader() 00038 void SetLocation(const char* dataLocation); 00039 vtkGetStringMacro(DataLocation); 00040 00043 virtual void UpdateToNextFile(); 00044 00046 virtual int NewDataAvailable(); 00047 00053 virtual void ResetReader(); 00054 00057 const char* GetNextFileName(); 00058 00059 protected: 00060 vtkRTXMLPolyDataReader(); 00061 ~vtkRTXMLPolyDataReader(); 00062 00064 00065 vtkSetStringMacro(DataLocation); 00067 00068 void InitializeToCurrentDir(); 00069 int IsProcessed(const char*); 00070 char* GetDataFileFullPathName(const char*); 00071 00073 00075 char* DataLocation; 00076 vtkRTXMLPolyDataReaderInternals* Internal; 00078 00079 private: 00080 vtkRTXMLPolyDataReader(const vtkRTXMLPolyDataReader&); // Not implemented. 00081 void operator=(const vtkRTXMLPolyDataReader&); // Not implemented. 00082 }; 00083 00084 #endif