1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
Usage
vtkXMLReader uses vtkXMLDataParser to parse a VTK XML input
file. Concrete subclasses then traverse the parsed file
structure and extract data.
To create an instance of class vtkXMLReader, simply invoke
its constructor as follows
obj = vtkXMLReader
Methods
The class vtkXMLReader has several methods that can be used.
They are listed below. Note that the documentation is
translated automatically from the VTK sources, and may not
be completely intelligible. When in doubt, consult the VTK
website. In the methods listed below, obj is an instance of
the vtkXMLReader class.
* string = obj.GetClassName ()
* int = obj.IsA (string name)
* vtkXMLReader = obj.NewInstance ()
* vtkXMLReader = obj.SafeDownCast (vtkObject o)
* obj.SetFileName (string ) - Get/Set the name of the input
file.
* string = obj.GetFileName () - Get/Set the name of the
input file.
* int = obj.CanReadFile (string name) - Test whether the
file with the given name can be read by this reader.
* vtkDataSet = obj.GetOutputAsDataSet () - Get the output as
a vtkDataSet pointer.
* vtkDataSet = obj.GetOutputAsDataSet (int index) - Get the
output as a vtkDataSet pointer.
* vtkDataArraySelection = obj.GetPointDataArraySelection ()
- Get the data array selection tables used to configure
which data arrays are loaded by the reader.
* vtkDataArraySelection = obj.GetCellDataArraySelection () -
Get the data array selection tables used to configure
which data arrays are loaded by the reader.
* int = obj.GetNumberOfPointArrays () - Get the number of
point or cell arrays available in the input.
* int = obj.GetNumberOfCellArrays () - Get the number of
point or cell arrays available in the input.
* string = obj.GetPointArrayName (int index) - Get the name
of the point or cell array with the given index in the
input.
* string = obj.GetCellArrayName (int index) - Get the name
of the point or cell array with the given index in the
input.
* int = obj.GetPointArrayStatus (string name) - Get/Set
whether the point or cell array with the given name is to
be read.
* int = obj.GetCellArrayStatus (string name) - Get/Set
whether the point or cell array with the given name is to
be read.
* obj.SetPointArrayStatus (string name, int status) - Get/
Set whether the point or cell array with the given name is
to be read.
* obj.SetCellArrayStatus (string name, int status) - Get/Set
whether the point or cell array with the given name is to
be read.
* obj.CopyOutputInformation (vtkInformation , int ) - Which
TimeStep to read.
* obj.SetTimeStep (int ) - Which TimeStep to read.
* int = obj.GetTimeStep () - Which TimeStep to read.
* int = obj.GetNumberOfTimeSteps ()
* int = obj. GetTimeStepRange () - Which TimeStepRange to
read
* obj.SetTimeStepRange (int , int ) - Which TimeStepRange to
read
* obj.SetTimeStepRange (int a[2]) - Which TimeStepRange to
read
* FreeMat_Documentation
* Visualization_Toolkit_IO_Classes
* Generated on Thu Jul 25 2013 17:18:34 for FreeMat by
doxygen_ 1.8.1.1
|