[Paraview] Populate drop down list from filter data

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Apr 17 00:07:07 EDT 2015


Here's a potential approach:

<StringVectorProperty name="ChooseOne"
                      command="SetChosenOne">
  <StringListDomain name="list">
    <RequiredProperties>
      <Property function="StringList"
                name="AvailableOptionsInfo" />
    </RequiredProperties>
  </StringListDomain>
</StringVectorProperty>
<StringVectorProperty name="AvailableOptionsInfo"
                      information_only="1"
                      command="GetAvailableOptions"
                      si_class="vtkSIDataArrayProperty">
</StringVectorProperty>


With the following method prototypes:

  void SetChosenOne(const char*);
  vtkStringArray* GetAvailableOptions();


More information about the ParaView mailing list