[Paraview] Empty "Cell/Point Array Status" window

Xunlei Wu xunlei at renci.org
Sat Apr 16 06:02:34 EDT 2011


Hi Karl and All,
One more thing, since my reader class is built as a plugin, the class type is "VTK_EXPORT" not "VTK_IO_EXPORT" as in vtkAVSucdReader class. Does this matter?
Best,
x

-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Xunlei Wu
Sent: Saturday, April 16, 2011 5:50 AM
To: kkoenig11 at web.de
Cc: paraview at paraview.org
Subject: Re: [Paraview] Empty Object Properties - Custom Reader Plugin

Hi Karl,

Thanks a lot for the tip. I followed vtkAVSucdReader.h/cxx and hoped to solve my issue. I understood vtkAVSucdReader:: CellDataArraySelection and vtkAVSucdReader ::PointDataArraySelection are responsible filling the "Cell/Point Array Status" window. However, I am not sure how these two arrays are interfaced. I have added these two arrays and corresponding access functions (Get/Set) in my reader class. I still do not see anything within "Cell/Point Array Status" window. 
FYI, my reader is a plugin class. Is AVSucdReader a plugin class as well? Thanks a lot for the help.

Best,
xunlei

-----Original Message-----
From: kkoenig11 at web.de [mailto:kkoenig11 at web.de]
Sent: Friday, March 25, 2011 7:11 AM
To: Xunlei Wu
Cc: paraview at paraview.org
Subject: Re: [Paraview] Empty Object Properties - Custom Reader Plugin

By the way, don't let yourself confuse by the fact that that particular reader currently does only fill "Cell/Point Array Status" for binary AVS UCD files (vtkdata-5.6.1.zip:Data/cellsnd.bin.inp), but not for ASCII AVS UCD files (vtkdata-5.6.1.zip:Data/cellsnd.ascii.inp)

Karl


Karl König wrote, On 25.03.2011 12:04:
> Xunlei,
> 
> Have a look at VTK/IO/vtkAVSucdReader.{h,cxx}, that's a simple 
> self-contained reader. You'll need to integrate everything (headers, 
> methods, code blocks etc.) mentioning "DataArraySelection" into your reader.
> 
> Karl
> 
> 
> Xunlei Wu wrote, On 25.03.2011 11:59:
>> Hi Karl,
>> Exactly as you said!
>> Where should I look? Thanks a lot.
>>
>> Best,
>> xunlei
>>
>> -----Original Message-----
>> From: kkoenig11 at web.de [mailto:kkoenig11 at web.de]
>> Sent: Friday, March 25, 2011 6:54 AM
>> To: Xunlei Wu
>> Cc: paraview at paraview.org
>> Subject: Re: [Paraview] Empty Object Properties - Custom Reader 
>> Plugin
>>
>> Xunlei,
>>
>> There is no auto-generation of GUI elements for the properties tab of a reader. Your reader has to populate the tab.
>> Are you looking for something like "Cell/Point Array Status" to pop up in the properties tab? Like the VTU-XML Reader and many others offer?
>> Such that you can select the variables to actually import or ignore while loading, respectively?
>>
>> Karl
>>
>>
>> Xunlei Wu wrote, On 25.03.2011 11:32:
>>> Hello,
>>>
>>> I still cannot figure out why I had such problem. Would you please help?
>>> Thanks a lot.
>>>
>>> Best,
>>>
>>> xunlei
>>>
>>>  
>>>
>>> *From:*Xunlei Wu
>>> *Sent:* Monday, March 21, 2011 8:22 PM
>>> *To:* paraview at paraview.org
>>> *Subject:* Empty Object Properties - Custom Reader Plugin
>>>
>>>  
>>>
>>> Hello,
>>>
>>> I am writing a reader plugin for ParaView following examples in
>>>
>>> http://www.kitware.com/products/html/WritingAParaViewReaderPlug-in.h
>>> tm
>>> l
>>>
>>> However, after the file metadata is read by ::RequestInformation(), 
>>> there are no scalar attributes shown in "Object Inspector" -> 
>>> "Properties" illustrated in Empty_Object_Inspector_Properties.PNG.
>>> After click "Apply", ::RequestData() gets all the attribute data and 
>>> displays the information in "Object Inspector" -> "Information" -> "Data Arrays"
>>> table as shown in Updated_Object_Inspector_Information.PNG. After 
>>> the data is read, "Properties" page is still empty. Would you please 
>>> suggest what I should do? Any functions that I should implement or 
>>> call in my reader class? Thanks a lot.
>>>
>>>  
>>>
>>> Best,
>>>
>>> xunlei
>>>
>>>
>>>
>>> _______________________________________________
>>> 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

_______________________________________________
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


More information about the ParaView mailing list