VTK
vtkRTXMLPolyDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRTXMLPolyDataReader.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 =========================================================================*/
22 #ifndef __vtkRTXMLPolyDataReader_h
23 #define __vtkRTXMLPolyDataReader_h
24 
25 #include "vtkXMLPolyDataReader.h"
26 
27 class vtkRTXMLPolyDataReaderInternals;
28 
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent);
34  static vtkRTXMLPolyDataReader* New();
35 
36  // This sets the DataLocation and also
37  // Reset the reader by calling ResetReader()
38  void SetLocation(const char* dataLocation);
39  vtkGetStringMacro(DataLocation);
40 
43  virtual void UpdateToNextFile();
44 
46  virtual int NewDataAvailable();
47 
53  virtual void ResetReader();
54 
57  const char* GetNextFileName();
58 
59 protected:
62 
64 
65  vtkSetStringMacro(DataLocation);
67 
68  void InitializeToCurrentDir();
69  int IsProcessed(const char*);
70  char* GetDataFileFullPathName(const char*);
71 
73 
75  char* DataLocation;
76  vtkRTXMLPolyDataReaderInternals* Internal;
78 
79 private:
80  vtkRTXMLPolyDataReader(const vtkRTXMLPolyDataReader&); // Not implemented.
81  void operator=(const vtkRTXMLPolyDataReader&); // Not implemented.
82 };
83 
84 #endif