[Paraview] removing domain constraints

Stephane PLOIX stephane.ploix at edf.fr
Tue Jan 13 12:54:22 EST 2009


Hi,

I am developing a helper class that do some prefiltering to remove 
constraints on the filters (need of point data instead of cell data for 
instance).
It provides warnings when an interpolation is performed, but should allow 
to have all the filters available at any time.
The pb I am now facing is that it seems that the constraints specified in 
the server xml are never removed in the inherited proxies. A typical usage 
is :

vtkInterpolatedContour is a class that can take point or cell centered 
data and pre-interpolate it internally to point-centered data if needed.

<ServerManagerConfiguration>
  <ProxyGroup name="filters">
    <SourceProxy
                 name="InterpolatedContour"
                 base_proxygroup="filters"
                 base_proxyname="Contour"
                 class="vtkInterpolatedContour"
                 label="InterpolatedContour">

      <InputProperty
         name="Input"
         command="SetInputConnection">
        <ProxyGroupDomain name="groups">
          <Group name="sources"/>
          <Group name="filters"/>
        </ProxyGroupDomain>
        <DataTypeDomain name="input_type">
          <DataType value="vtkDataSet"/>
        </DataTypeDomain>
<!-- I DISABLE THE ATTRIBUTE_TYPE HERE, BUT PARAVIEW STILL REQUIRES POINT 
CENTERED DATA -->
        <!--<InputArrayDomain name="input_array" attribute_type="point"
                          number_of_components="1"/>-->
      </InputProperty>

    </SourceProxy>
  </ProxyGroup>
</ServerManagerConfiguration>

I can copy paste and modify the whole xml from the contour filter, but it 
seems to me that would be nicer to be able to use the base_proxy 
mechanism, any idea?

Best regards,
Stephane

-----------------------------------------------------------------------------
Stéphane Ploix
EDF R&D 
1 avenue du Général de Gaulle
F-92141 Clamart Cedex
Phone : +33 (0)1 47 65 51 10
Email : stephane.ploix 'at' edf.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090113/4c3d3487/attachment.htm>


More information about the ParaView mailing list