<!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=942382507-30062010>Thanks Berk,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-30062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-30062010>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
class=942382507-30062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-30062010>Any suggestions on how to resolve these problems would
be gratefully received.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-30062010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-30062010>Regards,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=942382507-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
01:59<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. This would probably require changing the
ParaView code in a few places. I suspect that we have things like
<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">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></BODY></HTML>