Andrzej, I believe the ProxyGroup name for the widget should be set with
<ProxyGroup name="implicit_functions"> instead of <ProxyGroup name="my_extended_filters"> HTH, Cory On Thu, Dec 3, 2015 at 6:42 AM, Andrzej Peczak <[email protected]> wrote: > Hi > > 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 ? > > Thanks > > Andrzej > > <ServerManagerConfiguration> > <ProxyGroup name="filters"> > > <SourceProxy class="vtkTransformFilter" label="Translate" > name="TranslateFilter"> > <InputProperty command="SetInputConnection" > name="Input" > panel_visibility="default"> > <ProxyGroupDomain name="groups"> > <Group name="sources" /> > <Group name="filters" /> > </ProxyGroupDomain> > <DataTypeDomain name="input_type"> > <DataType value="vtkPointSet" /> > <DataType value="vtkImageData" /> > <DataType > value="vtkRectilinearGrid" /> > </DataTypeDomain> > </InputProperty> > <ProxyProperty command="SetTransform" > name="TranslateFilter" > panel_visibility="default"> > <ProxyGroupDomain name="groups"> > <Group name="transforms" /> > </ProxyGroupDomain> > <ProxyListDomain name="proxy_list"> > <Proxy group="my_extended_filters" > name="Translate3" /> > </ProxyListDomain> > </ProxyProperty> > <!-- End TransformFilter --> > </SourceProxy> > </ProxyGroup> > > <ProxyGroup name="my_extended_filters"> > > <SourceProxy class="vtkPVBox" name="MyBox"> > <DoubleVectorProperty command="SetBounds" > default_values="0 1 0 1 0 1" name="Bounds" > number_of_elements="6"> > </DoubleVectorProperty> > <DoubleVectorProperty animateable="1" > command="SetPosition" > default_values="0.0 0.0 0.0" > name="Position" number_of_elements="3"> > <DoubleRangeDomain name="range" /> > </DoubleVectorProperty> > <DoubleVectorProperty animateable="1" > command="SetRotation" > default_values="0.0 0.0 0.0" > name="Rotation" number_of_elements="3"> > <DoubleRangeDomain name="range" /> > </DoubleVectorProperty> > <DoubleVectorProperty animateable="1" > command="SetScale" > default_values="1.0 1.0 1.0" name="Scale" > number_of_elements="3"> > <DoubleRangeDomain name="range" /> > </DoubleVectorProperty> > <Hints> > <!-- Hints are metadata associated with > the proxy. As far as the ServerManager > is concerned, Hints have no > significance. GUI is free to interpret the hints > as it chooses. Hints provide a > mechanism to add some GUI pertinant information > to the server manager XML. --> > <PropertyGroup type="Box"> > <Property function="Position" > name="Position" /> > <Property function="Rotation" > name="Rotation" /> > <Property function="Scale" > name="Scale" /> > <Property function="PlaceWidget" > name="Bounds" /> > </PropertyGroup> > </Hints> > <!-- End of Box --> > </SourceProxy> > > > <Proxy class="vtkPVTransform" label="Translate" name="Translate3"> > <DoubleVectorProperty command="SetAbsolutePosition" > default_values="0.0 0.0 0.0" > information_property="PositionInfo" > label="Translate" name="Position" number_of_elements="3"> > <DoubleRangeDomain name="range" /> > </DoubleVectorProperty> > <DoubleVectorProperty command="GetAbsolutePosition" > default_values="0.0 0.0 0.0" information_only="1" > name="PositionInfo" > number_of_elements="3" /> > <Hints> > <PropertyGroup type="MyBox"> > <Property function="Position" name="Position" /> > </PropertyGroup> > </Hints> > </Proxy> > > > <!-- End my_extended_filters --> > </ProxyGroup> > > </ServerManagerConfiguration> > > ********************************************************************** > Please consider the environment. Only print this email if absolutely > necessary. > > This email contains information that is private and confidential and is > intended only for the addressee. > If you are not the intended recipient please delete it and notify us > immediately by e-mailing the sender. > Note: All email sent to or from this address may be accessed by someone > other than the recipient, for > system management and security reasons. > Aircraft Research Association Ltd. Registered in England, Registration No > 503668 Registered Office: > Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 > > ********************************************************************** > _______________________________________________ > 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 > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > -- Cory Quammen R&D Engineer Kitware, Inc.
_______________________________________________ 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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
