[Paraview] Setter and getter for ParaView Plugin
Tuan Ha Tran
tuan-ha.tran at insa-lyon.fr
Wed Jun 6 03:03:02 EDT 2012
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 <sebastien.jourdain at kitware.com>
To: Tuan Ha Tran <tuan-ha.tran at insa-lyon.fr>
Cc: paraview-developers at paraview.org, paraview at paraview.org
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120606/33ed0d35/attachment-0001.htm>
More information about the ParaView
mailing list