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

mathieu.westphal at gmail.com mathieu.westphal at gmail.com
Wed Jan 29 07:39:38 EST 2014


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


More information about the ParaView mailing list