[Paraview-developers] Developing interactive ParaView reader

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri May 31 08:26:46 EDT 2013


Michael

> 1) Change the visible options in the properties panel depending on information in the file (e.g. only show checkbox if a certain data array was found)
> 2) Change the usable options depending on other options the user has chosen (e.g. only if he chooses to load additional data, let him use the data array selector, otherwise don't show it/grey it out)

Both of these can be achieved by recently added components called
pqPropertyWidgetDecorator
(http://paraview.org/Wiki/ParaView/Properties_Panel#pqPropertyWidgetDecorator_.28base-class:_QObject.29).

> 3) Populate options with information from the file (e.g. data array names to select, or a drop down list with existing hierarchy levels etc.)

Other readers already do this e.g. Xdmf reader, Exodus reader. You
basically need to define the XML with appropriate properties and then
expose the API on  the readers.

Utkarsh


More information about the Paraview-developers mailing list