<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2>Stefan,</FONT></SPAN></DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff size=2>These 
items are not subclasses of DataObject because their intention was to be used by 
a DataObject (much like an Image uses a PixelContainer).</FONT></SPAN></DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff size=2>You 
can wrap these objects with a DataObject API using a DataObjectDecorator.&nbsp; 
DataObjectDecorator will put a DataObject API around any subclass of 
itk::Object, so that the decorated object can pass through the pipeline.&nbsp; 
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).</FONT></SPAN></DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2>Jim</FONT></SPAN></DIV>
<DIV><SPAN class=533305915-13072006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=533305915-13072006>&nbsp;</SPAN></FONT></FONT></FONT><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> 
insight-users-bounces+millerjv=crd.ge.com@itk.org 
[mailto:insight-users-bounces+millerjv=crd.ge.com@itk.org]<B>On Behalf Of 
</B>Stefan Klein<BR><B>Sent:</B> Thursday, July 13, 2006 11:45 AM<BR><B>To:</B> 
insight-users@itk.org<BR><B>Subject:</B> [Insight-users] 
dataobject<BR><BR></FONT></DIV>
<BLOCKQUOTE><FONT size=3>Hi, <BR><BR>I have a question:<BR><BR>Why do objects 
  like the MapContainer and the VectorContainer not inherit from DataObject, but 
  from Object? Is there any reason for this?<BR><BR>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).<BR><BR>Thanks in 
  advance,<BR><BR>Stefan</FONT> <BR></BLOCKQUOTE></BODY></HTML>