[Paraview-developers] plugin filter icon/menu
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Jan 8 09:31:26 EST 2015
Good catch. I don't exactly know what the PipelineIcon hint is.
Looking at the code I don't think it was intended to be functional.
I'll track down the developer and figure that part out. I am adding
support to add a new attribute "icon" to the <ShowInMenu > element.
e.g.
<Hints>
<ShowInMenu icon="...." />
</Hints>
Utkarsh
On Thu, Jan 8, 2015 at 7:52 AM, Felipe Bordeu
<felipe.bordeu at ec-nantes.fr> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm porting my plugin into version 4.3 and I'm unable to set the icons
> for my filters.
> I tried : (http://www.paraview.org/Wiki/ParaView/Plugin_HowTo(
>
> ...
> <Hints>
> <ShowInMenu category="PXDMF" />
> <PipelineIcon name=":/PXDMFIcons/AnnotateFieldData.png" />
> </Hints>
> </SourceProxy>
>
> ...
> but does not work. Searching for the keyword "PipelineIcon" in the
> Paraview sources gives no results.
>
> also : the ShowInMenu shows the filter in a new submenu but the is no
> new toolbar as in the 4.2.
>
> in the 4.2 version this was my GUI xml
>
> <ParaViewFilters>
> <Category name="PXDMF" menu_label="&PXDMF" show_in_toolbar="1">
> <!-- adds a new category and then adds our filter to it -->
> <Filter name="AnnotateFieldData"
> icon=":/PXDMFIcons/AnnotateFieldData.png" />
> </Category>
> </ParaViewFilters>
>
> any ideas.
>
> Thanks to all. And thanks for this new version.
> Felipe
>
> - --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> - -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> - -------------------------------------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQEcBAEBAgAGBQJUrn2UAAoJEE/fMfNgU9/DSGkH/RAeBk09VIE0GkBczr4B9SA7
> leoSKUGBslzDj2sc4yMC163g/vzxK2k8OII4wn+swIdd1eluNTYjpqq0pT0EVDeX
> 7eqoiGfLnsOaQ322n0msOevXc4ZMJKMp7p9xR8sYsG+qiXxcfNXk7mrGv1u+l0oC
> Pmpzj3WXm3NOlIZ03SNRbjWH79Py+gjzEinM3cjrGQTM0T224dhReahKefSlKiz0
> ozc1JEMFDC6Dkq+KpMRmGwfnnqgLVnct/oe1Bgke3/zT7SW3zHiXEApfZ9bRiO3p
> i5njtFIyIrsBs5CIYuv86jTuWVA6p/5B88NBS+OVHLH+uLqrqUt7aQ44XwUIpNw=
> =KTUP
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
More information about the Paraview-developers
mailing list