[vtkusers] Fwd: [Paraview] Bug in Slice representation or in my XML ?
Jérôme
jerome.velut at gmail.com
Mon Apr 20 09:12:41 EDT 2009
Dear list,
I forward this thread that occured on ParaView mailing list. It initiated
because of an error message found in ParaView. I was trying to expose some
VTK filter to ParaView, with just an XML description of the filters. The
rendering process found no data to render! This is because some data array
(PointData) are not named.
I was able to do my stuff by plugging a vtkImageMagnitude to the
source/filter output. Or by derivating the class to a vtkPVImage...Filter
and overloading a function and so on...
AFAIK, this is the case with:
- vtkImageGaussianSource
- vtkImageReslice and inherited classes
Would it be possible to give a default name to all data array involved in a
DataSet? Do I have to post on vtk-developers?
Thanks for all
Jerome
---------- Forwarded message ----------
From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Date: 2009/4/20
Subject: Re: [Paraview] Bug in Slice representation or in my XML ?
To: Jérôme <jerome.velut at gmail.com>
Cc: "Jean M. Favre" <jfavre at cscs.ch>, ParaView <paraview at paraview.org>
IMHO, VTK has to be more strict to ensure that all data arrays are
named, maybe even assign some default unique names to the data arrays.
Some API on vtkAlgorithm breaks if arrays are not named.
Utkarsh
On Mon, Apr 20, 2009 at 5:29 AM, Jérôme <jerome.velut at gmail.com> wrote:
> Hi Jean,
>
> - I was aware of the missing scalars->SetName("blabla") instruction. I
think
> I have to post it on the VTK mailing list: I find it terrible to have to
> derived a VTK class like vtkImageGaussianSource to a
> vtkPVImageGaussianSource, to give a CMakeList with cxx code, for the only
> purpose to overload one function and to add one line. I do that by now!!
> I proposed the ImageMagnitude hack in order to produce only an XML that
will
> expose the VTK classes without compilation.
>
> Question to developers would be: Has ParaView to be less restrictived
about
> existenz of Point/Cell Data name, or has VTK to be more strict about
setting
> a name, in all cases, to data?
>
> - Today I am working on a Windows XP computer. And yes, you are right, I
> cannot reproduce the bug. My Fedora looks problematic then. I will wait
> until may, for Fedora 11. New system, new libs, maybe new behaviours?
>
> Many thanks for your time!
>
> Jerome
>
> 2009/4/20 Jean M. Favre <jfavre at cscs.ch>
>>
>> Jérôme wrote:
>> > Dear list,
>> > Please find attached an XML that will expose vtkImageGaussianSource and
>> > vtkImageMagnitude to ParaView
>> > First of all, vtkImageGaussianSource behaves like it does not produce
>> > any
>> > data :
>> > - Add a Gaussian Source to the pipeline,
>> > - Apply
>> > - Then go to the information panel of the object inspector : No data
>> > arrays !!
>>
>> This behavior can be traced back to the fact that the vtkDataArray
>> allocated in VTK/Filtering/vtkImageData.cxx does not name the array.
>> ParaView needs all data fields to be named. Adding this single line of
>> code makes wit work.
>>
>>
>> scalars->SetName("scalars");
>>
>>
>> For the rest of your comments concerning slicing and information, I
>> cannot reproduce any of the symptoms you mentioned. Slice representation
>> works fine and the Extents are not touched AFAIK.
>>
>> Jean --
>> Swiss National Supercomputing Center
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090420/b92e9893/attachment.htm>
More information about the vtkusers
mailing list