[Paraview] getElementProperty with arguments
Berk Geveci
berk.geveci at kitware.com
Tue Jun 3 12:38:52 EDT 2008
What is the actual use-case? Are you trying to get meta-data about something?
On Tue, Jun 3, 2008 at 11:09 AM, Paul Edwards <paul.m.edwards at gmail.com> wrote:
> In my pqObjectPanel I would like to be able to call a function with
> parameters on my vtkAlgorithm and then get the return value.
>
> I can do this without parameters, e.g.
>
> In vtkAlgorithm class I have the function:
> char* GetValue();
>
> In my xml file I have:
> <StringVectorProperty
> name="GetValue"
> command="GetValue"
> information_only="1">
> <SimpleStringInformationHelper/>
> </StringVectorProperty>
>
> And, in pqObjectPanel I have:
> QVariant v =
> pqSMAdaptor::getElementProperty(this->proxy()->GetProperty("GetValue"));
>
> So this all works but how could this be updated for a function that took a
> parameter. I have tried the following:
>
> In vtkAlgorithm class I changed the function to take an argument:
> char* GetValue(char* arg1);
>
> In my xml file I set the number of elements:
> <StringVectorProperty
> name="GetValue"
> command="GetValue"
> number_of_elements="1"
> information_only="1">
> <SimpleStringInformationHelper/>
> </StringVectorProperty>
>
> I'm not sure the XML file is correct - is it still a
> <SimpleStringInformationHelper>? And finally I do not know what to do in
> pqObjectPanel...
>
> Any help would be appreciated,
> Paul
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list