VTK  9.1.0
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=========================================================================*/
23#ifndef vtkRTXMLPolyDataReader_h
24#define vtkRTXMLPolyDataReader_h
25
26#include "vtkIOXMLModule.h" // For export macro
28
29class vtkRTXMLPolyDataReaderInternals;
30
31class VTKIOXML_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
37
38 // This sets the DataLocation and also
39 // Reset the reader by calling ResetReader()
40 void SetLocation(VTK_FILEPATH const char* dataLocation);
41 vtkGetFilePathMacro(DataLocation);
42
47 virtual void UpdateToNextFile();
48
53 virtual int NewDataAvailable();
54
63 virtual void ResetReader();
64
70
71protected:
74
76
79 vtkSetStringMacro(DataLocation);
81
83 int IsProcessed(const char*);
84 char* GetDataFileFullPathName(const char*);
85
87
92 vtkRTXMLPolyDataReaderInternals* Internal;
94
95private:
97 void operator=(const vtkRTXMLPolyDataReader&) = delete;
98};
99
100#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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