[vtkusers] vtkAbstractTransform writer/reader?

David Gobbi dgobbi at irus.rri.on.ca
Thu Apr 12 02:34:35 EDT 2001


On 11 Apr 2001, Alexandre Guimond wrote:

> Hi.  The doc for vtkGeneralTransform::GetConcatenatedTransform() (CVS
> version) mentions "This method is provided to make it possible to
> decompose a transformation into its constituents, for example to save
> a transformation to a file."  Has anyone done this, ie write a class
> to save transforms to a file (or serveral files), whatever type of
> transform it is?  That would make my life so much easier.

I use a pair of python classes to read & write transforms according to
a simple file format developed at the Montreal Neurological Institute.
They could be used as the basis for a pair of C++ classes.

My intention was to eventually add a Serialize(ostream) method or
something similar to each of the transform classes which would
write out the transforms in XML, but I was going to wait until
someone had hammered out the details of how vtkObject serialization
was going to be implemented.

 - David





More information about the vtkusers mailing list