VTK  9.0.3
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
27 #include "vtkXMLPolyDataReader.h"
28 
29 class vtkRTXMLPolyDataReaderInternals;
30 
31 class VTKIOXML_EXPORT vtkRTXMLPolyDataReader : public vtkXMLPolyDataReader
32 {
33 public:
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(const char* dataLocation);
41  vtkGetStringMacro(DataLocation);
42 
47  virtual void UpdateToNextFile();
48 
53  virtual int NewDataAvailable();
54 
63  virtual void ResetReader();
64 
69  const char* GetNextFileName();
70 
71 protected:
74 
76 
79  vtkSetStringMacro(DataLocation);
81 
83  int IsProcessed(const char*);
84  char* GetDataFileFullPathName(const char*);
85 
87 
91  char* DataLocation;
92  vtkRTXMLPolyDataReaderInternals* Internal;
94 
95 private:
97  void operator=(const vtkRTXMLPolyDataReader&) = delete;
98 };
99 
100 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Read RealTime VTK XML PolyData files.
int IsProcessed(const char *)
~vtkRTXMLPolyDataReader() override
const char * GetNextFileName()
Return the name of the next available data file assume NewDataAvailable() return VTK_OK.
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(const char *dataLocation)
vtkRTXMLPolyDataReaderInternals * Internal
virtual void UpdateToNextFile()
Reader will read in the next available data file The filename is this->NextFileName maintained intern...
Read VTK XML PolyData files.