<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>So, I tried this and wonder if it is right:<br><br>For the return value, I declared an attribute <strong>double OpThreshold</strong> and the family of Set Get : <strong>SetMacro(OpThreshold,double) GetMarco(OpThreshold,double)</strong><br>then in the function, I used <strong>this-&gt;OpThreshold = optimalThreshold </strong>with optimalThreshold is the value we calculate.<br><br>In the .xml file<br><strong>&lt;DoubleVectorProperty name = "OpThreshold" command="GetOpThreshold" infomation_only = "1"&gt;<br>&lt;/DoubleVectorProperty&gt;<br><br></strong>I followed the tutorial in the IEEE vis09 conference, in stead of command Set, we have command Get&nbsp; <strong><br></strong>

        
                
                
        
        <span style="font-size: 14.000000pt; font-family: 'Courier'">&lt;DoubleVectorProperty name="Translate" command="SetTranslate"

        
</span><strong>&nbsp;</strong><span style="font-size: 14.000000pt; font-family: 'Courier'">number_of_elements="3" default_values="0 0 0"

        
</span><strong>&gt;<br></strong><br>So, please tell me if I'm right or wrong, if wrong, then what do I have to change.<br>Thank you very much.<strong><br><br></strong><br><br>----- Original Message -----<br>From: Sebastien Jourdain &lt;sebastien.jourdain@kitware.com&gt;<br>To: Tuan Ha Tran &lt;tuan-ha.tran@insa-lyon.fr&gt;<br>Cc: paraview-developers@paraview.org, paraview@paraview.org<br>Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST)<br>Subject: Re: [Paraview] Setter and getter for ParaView Plugin<br><br>You just have to use the attribute<br><br>information_only="1"<br><br>For more details, you can look at the one that are defined inside<br>ParaView itself in<br>SRC/ParaViewCode/ServerImplementation/Resources/*.xml<br><br>Seb<br><br>On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr> wrote:<br>&gt; Hi everyone,<br>&gt; &nbsp;&nbsp; I want to ask you a question about setter and getter of ParaView Plugin.<br>&gt; &nbsp;&nbsp; As input, we can use the xml file to link them, using<br>&gt;<intvectorproperty>, <stringvectorproperty>, etc.<br>&gt; &nbsp;&nbsp; So, for the outputs, how can we write the xml file?<br>&gt; &nbsp;&nbsp; For exemple, I have a function with "double" as return value. And I want<br>&gt; to show this value in ParaView, as well as extract it in Python Shell and<br>&gt; JavaScript Terminal (ParaViewWeb).<br>&gt; &nbsp;&nbsp; Thank you very much in advance.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; http://www.kitware.com/opensource/opensource.html<br>&gt;<br>&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; http://paraview.org/Wiki/ParaView<br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt;<br><br></stringvectorproperty></intvectorproperty></tuan-ha.tran@insa-lyon.fr></body></html>