Hi,
One of my filters has a member that is a vtkPolyDataAlgorithm. The user has
to set it to a specific smoothing filter, eg. vtkPolyDataSmoothingFilter.
The member is called "RegularizationFilter" in my VTK class. Thus the
ServerManager XML contains the following property:
<ProxyProperty name="RegularizationFilter"
command="SetRegularizationFilter">
<ProxyListDomain name="proxy_list">
<Proxy group="filters" name="SmoothPolyDataFilter"/>
</ProxyListDomain>
</ProxyProperty>
In ParaView, I can get the filter working, with a combobox proposing the
Smooth filter and its properties in a frame below. Problem is that Smooth
has a "NumberOfIterations" property, and my filter has too! When I change
the NumberOfIterations in the smooth filter, the homonym changes as well...
How can I set both NumberOfIterations independent? Thanks for your
suggestions!
Please find attached the XML describing my filter.
Best regards,
Jerome
<!--
Copyright (c) 2010, Jérôme Velut
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT OWNER ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE COPYRIGHT OWNER BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<ServerManagerConfiguration>
<ProxyGroup name="filters">
<!-- ==================================================================== -->
<SourceProxy name="RegularizedDeformableMesh"
class="vtkRegularizedDeformableMesh"
label="Regularized Deformable Mesh">
<Documentation
long_help=""
short_help="">
</Documentation>
<InputProperty
name="InputMesh"
command="SetInputConnection">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkPolyData"/>
</DataTypeDomain>
</InputProperty>
<InputProperty
name="Image"
command="SetInputConnection"
port_index="1">
<ProxyGroupDomain name="groups">
<Group name="sources"/>
<Group name="filters"/>
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData"/>
</DataTypeDomain>
</InputProperty>
<ProxyProperty name="RegularizationFilter"
command="SetRegularizationFilter">
<ProxyListDomain name="proxy_list">
<Proxy group="filters" name="SmoothPolyDataFilter"/>
</ProxyListDomain>
</ProxyProperty>
<IntVectorProperty name="IterateFromZero"
command="SetIterateFromZero"
number_of_elements="1"
default_values="1">
<BooleanDomain name="boolean"/>
</IntVectorProperty>
<IntVectorProperty name="NumberOfIterations"
command="SetNumberOfIterations"
number_of_elements="1"
default_values="1">
<IntRangeDomain name="range" min="0"/>
</IntVectorProperty>
<DoubleVectorProperty name="ScaleFactor"
command="SetScaleFactor"
number_of_elements="1"
default_values="1">
</DoubleVectorProperty>
</SourceProxy>
<!-- End RegularizedDeformableMesh -->
</ProxyGroup>
<!-- End Filter Group -->
</ServerManagerConfiguration>
_______________________________________________
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