Section: Visualization Toolkit IO Classes
To create an instance of class vtkWriter, simply invoke its constructor as follows
obj = vtkWriter
obj
is an instance of the vtkWriter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkWriter = obj.NewInstance ()
vtkWriter = obj.SafeDownCast (vtkObject o)
int = obj.Write ()
- Write data to output. Method executes subclasses WriteData() method, as
well as StartMethod() and EndMethod() methods.
Returns 1 on success and 0 on failure.
obj.EncodeString (string resname, string name, bool doublePercent)
- Encode the string so that the reader will not have problems.
The resulting string is up to three times the size of the input
string. doublePercent indicates whether to output a double '%' before
escaped characters so the string may be used as a printf format string.
obj.SetInput (vtkDataObject input)
- Set/get the input to this writer.
obj.SetInput (int index, vtkDataObject input)
- Set/get the input to this writer.