[Paraview] Missing feature in ./Qt/Core/pqObjectBuilder.cxx

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jan 29 08:17:47 EST 2014


Mathieu,

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.

Utkarsh


On Wed, Jan 29, 2014 at 7:39 AM, <mathieu.westphal at gmail.com> wrote:

> Hello
> in pqObjectBuilder::createFilter, there is a properties parameter wich is
> suposed to allow programmer to pass properties to ther filter.
> Yet it seems in pqSMAdaptor::FILE_LIST type property are taken in account :
>   QMap<QString, QVariant>::const_iterator mapIter;
>   for (mapIter = properties.begin(); mapIter != properties.end();
> ++mapIter)
>     {
>     QString propertyName = mapIter.key();
>     QVariant propertyValue = mapIter.value();
>
>     vtkSMProperty *prop=proxy->GetProperty(propertyName.toAscii().data());
>
>     if(prop)
>       {
>         switch (pqSMAdaptor::getPropertyType(prop))
>         {
>         case pqSMAdaptor::FILE_LIST:
>           {
>             pqSMAdaptor::setFileListProperty(prop,
> propertyValue.toStringList());
>           }
>           break;
>         default:
>           break;
>         }
>       }
>     }
>
> It would be grate to be able to pass parameter directly to the filter
>
> Mathieu
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140129/62476f6f/attachment.html>


More information about the ParaView mailing list