<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I have written a filter that uses a
cylinder to cut the input and develop it: </font>
<br>
<br><font size=2 color=blue>class</font><font size=2> VTK_EXPORT vtkDevelopedSurface
: </font><font size=2 color=blue>public</font><font size=2> vtkPolyDataAlgorithm</font>
<br><font size=2>{</font>
<br><font size=2 color=blue>public</font><font size=2>:</font>
<br><font size=2> ...</font>
<br><font size=2> </font><font size=2 color=blue>virtual</font><font size=2>
</font><font size=2 color=blue>void</font><font size=2> SetCylinder(vtkCylinder
*Cylinder);</font>
<br><font size=2> vtkGetObjectMacro(Cylinder,vtkCylinder);</font>
<br>
<br><font size=2 color=blue>protected</font><font size=2>:</font>
<br><font size=2> ...</font>
<br><font size=2> vtkCylinder *Cylinder;</font>
<br><font size=2> </font><font size=2 color=#008000>...</font>
<br><font size=2>};</font>
<br>
<br><font size=2 face="sans-serif">And now I would like to set the values
associated with the Cylinder (Center and Radius first, then I will have
to set the transform parameters) in ParaView.</font>
<br><font size=2 face="sans-serif">Setting the Cylinder itself is ok with
the xml, but setting the values of the cylinder is a mistery for me.</font>
<br><font size=2 face="sans-serif">I wrote this xml for the server to have
a proxy to the vtkCylinder implicit function (I copied a lot from the ImplicitPlane
xml found in the utilities.xml) and use it in the vtkDevelopedSurface filter:
</font>
<br>
<br><font size=2 color=blue><</font><font size=2 color=#a11f12>ServerManagerConfiguration</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>ProxyGroup</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>implicit_functions</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Proxy</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Cylinder</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>class</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>vtkCylinder</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>InputProperty</font>
<br><font size=2 color=blue> </font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>is_internal</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>InputProperty</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>DoubleVectorProperty</font>
<br><font size=2 color=blue> </font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>command</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>SetCenter</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>number_of_elements</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>3</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>update_self</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>label</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>default_values</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>0.0
0.0 0.0</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Documentation</font><font size=2 color=blue>></font>
<br><font size=2> The center of the cylinder
in space.</font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>Documentation</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>BoundsDomain</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>range</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>mode</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>normal</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>default_mode</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>mid</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>RequiredProperties</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Property</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>function</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font><font size=2 color=blue>
/></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>RequiredProperties</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>BoundsDomain</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>DoubleVectorProperty</font><font size=2 color=blue>></font>
<br>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>DoubleVectorProperty</font>
<br><font size=2 color=blue> </font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Radius</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>command</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>SetRadius</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>update_self</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>number_of_elements</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>animateable</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>default_values</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>1.0</font><font size=2>"</font><font size=2 color=blue>
></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>BoundsDomain</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>range</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>mode</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>oriented_magnitude</font><font size=2>"</font><font size=2 color=blue>
></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>RequiredProperties</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Property</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>function</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font><font size=2 color=blue>/></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Property</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>function</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font><font size=2 color=blue>
/></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>RequiredProperties</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>BoundsDomain</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>DoubleVectorProperty</font><font size=2 color=blue>></font>
<br>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Hints</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>PropertyGroup</font><font size=2 color=blue>
</font><font size=2 color=red>type</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Cylinder</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Property</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>function</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Center</font><font size=2>"</font><font size=2 color=blue>
/></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Property</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Radius</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>function</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Radius</font><font size=2>"</font><font size=2 color=blue>
/></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>PropertyGroup</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>Hints</font><font size=2 color=blue>></font>
<br>
<br><font size=2 color=blue> <!--</font><font size=2 color=#008000>
end of Cylinder proxy </font><font size=2 color=blue>--></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>Proxy</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>ProxyGroup</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>ProxyGroup</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>filters</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>SourceProxy</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>DevelopedSurface</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>class</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>vtkDevelopedSurface</font><font size=2>"</font><font size=2 color=blue>
</font><font size=2 color=red>label</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Developed
Surface</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Documentation</font>
<br><font size=2 color=blue> </font><font size=2 color=red>long_help</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Cuts
the Data by a cylinder, and presents the result in 2D in the parametric
space (Theta, z).</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>short_help</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Cuts
the data by a cylinder and develop it.</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2>...</font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>Documentation</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>InputProperty</font>
<br><font size=2 color=blue> </font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>Input</font><font size=2>"</font>
<br><font size=2 color=blue> </font><font size=2 color=red>command</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>SetInputConnection</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>ProxyGroupDomain</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>groups</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Group</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>sources</font><font size=2>"</font><font size=2 color=blue>/></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>Group</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>filters</font><font size=2>"</font><font size=2 color=blue>/></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>ProxyGroupDomain</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>DataTypeDomain</font><font size=2 color=blue>
</font><font size=2 color=red>name</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>input_type</font><font size=2>"</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> <</font><font size=2 color=#a11f12>DataType</font><font size=2 color=blue>
</font><font size=2 color=red>value</font><font size=2 color=blue>=</font><font size=2>"</font><font size=2 color=blue>vtkDataSet</font><font size=2>"</font><font size=2 color=blue>/></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>DataTypeDomain</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>InputProperty</font><font size=2 color=blue>></font>
<br>
<br><font size=2 color=blue> <!--</font><font size=2 color=#008000>
I DON'T KNOW HOW TO EXPOSE THE PROPERTIES FROM THE CYLINDER ???</font>
<br><font size=2 color=#008000> <SubProxy></font>
<br><font size=2 color=#008000> <Proxy name="Cylinder"
proxygroup="implicit_functions" proxyname="Cylinder"></font>
<br><font size=2 color=#008000> </Proxy></font>
<br><font size=2 color=#008000> <ExposedProperties></font>
<br><font size=2 color=#008000> <Property
name="Center" /></font>
<br><font size=2 color=#008000> <Property
name="Radius" /></font>
<br><font size=2 color=#008000> </ExposedProperties></font>
<br><font size=2 color=#008000> </SubProxy></font>
<br><font size=2 color=#008000> </font><font size=2 color=blue>--></font>
<br>
<br><font size=2 color=blue> <!--</font><font size=2 color=#008000>
End </font><font size=2 color=blue>DevelopedSurface</font><font size=2 color=#008000>
Filter </font><font size=2 color=blue>--></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>SourceProxy</font><font size=2 color=blue>></font>
<br><font size=2 color=blue> </</font><font size=2 color=#a11f12>ProxyGroup</font><font size=2 color=blue>></font>
<br><font size=2 color=blue></</font><font size=2 color=#a11f12>ServerManagerConfiguration</font><font size=2 color=blue>></font>
<br>
<br><font size=2 face="sans-serif">The pb is that I can't find a way to
expose the Properties of the Cylinder. I tried to set the cylinder as a
sub proxy (as commented above), but there is an error during plugin load.</font>
<br>
<br><font size=2 face="sans-serif">I couldn't find example of this in the
xml file, is it supported? </font>
<br><font size=2 face="sans-serif">If yes, could you give me some hint?</font>
<br>
<br><font size=2 face="sans-serif">Thanks for any help!</font>
<br><font size=2 face="sans-serif">Stephane</font>
<br>