[Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Alex Rattner
Hello, I have been developing a feature tracking filter plug-in for paraview for a couple weeks. I am currently trying to improve the plug-in GUI, but ran into an issue. I want the plug-in to return some basic information to the user in the GUI, so I added a property to the server xml file l

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Yumin Yuan
Hi Alex, You can add the following to your xml to see if it helps. show="1" If this property does show up after adding that, it should be displayed as disabled since it is read-only. If it does not help, this could be a bug. Yumin On Fri, Jun 8, 2012 at 2:40 PM, Alex Rattner wrote: > Hello, >

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Alex Rattner
Hi Yumin, Thank you for the response. I tried this and still no luck, the property still won't appear. For reference, my new xml was Number of features in the field. I'm pretty sure that the property is actually being made and called, because I debugged paraview and found that the

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Yumin Yuan
Hi Alex, If you can debug into pqNamedWidgets::createWidgets(), and see where and why this property is being skipped, it will help to narrow down the problem, especially around this piece of logic (starting with line 892). // skip information properties if((!propertiesToShow.contains(pro

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Alex Rattner
Hi Yumin, Thank you for the suggestion. I debugged into pqNamedWidgets, and found that my property was being excluded from the propertiesToShow list, even with the show="1" setting. When I manually switched it in the debugger, the property showed up and worked correctly. The issue seems to g

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Alex Rattner
Hi all, I was eventually able to work out this display issue. The show command has to be set as a separate hint in the source proxy, like so: Number of features in the field. I hope this saves someone else the trouble. Thanks again Yumin for pointing me in the right direction.

Re: [Paraview] Trouble with "information_only" GUI property in paraview filter

2012-06-08 Thread Yumin Yuan
Nice job, Alex. I just found out that this "hints" behavior is actually documented here: http://paraview.org/Wiki/ServerManager_XML_Hints Yumin On Fri, Jun 8, 2012 at 6:15 PM, Alex Rattner wrote: > Hi all, > > I was eventually able to work out this display issue. The show command  has > to be