VTK  9.3.20240425
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
16
17VTK_ABI_NAMESPACE_BEGIN
18class vtkRTXMLPolyDataReaderInternals;
19
20class VTKIOXML_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader
21{
22public:
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
60protected:
63
65
68 vtkSetStringMacro(DataLocation);
70
72 int IsProcessed(const char*);
73 char* GetDataFileFullPathName(const char*);
74
76
81 vtkRTXMLPolyDataReaderInternals* Internal;
83
84private:
86 void operator=(const vtkRTXMLPolyDataReader&) = delete;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Read RealTime VTK XML PolyData files.
int IsProcessed(const char *)
VTK_FILEPATH const char * GetNextFileName()
Return the name of the next available data file assume NewDataAvailable() return VTK_OK.
vtkGetFilePathMacro(DataLocation)
~vtkRTXMLPolyDataReader() override
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
char * GetDataFileFullPathName(const char *)
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