[Paraview] Readers and multiple arrays

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Mar 27 09:00:22 EDT 2009


Here's a snippet of the XML that makes it possible for a domain to
depend on an information property whose values are obtained from  the
server.

      <DoubleVectorProperty name="StartThetaInfo"
        command="GetStartThetaRange"
        information_only="1"
        number_of_elements="2"
        default_values="1 1024">
       <SimpleDoubleInformationHelper />
      </DoubleVectorProperty>

      <DoubleVectorProperty
         name="StartTheta"
         command="SetStartTheta"
         information_property="StartThetaInfo"
         number_of_elements="1"
         animateable="1"
         default_values="0" >
        <DoubleRangeDomain name="range" >
          <RequiredProperties>
              <Property name="StartThetaInfo" function="RangeInfo"/>
          </RequiredProperties>
        </DoubleRangeDomain>
      </DoubleVectorProperty>

The key is to merely refer to the information property as
"RequiredProperties" for the domain.

Utkarsh

On Thu, Mar 26, 2009 at 2:31 PM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
> Utkarsh,
>
> You’re the expert on server manager XML.  Can you explain how to set a range
> domain that depends on something else (like an information property)?
>
> -Ken
>
>
> On 3/23/09 9:23 AM, "Thorsten Hater" <th at tp1.rub.de> wrote:
>
> Thanks a lot, my plugin is working quite nice.
> One question remains: how do I get the GUI to
> take non-default values for Sliders for example?
> More concrete: I have got a file on disk, parsed
> its metainfo and now I want to put some of it
> in the GUI to allow subdomain selection.
> The paraview book mentions the SimpleInformationHelper
> but does neither explain how it used nor how specific
> variables are set with it, for example Slider min-max...
>
> Thorsten
>
> Moreland, Kenneth wrote:
>> In your reader class method that sets which variables to load, is it
>> calling this->Modified.  If Modified is not called, then the pipeline
>> will not know that something has changed for your reader and it will
>> not request a new read.
>>
>> -Ken
>>
>>
>> On 3/17/09 3:20 AM, "Thorsten Hater" <th at tp1.rub.de> wrote:
>>
>>     Hello again,
>>
>>     solved this problem. But encountered a new minor one,
>>     which is to dynamically reread the file if the GUI elements
>>     change, for example, if some more arrays are select.
>>     Could anybody point me where to start?
>>     I guess that there is some kind of onUpdata callback,
>>     but how is it called exactly and how is it used?
>>
>>     Best regards,
>>         Thorsten
>>
>>     Thorsten Hater wrote:
>>     > Hi,
>>     >
>>     > could anybody give me some information on the problem of
>>     > adding multiple arrays to a single output of a reader.
>>     > Managing and displaying the array names GUI-wise is not
>>     > problematic, but rather where to put the data arrays in the
>>     > RequestData member.
>>     >
>>     > Best regards,
>>     >    Thorsten
>>     > _______________________________________________
>>     > 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
>>
>>     _______________________________________________
>>     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
>>
>>
>>
>>
>>    ****      Kenneth Moreland
>>     ***      Sandia National Laboratories
>> ***********
>> *** *** ***  email: kmorel at sandia.gov
>> **  ***  **  phone: (505) 844-8919
>>     ***      web:   http://www.cs.unm.edu/~kmorel
>> <http://www.cs.unm.edu/%7Ekmorel>
>>
>
>
>
>
>
>    ****      Kenneth Moreland
>     ***      Sandia National Laboratories
> ***********
> *** *** ***  email: kmorel at sandia.gov
> **  ***  **  phone: (505) 844-8919
>     ***      web:   http://www.cs.unm.edu/~kmorel
>
>


More information about the ParaView mailing list