[Paraview] image data extents are not displayed in Information tab
Dominik Szczerba
dominik at itis.ethz.ch
Tue Oct 28 10:44:17 EDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for the code, but I am doing all you are doing... (except my
reader is static (no time), maybe this makes a difference?)
Are you using PV 3.4 or CVS?
Dominik
Michael Jackson wrote:
> At the top of RequestData() method how are you getting the output
> object? Maybe that has something to do with it?
>
> You can take a look at my code
> <http://echo1.bluequartz.net/viewvc/CTMD/PVPhaseField/src/Readers/vtkH5PhaseFieldReader.cpp?view=markup>
> and compare with your own.
>
> _________________________________________________________
> Mike Jackson mike.jackson at bluequartz.net
> www.bluequartz.net
>
> On Oct 28, 2008, at 9:48 AM, Dominik Szczerba wrote:
>
> Thanks Mike,
>
> Yeah, no doubt I am doing something wrong, but am clueless. At the end
> of RequestData
>
> this->GetOutput()->GetExtent(extent);
>
> gets a valid extent. But PV does not see it (and screws up some filters).
>
> Dominik
>
> Michael Jackson wrote:
>>>>
>>>> _________________________________________________________
>>>> Mike Jackson mike.jackson at bluequartz.net
>>>> BlueQuartz Software www.bluequartz.net
>>>> Principal Software Engineer Dayton, Ohio
>>>>
>>>>
>>>>
>>>> On Oct 28, 2008, at 8:17 AM, Dominik Szczerba wrote:
>>>>
>>>> As I do. Please, can you check if you see both extents and bounds in
>>>> Information?
>>>>
>>>> Dominik
>>>>
>>>> Michael Jackson wrote:
>>>>>>> vtkImageAlgorithm
>>>>>>>
>>>>>>> _________________________________________________________
>>>>>>> Mike Jackson mike.jackson at bluequartz.net
>>>>>>> BlueQuartz Software www.bluequartz.net
>>>>>>> Principal Software Engineer Dayton, Ohio
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Oct 28, 2008, at 5:31 AM, Dominik Szczerba wrote:
>>>>>>>
>>>>>>> One more question: where do you derive your reader from (maybe the
>>>>>>> parent class sets something for you)?
>>>>>>>
>>>>>>> Dominik
>>>>>>>
>>>>>>> Dominik Szczerba wrote:
>>>>>>>>>> Thanks Mike, but this is exactly what I have.
>>>>>>>>>> Are you sure you see both bounds and extents in Information?
>>>>>>>>>>
>>>>>>>>>> Dominik
>>>>>>>>>>
>>>>>>>>>> Michael Jackson wrote:
>>>>>>>>>>> Not sure if it is any help but here is a code snippet from my own
>>>>>>>>>>> HDF5
>>>>>>>>>>> image reader code:
>>>>>>>>>>
>>>>>>>>>>> outInfo->Set( vtkDataObject::ORIGIN(), DataOrigin, 3 );
>>>>>>>>>>> outInfo->Set( vtkDataObject::SPACING(), DataSpacing, 3 );
>>>>>>>>>>> this->DataExtent[0] = this->DataExtent[2] =
>>>>>>>>>>> this->DataExtent[4] = 0;
>>>>>>>>>>> this->DataExtent[1] = xDim-1;
>>>>>>>>>>> this->DataExtent[3] = yDim-1;
>>>>>>>>>>> this->DataExtent[5] = zDim-1;
>>>>>>>>>>> outInfo->Set( vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),
>>>>>>>>>>> DataExtent, 6 );
>>>>>>>>>>> outInfo->Set( vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),
>>>>>>>>>>> DataExtent, 6 );
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________
>>>>>>>>>>> Mike Jackson mike.jackson at bluequartz.net
>>>>>>>>>>> BlueQuartz Software www.bluequartz.net
>>>>>>>>>>> Principal Software Engineer Dayton, Ohio
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> On Oct 27, 2008, at 7:55 PM, Dominik Szczerba wrote:
>>>>>>>>>>
>>>>>>>>>>> What else then WHOLE_EXTENT, UPDATE_EXTENT and SetExtent and do I
>>>>>>>>>>> have
>>>>>>>>>>> to fill in RequestInformation/RequestData of my plugin reader
>>>>>>>>>>> (derived
>>>>>>>>>>> from vtkImageAlgorithm) in order for Paraview to see the
>>>>>>>>>>> dataset's
>>>>>>>>>>> extents? Only bounds are displayed in the Information tab,
>>>>>>>>>>> while for
>>>>>>>>>>> native file formats there is also extents. But when I save the
>>>>>>>>>>> file in
>>>>>>>>>>> legacy format for a test the extent is written correctly, so
>>>>>>>>>>> it WAS
>>>>>>>>>>> known to Paraview, only not displayed properly. What is wrong?
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> ParaView mailing list
>>>>>>>>>> ParaView at paraview.org
>>>>>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>>>>>
>>>>>>>
>>>>
>
- --
Dominik Szczerba, Ph.D.
Computational Physics Group
Foundation for Research
on Information Technologies in Society
http://www.itis.ethz.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFJByVB/EBMh9bUuzIRAvzSAJ4nsuqI0fxVPmLBqFsm2GMIpSvLCQCfahQS
oxfN8IUWjYEQHIwwi9KgZEE=
=puIo
-----END PGP SIGNATURE-----
More information about the ParaView
mailing list