<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5969" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010>Berk,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010>Tried your suggestion and stored the viewpoint
information in the FieldData. This works correctly even when the data is a
block in a MultiBlockDataset.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010>Thanks for your help,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=460403316-30062010>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 & Wales
No: 1996687 </FONT></DIV>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Berk Geveci
[mailto:berk.geveci@kitware.com] <BR><B>Sent:</B> 30 June 2010
13:55<BR><B>To:</B> Lord, John (UK)<BR><B>Cc:</B>
paraview@paraview.org<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. 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'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><<A
href="mailto:John.Lord@baesystems.com">John.Lord@baesystems.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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 "Information" 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 "<FONT
size=2>vtkCompositeDataPipeline::ExecuteSimpleAlgorithmForBlock" 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 & 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 == "vtkImageData")</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><<A href="mailto:John.Lord@baesystems.com"
target=_blank>John.Lord@baesystems.com</A>></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 "<SPAN
style="FONT-SIZE: 7.8pt; COLOR: #008000; FONT-FAMILY: 'Courier'"><FONT
color=#000000>Cannot show the data in the current view although the view
reported that it can show the
data."</FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN><FONT size=2><FONT face=Arial><SPAN
style="FONT-SIZE: 7.8pt; COLOR: #008000; FONT-FAMILY: 'Courier'"><FONT
color=#000000></FONT></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN><SPAN
style="FONT-SIZE: 7.8pt; COLOR: #008000; FONT-FAMILY: 'Courier'"><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: 'Courier'"><FONT
face=Arial color=#000000 size=2></FONT></SPAN></SPAN> </DIV>
<DIV><SPAN><SPAN
style="FONT-SIZE: 7.8pt; COLOR: #008000; FONT-FAMILY: 'Courier'"><FONT
face=Arial color=#000000 size=2>Regards,</FONT></SPAN></SPAN></DIV>
<DIV><SPAN><SPAN
style="FONT-SIZE: 7.8pt; COLOR: #008000; FONT-FAMILY: 'Courier'"><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
& 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><pre style="white-space:normal">********************************************************************<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></pre></BODY></HTML>