VTK  9.3.20240419
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;
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 
59 
60 protected:
63 
65 
68  vtkSetStringMacro(DataLocation);
70 
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
a simple class to control print indentation
Definition: vtkIndent.h:108
Read RealTime VTK XML PolyData files.
VTK_FILEPATH const char * GetNextFileName()
Return the name of the next available data file assume NewDataAvailable() return VTK_OK.
int IsProcessed(const char *)
vtkGetFilePathMacro(DataLocation)
~vtkRTXMLPolyDataReader() override
char * GetDataFileFullPathName(const char *)
static vtkRTXMLPolyDataReader * New()
virtual int NewDataAvailable()
check if there is new data file available in the given DataLocation
virtual void ResetReader()
ResetReader check the data directory specified in this->DataLocation, and reset the Internal data str...
char * DataLocation
the DataLocation should be set and ResetReader() should be called after SetDataLocation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLocation(VTK_FILEPATH const char *dataLocation)
vtkRTXMLPolyDataReaderInternals * Internal
the DataLocation should be set and ResetReader() should be called after SetDataLocation
virtual void UpdateToNextFile()
Reader will read in the next available data file The filename is this->NextFileName maintained intern...
Read VTK XML PolyData files.
#define VTK_FILEPATH