<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:#595959;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='color:#595959'>As part of a source
plugin I am developing, I would like to provide gui input parameters. Many of
the sources in paraview already provide this, such as the Sphere source, which
allows properties like radius to be adjusted manually.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'>I have included the IntegerVectorProperty
xml fragment (see below), which I believe should enable such an option and have
provided a corresponding public listener method (also below) on my
vtkRebinningSource, which is derived from vtkPolyDataAlgorithm. When I select
the plugin from the sources menu in paraview, I get the error message:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>ERROR: In
..\..\Paraview_source\Paraview-3.8.0-RC2\Servers\Commmon\vtkProcessModule.cxx,
line 1066<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>.... <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>: Object type:
vtkRebinningSource, could not find requested method:
&quot;SetNumberOfXBins&quot; or the method was called with incorrect arguments.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>while processing<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Message 0 = Invoke<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>...<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'>Presumably, I have
not registered the event listening method correctly. While this is simple to do
in raw vtk, I haven&#8217;t found any description of how to do this in the
paraview documentation. Can anyone provide me with guidance of how I might do
this for my source plugin?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'>Thanks in advance,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'>Owen<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#595959'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&lt;ServerManagerConfiguration&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp; &lt;!-- Begin
RebinningSource --&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp; &lt;ProxyGroup
name=&quot;sources&quot;&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;&nbsp;&nbsp;
&lt;SourceProxy name=&quot;RebinningSource&quot;
class=&quot;vtkRebinningSource&quot;&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IntegerVectorProperty
name=&quot;NumberOfXBins&quot; command=&quot;SetNumberOfXBins&quot;
number_of_elements=&quot;10&quot; default_values=&quot;1&quot;&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/IntegerVectorProperty&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;&nbsp;&nbsp;
&lt;/SourceProxy&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp;
&lt;/ProxyGroup&gt; <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&nbsp; &lt;!-- End
RebinningSource --&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'>&lt;/ServerManagerConfiguration&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>public:</span><span lang=EN-US style='color:black'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:blue'>virtual</span><span style='font-size:
10.0pt;font-family:"Courier New"'> <span style='color:blue'>void</span> SetNuberOfXBins(vtkObject
* caller, <span style='color:blue'>unsigned</span> <span style='color:blue'>long</span>
eventId, <span style='color:blue'>void</span>* callData);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:black'><o:p>&nbsp;</o:p></span></p>

</div>


<br><p>-- 
<BR>Scanned by iCritical.
</p>
<br></body>

</html>