Section: Visualization Toolkit IO Classes
To create an instance of class vtkRTXMLPolyDataReader, simply invoke its constructor as follows
obj = vtkRTXMLPolyDataReader
obj
is an instance of the vtkRTXMLPolyDataReader class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkRTXMLPolyDataReader = obj.NewInstance ()
vtkRTXMLPolyDataReader = obj.SafeDownCast (vtkObject o)
obj.SetLocation (string dataLocation)
string = obj.GetDataLocation ()
obj.UpdateToNextFile ()
- Reader will read in the next available data file
The filename is this->NextFileName maintained internally
int = obj.NewDataAvailable ()
- check if there is new data file available in the
given DataLocation
obj.ResetReader ()
- ResetReader check the data directory specified in
this->DataLocation, and reset the Internal data structure
specifically: this->Internal->ProcessedFileList
for monitoring the arriving new data files
if SetDataLocation(char*) is set by the user,
this ResetReader() should also be invoked.
string = obj.GetNextFileName ()
- Return the name of the next available data file
assume NewDataAvailable() return VTK_OK