[Paraview] Domain for the MinMax Widget

Kent Eschenberg eschenbe at psc.edu
Wed Jun 28 15:01:47 EDT 2006


ParaView 2.4.3 on Linux works fine with my new external module until I 
select the module from the filter menu. This produces

   There was a VTK Error in file:
   ....../GUI/Client/vtkPVMinMax.cxx (398)
   vtkPVMinMax (0xd9f0000): Required domain (range)
   could not be found.

The piece of the server XML for this new module seems to provide the 
required domain:

      <DoubleVectorProperty
         name="DensityScale"
         command="SetDensityScale"
         number_of_elements="2"
         default_values="0.0 1.0"
      >
         <ArrayRangeDomain name="scalar_range">
            <Property name="Input" function="Input"/>
            <Property name="SelectInputScalars" function="ArraySelection"/>
         </ArrayRangeDomain>
      </DoubleVectorProperty>

This is right out of "The Guide" (2006) on p.277. In vtkPVMinMax.cxx, a 
little above line 398, it seems to be retrieving the domain with the line

   dom = prop->GetDomain("range");

That looks like it will ONLY work if the domain is named "range". Indeed, 
the debugger tells me that "dom" is zero which leads to the error message. 
When the name of the domain is changed in the XML from 'scalar_range" to 
"range" the error went away.

Is this a bug or a typo or did I miss something?

Thanks!

Kent
Pittsburgh Supercomputing Center



More information about the ParaView mailing list