I have a plugin that implements a property widget, the plugin is an implementation of the vtkPOpenFOAMReader source.
In a portion of the xml file I have:
<StringVectorProperty name="FileName"
command="SetFileName"
animateable="0"
number_of_elements="1">
<FileListDomain name="files"/>
<Documentation>This property specifies the file name for the
reader.</Documentation>
</StringVectorProperty>
<IntVectorProperty name="pvOptAirfoil"
number_of_elements="1"
default_values="0"
panel_widget="pvOptAirfoil">
<BooleanDomain name="bool"/>
</IntVectorProperty>
Where pvOptAirfoil is the property widget I am creating. Is it possible to expose the value of the filename to the code that handles the qt based property widget? Or obtain the value from the proxy somehow?
In case you wrap your plugin in xml file, in RequestData() and RequestInformation() functions, which are the parts of your plugin, you have an access to FileName variable just by typing: FileName
e.g. print('FileName:', FileName)
(using last string, in ParaView’s Output Messages window you will see the value of FileName variable).
The file I am trying to access the FileName variable in is an instance of pqPropertyWidget. I know the reader source code has access to FileName from RequestInformation, but does the pqPropertyWidget have access as well? If so do you have an example?