VTK  9.7.20261008
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
10
11#ifndef vtkRTXMLPolyDataReader_h
12#define vtkRTXMLPolyDataReader_h
13
14#include "vtkIOXMLModule.h" // For export macro
15#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
17
18VTK_ABI_NAMESPACE_BEGIN
19class vtkRTXMLPolyDataReaderInternals;
20
22{
23public:
25 void PrintSelf(ostream& os, vtkIndent indent) override;
27
28 // This sets the DataLocation and also
29 // Reset the reader by calling ResetReader()
30 void SetLocation(VTK_FILEPATH const char* dataLocation);
32
37 virtual void UpdateToNextFile();
38
43 virtual int NewDataAvailable();
44
53 virtual void ResetReader();
54
60
61protected:
64
66
69 vtkSetStringMacro(DataLocation);
71
73 int IsProcessed(const char*);
74 char* GetDataFileFullPathName(const char*);
75
77
82 vtkRTXMLPolyDataReaderInternals* Internal;
84
85private:
87 void operator=(const vtkRTXMLPolyDataReader&) = delete;
88};
89
90VTK_ABI_NAMESPACE_END
91#endif
a simple class to control print indentation
Definition vtkIndent.h:108
int IsProcessed(const char *)
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(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...
#define VTK_FILEPATH
#define VTK_MARSHALAUTO