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);
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:
96  vtkRTXMLPolyDataReader(const vtkRTXMLPolyDataReader&) VTK_DELETE_FUNCTION;
97  void operator=(const vtkRTXMLPolyDataReader&) VTK_DELETE_FUNCTION;
98 };
99 
100 #endif
vtkRTXMLPolyDataReader::vtkRTXMLPolyDataReader
vtkRTXMLPolyDataReader()
vtkRTXMLPolyDataReader::GetDataFileFullPathName
char * GetDataFileFullPathName(const char *)
vtkRTXMLPolyDataReader::New
static vtkRTXMLPolyDataReader * New()
vtkRTXMLPolyDataReader::Internal
vtkRTXMLPolyDataReaderInternals * Internal
Definition: vtkRTXMLPolyDataReader.h:92
vtkRTXMLPolyDataReader::GetNextFileName
const char * GetNextFileName()
Return the name of the next available data file assume NewDataAvailable() return VTK_OK.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkRTXMLPolyDataReader::DataLocation
char * DataLocation
the DataLocation should be set and ResetReader() should be called after SetDataLocation
Definition: vtkRTXMLPolyDataReader.h:91
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkRTXMLPolyDataReader::InitializeToCurrentDir
void InitializeToCurrentDir()
vtkXMLPolyDataReader.h
vtkRTXMLPolyDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkRTXMLPolyDataReader::IsProcessed
int IsProcessed(const char *)
vtkXMLPolyDataReader
Read VTK XML PolyData files.
Definition: vtkXMLPolyDataReader.h:44
vtkRTXMLPolyDataReader::UpdateToNextFile
virtual void UpdateToNextFile()
Reader will read in the next available data file The filename is this->NextFileName maintained intern...
vtkRTXMLPolyDataReader::ResetReader
virtual void ResetReader()
ResetReader check the data directory specified in this->DataLocation, and reset the Internal data str...
vtkRTXMLPolyDataReader::SetLocation
void SetLocation(const char *dataLocation)
vtkRTXMLPolyDataReader::NewDataAvailable
virtual int NewDataAvailable()
check if there is new data file available in the given DataLocation
vtkRTXMLPolyDataReader::~vtkRTXMLPolyDataReader
~vtkRTXMLPolyDataReader()
vtkRTXMLPolyDataReader
Read RealTime VTK XML PolyData files.
Definition: vtkRTXMLPolyDataReader.h:32