So, I tried this and wonder if it is right:

For the return value, I declared an attribute double OpThreshold and the family 
of Set Get : SetMacro(OpThreshold,double) GetMarco(OpThreshold,double)
then in the function, I used this->OpThreshold = optimalThreshold with 
optimalThreshold is the value we calculate.

In the .xml file
<DoubleVectorProperty name = "OpThreshold" command="GetOpThreshold" 
infomation_only = "1">
</DoubleVectorProperty>

I followed the tutorial in the IEEE vis09 conference, in stead of command Set, 
we have command Get  


        
                
                
        
        <DoubleVectorProperty name="Translate" command="SetTranslate"

        
 number_of_elements="3" default_values="0 0 0"

        
>

So, please tell me if I'm right or wrong, if wrong, then what do I have to 
change.
Thank you very much.



----- Original Message -----
From: Sebastien Jourdain <[email protected]>
To: Tuan Ha Tran <[email protected]>
Cc: [email protected], [email protected]
Sent: Tue, 05 Jun 2012 21:26:37 +0200 (CEST)
Subject: Re: [Paraview] Setter and getter for ParaView Plugin

You just have to use the attribute

information_only="1"

For more details, you can look at the one that are defined inside
ParaView itself in
SRC/ParaViewCode/ServerImplementation/Resources/*.xml

Seb

On Tue, Jun 5, 2012 at 3:21 PM, Tuan Ha Tran  wrote:
> Hi everyone,
>    I want to ask you a question about setter and getter of ParaView Plugin.
>    As input, we can use the xml file to link them, using
>, , etc.
>    So, for the outputs, how can we write the xml file?
>    For exemple, I have a function with "double" as return value. And I want
> to show this value in ParaView, as well as extract it in Python Shell and
> JavaScript Terminal (ParaViewWeb).
>    Thank you very much in advance.
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to