Re: [Paraview] ProxyProperty and homonyms
You are right! I thought that the command field was guilty (they are the homonyms), but they were not. I simply changed the property name in my new filter, so that I don't have to rewrite XML for existing proxies. Thanks a lot David! Jerome 2010/4/13 David E DeMarle dave.dema...@kitware.com In vtkSMProxyProperty::ReadXMLAttributes() (and it's parent classes), I do not see any attribute similar to Exposed or Shared in the XML parser. You might be able to work around it by making new proxies for SmoothPolyDataFilter, and then changing the name of the property in your version. hth, David E DeMarle Kitware, Inc. RD Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Tue, Apr 13, 2010 at 3:43 AM, Jérôme jerome.ve...@gmail.com wrote: I found this thread, really interesting: http://www.paraview.org/pipermail/paraview/2008-December/010414.html In my case, do I have to use SubProxy and play with ExposedProperties, ShareProperties and Except rather than propxyProperty? Or maybe there as similar mechanism (Exposed, except,...) in ProxyProperty? Best regards, Jerome 2010/4/11 Jérôme jerome.ve...@gmail.com 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 ___ 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
Re: [Paraview] ProxyProperty and homonyms
I found this thread, really interesting: http://www.paraview.org/pipermail/paraview/2008-December/010414.html In my case, do I have to use SubProxy and play with ExposedProperties, ShareProperties and Except rather than propxyProperty? Or maybe there as similar mechanism (Exposed, except,...) in ProxyProperty? Best regards, Jerome 2010/4/11 Jérôme jerome.ve...@gmail.com 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 ___ 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
Re: [Paraview] ProxyProperty and homonyms
In vtkSMProxyProperty::ReadXMLAttributes() (and it's parent classes), I do not see any attribute similar to Exposed or Shared in the XML parser. You might be able to work around it by making new proxies for SmoothPolyDataFilter, and then changing the name of the property in your version. hth, David E DeMarle Kitware, Inc. RD Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 On Tue, Apr 13, 2010 at 3:43 AM, Jérôme jerome.ve...@gmail.com wrote: I found this thread, really interesting: http://www.paraview.org/pipermail/paraview/2008-December/010414.html In my case, do I have to use SubProxy and play with ExposedProperties, ShareProperties and Except rather than propxyProperty? Or maybe there as similar mechanism (Exposed, except,...) in ProxyProperty? Best regards, Jerome 2010/4/11 Jérôme jerome.ve...@gmail.com 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 ___ 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
[Paraview] ProxyProperty and homonyms
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: