[Insight-users] dataobject

Miller, James V (GE, Research) millerjv at crd.ge.com
Thu Jul 13 12:03:43 EDT 2006


Stefan,
 
These items are not subclasses of DataObject because their intention was to be used by a DataObject (much like an Image uses a PixelContainer).
 
You can wrap these objects with a DataObject API using a DataObjectDecorator.  DataObjectDecorator will put a DataObject API around any subclass of itk::Object, so that the decorated object can pass through the pipeline.  SimpleDataObjectDecorator does the same thing for stack based objects like short, double, Vector, std::vector. AutoPointerDataObjectDecorator does the same thing for heap based objects (that are not subclasses of itk::Object).
 
Jim
 
 -----Original Message-----
From: insight-users-bounces+millerjv=crd.ge.com at itk.org [mailto:insight-users-bounces+millerjv=crd.ge.com at itk.org]On Behalf Of Stefan Klein
Sent: Thursday, July 13, 2006 11:45 AM
To: insight-users at itk.org
Subject: [Insight-users] dataobject



Hi, 

I have a question:

Why do objects like the MapContainer and the VectorContainer not inherit from DataObject, but from Object? Is there any reason for this?

If they would inherit from DataObject, it would be easier to use them as filter pipeline objects (they could serve as an output of a ProcessObject for example).

Thanks in advance,

Stefan 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060713/60e961de/attachment.html


More information about the Insight-users mailing list