<div dir="ltr">Can you just use the standard box widget? Or are you planning to create a new widget in your plugin?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 3, 2015 at 10:00 AM, Andrzej Peczak <span dir="ltr"><<a href="mailto:apeczak@ara.co.uk" target="_blank">apeczak@ara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cory<br>
<br>
I had tried to place the widget in utilities.xml under <ProxyGroup name="implicit_functions"> earlier without the success. The filter sees the standard Box but not MyBox.<br>
<br>
Andrzej<br>
<br>
From: Cory Quammen [mailto:<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>]<br>
Sent: 03 December 2015 14:18<br>
To: Andrzej Peczak<br>
Cc: <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: Re: [Paraview] Paraview 4.4.0 - Plugin with a custom 3d widget<br>
<div class="HOEnZb"><div class="h5"><br>
Andrzej,<br>
<br>
I believe the ProxyGroup name for the widget should be set with<br>
<br>
<ProxyGroup name="implicit_functions"><br>
<br>
instead of <br>
<br>
<ProxyGroup name="my_extended_filters"><br>
<br>
HTH,<br>
Cory<br>
<br>
On Thu, Dec 3, 2015 at 6:42 AM, Andrzej Peczak <<a href="mailto:apeczak@ara.co.uk">apeczak@ara.co.uk</a>> wrote:<br>
Hi<br>
<br>
I am trying to customise a plugin with an implicit function widget. As an example I choose vtkPVBox class to check if I can register it under a different name. To do it I created a SM file as following, but the plugin seems not seeing the object I am registering. Can anybody explain how do I register my own widget ?<br>
<br>
Thanks<br>
<br>
Andrzej<br>
<br>
<ServerManagerConfiguration><br>
        <ProxyGroup name="filters"><br>
<br>
                <SourceProxy class="vtkTransformFilter" label="Translate"<br>
                        name="TranslateFilter"><br>
                        <InputProperty command="SetInputConnection" name="Input"<br>
                                panel_visibility="default"><br>
                                <ProxyGroupDomain name="groups"><br>
                                        <Group name="sources" /><br>
                                        <Group name="filters" /><br>
                                </ProxyGroupDomain><br>
                                <DataTypeDomain name="input_type"><br>
                                        <DataType value="vtkPointSet" /><br>
                                        <DataType value="vtkImageData" /><br>
                                        <DataType value="vtkRectilinearGrid" /><br>
                                </DataTypeDomain><br>
                        </InputProperty><br>
                        <ProxyProperty command="SetTransform" name="TranslateFilter"<br>
                                panel_visibility="default"><br>
                                <ProxyGroupDomain name="groups"><br>
                                        <Group name="transforms" /><br>
                                </ProxyGroupDomain><br>
                                <ProxyListDomain name="proxy_list"><br>
                                        <Proxy group="my_extended_filters" name="Translate3" /><br>
                                </ProxyListDomain><br>
                        </ProxyProperty><br>
                        <!-- End TransformFilter --><br>
                </SourceProxy><br>
        </ProxyGroup><br>
<br>
        <ProxyGroup name="my_extended_filters"><br>
<br>
                <SourceProxy class="vtkPVBox" name="MyBox"><br>
                        <DoubleVectorProperty command="SetBounds"<br>
                                default_values="0 1 0 1 0 1" name="Bounds" number_of_elements="6"><br>
                        </DoubleVectorProperty><br>
                        <DoubleVectorProperty animateable="1" command="SetPosition"<br>
                                default_values="0.0 0.0 0.0" name="Position" number_of_elements="3"><br>
                                <DoubleRangeDomain name="range" /><br>
                        </DoubleVectorProperty><br>
                        <DoubleVectorProperty animateable="1" command="SetRotation"<br>
                                default_values="0.0 0.0 0.0" name="Rotation" number_of_elements="3"><br>
                                <DoubleRangeDomain name="range" /><br>
                        </DoubleVectorProperty><br>
                        <DoubleVectorProperty animateable="1" command="SetScale"<br>
                                default_values="1.0 1.0 1.0" name="Scale" number_of_elements="3"><br>
                                <DoubleRangeDomain name="range" /><br>
                        </DoubleVectorProperty><br>
                        <Hints><br>
                                <!-- Hints are metadata associated with the proxy. As far as the ServerManager<br>
                                        is concerned, Hints have no significance. GUI is free to interpret the hints<br>
                                        as it chooses. Hints provide a mechanism to add some GUI pertinant information<br>
                                        to the server manager XML. --><br>
                                <PropertyGroup type="Box"><br>
                                        <Property function="Position" name="Position" /><br>
                                        <Property function="Rotation" name="Rotation" /><br>
                                        <Property function="Scale" name="Scale" /><br>
                                        <Property function="PlaceWidget" name="Bounds" /><br>
                                </PropertyGroup><br>
                        </Hints><br>
                        <!-- End of Box --><br>
                </SourceProxy><br>
<br>
<br>
        <Proxy class="vtkPVTransform" label="Translate" name="Translate3"><br>
            <DoubleVectorProperty command="SetAbsolutePosition"<br>
                default_values="0.0 0.0 0.0" information_property="PositionInfo"<br>
                label="Translate" name="Position" number_of_elements="3"><br>
                <DoubleRangeDomain name="range" /><br>
            </DoubleVectorProperty><br>
            <DoubleVectorProperty command="GetAbsolutePosition"<br>
                default_values="0.0 0.0 0.0" information_only="1" name="PositionInfo"<br>
                number_of_elements="3" /><br>
            <Hints><br>
                <PropertyGroup type="MyBox"><br>
                    <Property function="Position" name="Position" /><br>
                </PropertyGroup><br>
            </Hints><br>
        </Proxy><br>
<br>
<br>
                <!-- End my_extended_filters --><br>
        </ProxyGroup><br>
<br>
</ServerManagerConfiguration><br>
<br>
**********************************************************************<br>
Please consider the environment. Only print this email if absolutely necessary.<br>
<br>
This email contains information that is private and confidential and is intended only for the addressee.<br>
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>
Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>
system management and security reasons.<br>
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br>
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
<br>
**********************************************************************<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br>
<br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
<br>
**********************************************************************<br>
Please consider the environment. Only print this email if absolutely necessary.<br>
<br>
This email contains information that is private and confidential and is intended only for the addressee.<br>
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.<br>
Note: All email sent to or from this address may be accessed by someone other than the recipient, for<br>
system management and security reasons.<br>
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:<br>
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245<br>
<br>
**********************************************************************<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>