VTK
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;
36  static vtkRTXMLPolyDataReader* New();
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:
73  ~vtkRTXMLPolyDataReader() override;
74 
76 
79  vtkSetStringMacro(DataLocation);
81 
82  void InitializeToCurrentDir();
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
vtkRTXMLPolyDataReaderInternals * Internal
the DataLocation should be set and ResetReader() should be called after SetDataLocation ...
char * DataLocation
the DataLocation should be set and ResetReader() should be called after SetDataLocation ...
Read VTK XML PolyData files.
static vtkXMLPolyDataReader * New()
Read RealTime VTK XML PolyData files.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.