[Paraview] Plugin XML - property as astring
Aurélien Marsan
aurelien.marsan at ecl2009.ec-lyon.fr
Tue Jun 15 09:49:24 EDT 2010
Hello,
I've seen that
--> http://www.paraview.org/pipermail/paraview/2008-May/008179.html
No changes since it ?
Regards,
Aurélien
Le 14 juin 2010 11:51, Aurélien Marsan
<aurelien.marsan at ecl2009.ec-lyon.fr>a écrit :
> That's it !
>
> And what you purpose should work well, but I would like to do a simple
> plugin, that doesn't need to compile Paraview, and could work with the
> paraview executables.
>
> My xml file looks like this :
> <ServerManagerConfiguration>
> <ProxyGroup name="sources">
>
> <!-- server manager xml for a python script that read a v3d file.
> the auto generated panel for this exposes everything more than we
> want so
> a custom panel would be good -->
> <SourceProxy name="ReaderV3D" class="vtkPythonProgrammableFilter"
> label="ReaderV3D">
> <Documentation
> long_help=""
> short_help="">
> </Documentation>
>
> <!-- data set type -->
> <IntVectorProperty
> name="OutputDataSetType"
> command="SetOutputDataSetType"
> number_of_elements="1"
> default_values="13">
> <!-- value of 13 means MultiBlockDataSet -- Thanks Utkarsh !-->
> </IntVectorProperty>
>
> <!-- the script -->
> <StringVectorProperty
> name="Script"
> command="SetScript"
> number_of_elements="1"
> default_values="import pyturbo; 
pdo =
> self.GetOutput();
exec 'Simu = pyturbo.%s'%(NomSimulation)
data =
> pyturbo.MultiBlocFromV3D(Simu, [DebutNomMai, FinNomMai], [DebutNomAero,
> FinNomAero], NumerosBlocs);

pdo.DeepCopy(data);
">
> </StringVectorProperty>
>
> <!-- python script references a variable "NomSimulation"
> we expose this as a property allowing the user to set it -->
> <StringVectorProperty
> name="NomSimulation"
>
> command="SetParameter"
> number_of_elements="2"
> default_values_delimiter=";"
> default_values="NomSimulation;'s'">
> </StringVectorProperty>
>
> ................ etc.
>
> There isn't a simple xml command that's looks like
> StringVectorProperty/SetParameter, but returning a character, isn't it ?
>
--
Aurélien MARSAN
Doctorant Cifre Turbomeca/LMFA
aurelien.marsan at ecl2009.ec-lyon.fr
06.31.98.26.73
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100615/5c33ac48/attachment.htm>
More information about the ParaView
mailing list