VTK  9.3.1
vtkRTXMLPolyDataReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkRTXMLPolyDataReader_h
12 #define vtkRTXMLPolyDataReader_h
13 
14 #include "vtkIOXMLModule.h" // For export macro
15 #include "vtkXMLPolyDataReader.h"
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkRTXMLPolyDataReaderInternals;
19 
20 class VTKIOXML_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader
21 {
22 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25  static vtkRTXMLPolyDataReader* New();
26 
27  // This sets the DataLocation and also
28  // Reset the reader by calling ResetReader()
29  void SetLocation(VTK_FILEPATH const char* dataLocation);
30  vtkGetFilePathMacro(DataLocation);
31 
36  virtual void UpdateToNextFile();
37 
42  virtual int NewDataAvailable();
43 
52  virtual void ResetReader();
53 
58  VTK_FILEPATH const char* GetNextFileName();
59 
60 protected:
62  ~vtkRTXMLPolyDataReader() override;
63 
65 
68  vtkSetStringMacro(DataLocation);
70 
71  void InitializeToCurrentDir();
72  int IsProcessed(const char*);
73  char* GetDataFileFullPathName(const char*);
74 
76 
80  char* DataLocation;
81  vtkRTXMLPolyDataReaderInternals* Internal;
83 
84 private:
86  void operator=(const vtkRTXMLPolyDataReader&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
vtkRTXMLPolyDataReaderInternals * Internal
the DataLocation should be set and ResetReader() should be called after SetDataLocation ...
char * DataLocation
the DataLocation should be set and ResetReader() should be called after SetDataLocation ...
Read VTK XML PolyData files.
static vtkXMLPolyDataReader * New()
Read RealTime VTK XML PolyData files.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_FILEPATH
vtkGetFilePathMacro(FileName)
Get/Set the name of the input file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.