<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->OpThreshold = optimalThreshold </strong>with optimalThreshold is the value we calculate.<br><br>In the .xml file<br><strong><DoubleVectorProperty name = "OpThreshold" command="GetOpThreshold" infomation_only = "1"><br></DoubleVectorProperty><br><br></strong>I followed the tutorial in the IEEE vis09 conference, in stead of command Set, we have command Get <strong><br></strong>
        
                
                
        
        <span style="font-size: 14.000000pt; font-family: 'Courier'"><DoubleVectorProperty name="Translate" command="SetTranslate"
        
</span><strong> </strong><span style="font-size: 14.000000pt; font-family: 'Courier'">number_of_elements="3" default_values="0 0 0"
        
</span><strong>><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 <sebastien.jourdain@kitware.com><br>To: Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr><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>> Hi everyone,<br>> I want to ask you a question about setter and getter of ParaView Plugin.<br>> As input, we can use the xml file to link them, using<br>><intvectorproperty>, <stringvectorproperty>, etc.<br>> So, for the outputs, how can we write the xml file?<br>> For exemple, I have a function with "double" as return value. And I want<br>> to show this value in ParaView, as well as extract it in Python Shell and<br>> JavaScript Terminal (ParaViewWeb).<br>> Thank you very much in advance.<br>><br>><br>><br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the ParaView Wiki at:<br>> http://paraview.org/Wiki/ParaView<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.paraview.org/mailman/listinfo/paraview<br>><br><br></stringvectorproperty></intvectorproperty></tuan-ha.tran@insa-lyon.fr></body></html>