<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Mathieu,</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">There isn't much difference between setting the properties in that function call or you doing the same after that call. The method in pqObjectBUilder is only meant to pass in filenames to the readers which need to happen before any other changes on the proxy.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Utkarsh</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jan 29, 2014 at 7:39 AM,  <span dir="ltr"><<a href="mailto:mathieu.westphal@gmail.com" target="_blank">mathieu.westphal@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
in pqObjectBuilder::createFilter, there is a properties parameter wich is suposed to allow programmer to pass properties to ther filter.<br>
Yet it seems in pqSMAdaptor::FILE_LIST type property are taken in account :<br>
  QMap<QString, QVariant>::const_iterator mapIter;<br>
  for (mapIter = properties.begin(); mapIter != properties.end(); ++mapIter)<br>
    {<br>
    QString propertyName = mapIter.key();<br>
    QVariant propertyValue = mapIter.value();<br>
<br>
    vtkSMProperty *prop=proxy->GetProperty(propertyName.toAscii().data());<br>
<br>
    if(prop)<br>
      {<br>
        switch (pqSMAdaptor::getPropertyType(prop))<br>
        {<br>
        case pqSMAdaptor::FILE_LIST:<br>
          {<br>
            pqSMAdaptor::setFileListProperty(prop, propertyValue.toStringList());<br>
          }<br>
          break;<br>
        default:<br>
          break;<br>
        }<br>
      }<br>
    }<br>
<br>
It would be grate to be able to pass parameter directly to the filter<br>
<br>
Mathieu<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div>