<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello all,<br>
<br>
I got some advances with this interface but I still need some help.
:-/<br>
<br>
I noticed the <a
href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_Customizations_for_Properties_Panel">Adding
Customizations for Properties Panel</a> section in the HowTo and I
decided to use the example from ParaView source
(Examples/Plugins/PropertyWidgets) as a base. I created the
interface using qt-creator and made it available to ParaView as the
property widget for a dummy plugin (see images attached). My
questions now are:<br>
<ol>
<li>How can I access the values set from on this widget in my
filter class (which is a subclass of vtkPolyDataAlgorithm, see
files attached)? When I was creating the interface using XML
files only the changes were stored in filter attributes through
Set/Get methods, and thus accessible into RequestData(), but I
don't see how to do it from the widget I created now.</li>
<li>The Apply button in the interface is does not change to
enabled state automatically when changing the options in the
widged. I tried to emit a changeFinished() signal but it didn't
enable the Apply button. How can I achieve this behavior?</li>
<li>I'm implementing the widget display logic inside the widget
class. Is that OK or should I do it using
pqPropertyWidgetDecorator? Is there any preferable way or
doesn't matter?</li>
</ol>
<p><br>
I created a minimal example of what I'm trying to do in the
MinimalPlugin.tar.gz file attached, I image you'll be able to
compile it without problems. I included also the Qt Creator .pro
file I'm using.<br>
</p>
<p>Any help will be appreciated. :)<br>
</p>
<p>Regards,</p>
<p>Ellon<br>
</p>
<br>
On 05/14/2016 01:13 AM, Ellon Paiva wrote:<br>
<blockquote cite="mid:57365F8B.4000801@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Hello all,<br>
<br>
I'm setting myself to implement filter on paraview that may
receive a considerable number of parameters. I thought about a
logical way to organize these parameters in a GUI. You will find
an attached file describing what I have in mind for that.<br>
<br>
The problem is that up to now I just made GUIs with simple
parameters defined using a XML file, mostly based on the
information I found in the <a moz-do-not-send="true"
href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_GUI_Parameters">Plugin
HowTo page</a>, and thus I don't know how to achieve the desired
behavior of this GUI in ParaView.<br>
<br>
Does anyone know how to achieve that? Any page with related
material/tutorial/documentation or a source code I could use as a
base would be very helpful.<br>
<br>
Regards,<br>
Ellon<br>
</blockquote>
<br>
</body>
</html>