VTK
dox/IO/XML/vtkRTXMLPolyDataReader.h
Go to the documentation of this file.
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 "vtkIOXMLModule.h" // For export macro
00026 #include "vtkXMLPolyDataReader.h"
00027 
00028 class vtkRTXMLPolyDataReaderInternals;
00029 
00030 class VTKIOXML_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader
00031 {
00032 public:
00033   vtkTypeMacro(vtkRTXMLPolyDataReader,vtkXMLPolyDataReader);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035   static vtkRTXMLPolyDataReader* New();
00036 
00037   // This sets the DataLocation and also
00038   // Reset the reader by calling ResetReader()
00039   void SetLocation(const char* dataLocation);
00040   vtkGetStringMacro(DataLocation);
00041 
00044   virtual void UpdateToNextFile();
00045 
00047   virtual int NewDataAvailable();
00048 
00054   virtual void ResetReader();
00055 
00058   const char* GetNextFileName();
00059 
00060 protected:
00061   vtkRTXMLPolyDataReader();
00062   ~vtkRTXMLPolyDataReader();
00063 
00065 
00066   vtkSetStringMacro(DataLocation);
00068 
00069   void InitializeToCurrentDir();
00070   int IsProcessed(const char*);
00071   char* GetDataFileFullPathName(const char*);
00072 
00074 
00076   char* DataLocation;
00077   vtkRTXMLPolyDataReaderInternals* Internal;
00079 
00080 private:
00081   vtkRTXMLPolyDataReader(const vtkRTXMLPolyDataReader&);  // Not implemented.
00082   void operator=(const vtkRTXMLPolyDataReader&);  // Not implemented.
00083 };
00084 
00085 #endif