ParaView by default puts a entry widget for ArrayRangeDomain. This is done to handle the case where the range may change over time, but the user wants to explicitly put a value that's beyond the current timestep's range. The Threshold panel is a custom panel. Look at Qt/Components/pqThresholdPanel.cxx to see how you can implement the same for your filter.
Utkarsh On Tue, Jan 5, 2010 at 4:30 AM, Fred Fred <[email protected]> wrote: > The problem is I can put any value in the lineedit widget, ie without any > constraint. > I would like to obtain the same interface as in Threshold, ie a slider + a > lineedit with constraints such that only a value in the range of the scalar > array may be entered. > >> Date: Mon, 4 Jan 2010 10:50:27 -0500 >> Subject: Re: [Paraview] How to bound values of a variable as a function of >> a given array? >> From: [email protected] >> To: [email protected] >> CC: [email protected] >> >> What;s the problem that you are seeing? >> >> Utkarsh >> >> On Mon, Jan 4, 2010 at 10:41 AM, Fred Fred <[email protected]> wrote: >> > I would like that the possible values of variable TimeStep be chosen in >> > the >> > range of the selected scalar array, for instance thanks to a slider. >> > >> > >> >> Date: Mon, 4 Jan 2010 10:37:05 -0500 >> >> Subject: Re: [Paraview] How to bound values of a variable as a function >> >> of >> >> a given array? >> >> From: [email protected] >> >> To: [email protected] >> >> CC: [email protected] >> >> >> >> Can you be a bit more elaborate on what you are trying to achieve here >> >> please? >> >> Thanks. >> >> >> >> Utkarsh >> >> >> >> On Mon, Jan 4, 2010 at 10:26 AM, Fred Fred <[email protected]> wrote: >> >> > I would like May anybody tell me what is wrong in my XML code? >> >> > >> >> > <StringVectorProperty >> >> > name="SelectInputScalars" >> >> > command="SetInputArrayToProcess" >> >> > number_of_elements="5" >> >> > element_types="0 0 0 0 2" >> >> > animateable="0" >> >> > label="Scalars"> >> >> > <ArrayListDomain name="array_list" attribute_type="Scalars"> >> >> > <RequiredProperties> >> >> > <Property name="Input" function="Input"/> >> >> > </RequiredProperties> >> >> > </ArrayListDomain> >> >> > </StringVectorProperty> >> >> > >> >> > <DoubleVectorProperty >> >> > name="TimeStep" >> >> > label="Time Step" >> >> > command="SetTimeStep" >> >> > number_of_elements="1" >> >> > default_values="0"> >> >> > <ArrayRangeDomain name="scalar_range"> >> >> > <RequiredProperties> >> >> > <Property name="Input" function="Input"/> >> >> > <Property name="SelectInputScalars" >> >> > function="ArraySelection"/> >> >> > </RequiredProperties> >> >> > </ArrayRangeDomain> >> >> > </DoubleVectorProperty> >> >> > >> >> > >> >> > ________________________________ >> >> > Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici ! >> >> > _______________________________________________ >> >> > 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 >> >> > >> >> > >> > >> > ________________________________ >> > Vous êtes étudiants ? Bénéficiez de Windows 7 à 35? ! Découvrez notre >> > offre >> > ! > > ________________________________ > Avec Internet Explorer, surfez en toute discrétion sur internet Cliquez ici > ! _______________________________________________ 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
