<div dir="ltr"><div><div>Cory,<br><br></div>It would be great to put this on <a href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo">http://www.paraview.org/Wiki/ParaView/Plugin_HowTo</a> don't you think? :)<br><br></div>Joachim<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, Technical Expert</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div>
<br><div class="gmail_quote">2016-02-12 15:40 GMT+01:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">number_of_elements = "0" - indicates that the property will be<br>
initialized with 0 elements<br>
<br>
repeat_command = "1" - indicates the command associated with this<br>
property can be called more than once, passing in values from the<br>
IntVectorProperty with each call<br>
<br>
use_index = "1" = set the first argument in the call to the command to<br>
the index of the element in the IntVectorProperty<br>
<br>
number_of_elements_per_command = "1" - each call to the command<br>
expects only 1 element from the IntVectorProperty as an argument.<br>
<br>
All these properties are appropriate if the signature of the command is<br>
<br>
SetDisplayStructure(int index, int value);<br>
<br>
If you need to set the number of display structures in advance, you<br>
would need to define<br>
<br>
set_number_command="SetNumberOfDisplayStructures"<br>
<br>
which takes an int argument that will be the number of elements in the<br>
IntVectorProperty when called (probably divided by the number of<br>
elements per command.<br>
<br>
If you have a function that clears out the display structure list, you<br>
can define<br>
<br>
clean_command="ResetDisplayStructures"<br>
<br>
where ResetDisplayStructures() takes no arguments.<br>
<br>
Hope that helps,<br>
Cory<br>
<div><div class="h5"><br>
On Fri, Feb 12, 2016 at 8:46 AM, RIVERA ROLDAN, Jorge Orlando<br>
<<a href="mailto:Orlando.RIVERA@mtu.de">Orlando.RIVERA@mtu.de</a>> wrote:<br>
> Hello<br>
><br>
><br>
><br>
> When  writing the  Server Configuration    i have defined  an entry<br>
><br>
> Like<br>
><br>
><br>
><br>
>        <IntVectorProperty name="DisplayStructure"<br>
><br>
>           command="SetDisplayStructure"<br>
><br>
>      number_of_elements="0"<br>
><br>
>               repeat_command="1"<br>
><br>
>               number_of_elements_per_command="1"<br>
><br>
>           use_index="1"<br>
><br>
>           default_values="0"<br>
><br>
>               ><br>
><br>
>       </IntVectorProperty><br>
><br>
><br>
><br>
> Some values are   easy to understand  but   can someone please explain to me<br>
> what is the meaning of    number_of_elements=0  (I assume is a dynamic type<br>
> with any number of elements)<br>
><br>
><br>
><br>
><br>
><br>
> What about  ?<br>
><br>
> repeat_command="1"<br>
><br>
> number_of_elements_per_command="1"<br>
><br>
><br>
><br>
><br>
><br>
> many thanks in advance !!!!!!<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> Von: RIVERA ROLDAN, Jorge Orlando<br>
> Gesendet: Friday, 12. February 2016 14:46<br>
> An: <a href="mailto:paraview-developers@paraview.org">paraview-developers@paraview.org</a><br>
> Betreff: question of IntVectorPropertyin xml<br>
><br>
><br>
><br>
> Hello<br>
><br>
><br>
><br>
> When  writting the  Server Configuration    i have defined  an entry<br>
><br>
> Like<br>
><br>
><br>
><br>
>        <IntVectorProperty name="DisplayStructure"<br>
><br>
>           command="SetDisplayStructure"<br>
><br>
>      number_of_elements="0"<br>
><br>
>               repeat_command="1"<br>
><br>
>               number_of_elements_per_command="1"<br>
><br>
>           use_index="1"<br>
><br>
>           default_values="0"<br>
><br>
>               ><br>
><br>
>       </IntVectorProperty><br>
><br>
><br>
><br>
> Some values are   easy to understand  but   can someone please explain to me<br>
> what is the meaning of    number_of_elements=0  (I assume is a dynamic type<br>
> with any number of elements)<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> MTU Aero Engines AG<br>
> Vorstand/Board of Management: Reiner Winkler, Vorsitzender/CEO; Dr. Rainer<br>
> Martens, Michael Schreyoegg<br>
> Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus<br>
> Eberhardt<br>
> Sitz der Gesellschaft/Registered Office: Muenchen<br>
> Handelsregister/Commercial Register: Muenchen HRB 157206<br>
><br>
> Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder<br>
> rechtlich geschuetzte Informationen.<br>
> Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den<br>
> Absender und loeschen Sie diese<br>
> E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder<br>
> Weiterleiten ist nicht gestattet.<br>
><br>
> This e-mail and any attached documents are proprietary to MTU, confidential<br>
> or protected by law.<br>
> If you are not the intended recipient, please advise the sender and delete<br>
> this message and its attachments.<br>
> Any unauthorised storing, copying or distribution is prohibited.<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at:<br>
> <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
><br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
</blockquote></div><br></div>