Oh, I see. I was about to write that we should change ShallowCopy() to copy the Information but I realized that this would have some really bad side effects. We use Information to store some pipeline meta-data and we don&#39;t want those copied. The easiest way to get around this is to store the meta-data in FieldData. FieldData arrays should always be copied.<div>
<br></div><div>-berk<br><br><div class="gmail_quote">On Wed, Jun 30, 2010 at 3:45 AM, Lord, John (UK) <span dir="ltr">&lt;<a href="mailto:John.Lord@baesystems.com">John.Lord@baesystems.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Thanks Berk,</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>I need to store the viewpoint from which the image was 
created.  Originally, I was storing this information in the &quot;Information&quot; 
member of vtkDataObject and that worked correctly.  I have now got a 
set of images calculated from different viewpoints stored in a 
vtkMultiBlockDatset.  I want to process these images using plug-in filters 
that are not composite dataset aware and then re-combine the images using the 
viewpoint information.  The problem is that the &quot;<font size="2">vtkCompositeDataPipeline::ExecuteSimpleAlgorithmForBlock&quot; method does a 
shallow copy of the output from the plug-in and the viewpoint information is 
lost.  My idea was to use a sub-class of vtkImageData and override the 
ShallowCopy method to preserve the viewpoint information. This, however, leads 
to the problem of how to render the sub-class in 
Paraview.</font></span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Any suggestions on how to resolve these problems would 
be gratefully received.</span></font></div><div class="im">
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>Regards,</span></font></div>
<div dir="ltr" align="left"><font face="Arial" color="#0000ff" size="2"><span>John</span></font></div>
<div> </div>
<div align="left"><font face="Arial" size="2">BAE Systems (Operations) 
Limited<br>Registered Office: Warwick House, PO Box 87, Farnborough Aerospace 
Centre, Farnborough, Hants, GU14 6YU, UK<br>Registered in England &amp; Wales 
No: 1996687 </font></div>
<div> </div><br>
</div><div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Berk Geveci 
[mailto:<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>] <br><b>Sent:</b> 30 June 2010 
01:59<br><b>To:</b> Lord, John (UK)<br><b>Cc:</b> 
<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br><b>Subject:</b> Re: [Paraview] Rendering a sub-class of 
vtkImageData in paraview<br></font><br></div>
<div></div>*** WARNING *** This message has originated outside your 
organisation, either from an external partner or the Global Internet. Keep this 
in mind if you answer this message. This would probably require changing the 
ParaView code in a few places. I suspect that we have things like
<div><div></div><div class="h5"><div><br></div>
<div>if (classname == &quot;vtkImageData&quot;)</div>
<div><br></div>
<div>all over the place. However, there may be a better solution. Can you 
explain what additional information you are storing in this subclass?</div>
<div><br></div>
<div>-berk<br><br>
<div class="gmail_quote">On Tue, Jun 29, 2010 at 12:15 PM, Lord, John (UK) <span dir="ltr">&lt;<a href="mailto:John.Lord@baesystems.com" target="_blank">John.Lord@baesystems.com</a>&gt;</span> 
wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
  <div>
  <div><font face="Arial" size="2"><span>Hi,</span></font></div>
  <div><font face="Arial" size="2"><span></span></font> </div>
  <div><span><font size="2"><font face="Arial">I have written a sub-class of 
  vtkImageData that holds additional information for processing the data further 
  down the pipeline.  When a filter outputs my 
  sub-class, Paraview gives the message &quot;<span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font color="#000000">Cannot show the data in the current view although the view 
  reported that it can show the data.&quot;</font></span></font></font></span></div>
  <div><span><font size="2"><font face="Arial"><span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font color="#000000"></font></span></font></font></span> </div>
  <div><span><span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font face="Arial" color="#000000" size="2">How do I tell Paraview that it should render 
  my sub-class in the same way as a vtkImageData 
  object.</font></span></span></div>
  <div><span><span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font face="Arial" color="#000000" size="2"></font></span></span> </div>
  <div><span><span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font face="Arial" color="#000000" size="2">Regards,</font></span></span></div>
  <div><span><span style="font-size:7.8pt;color:#008000;font-family:&#39;Courier&#39;"><font face="Arial" color="#000000" size="2">John</font></span></span></div>
  <div><font face="Arial" size="2"></font> </div>
  <div align="left"><font face="Arial" size="2">BAE Systems (Operations) 
  Limited<br>Registered Office: Warwick House, PO Box 87, Farnborough Aerospace 
  Centre, Farnborough, Hants, GU14 6YU, UK<br>Registered in England &amp; Wales 
  No: 1996687 </font></div>
  <div> </div><br>********************************************************************<br>This 
  email and any attachments are confidential to the intended<br>recipient and 
  may also be privileged. If you are not the intended<br>recipient please delete 
  it from your system and notify the sender.<br>You should not copy it or use it 
  for any purpose nor disclose or<br>distribute its contents to any other 
  person.<br>********************************************************************<br><br></div><br>_______________________________________________<br>Powered 
  by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source 
  projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please 
  keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>Follow this link to 
  subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br><br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>