[Paraview] Custom filter: exposed properties of a Calculator filter
Cory Quammen
cory.quammen at kitware.com
Wed Sep 23 12:58:02 EDT 2015
Jean-Michel,
In that case, you might be interested in this blog post that describes how
to expose named properties that are inputs to a Programmable Filter [1].
HTH,
Cory
[1] http://www.kitware.com/blog/home/post/534
On Wed, Sep 23, 2015 at 12:08 PM, Jean-Michel Lucas <jm.lucas at gantha.com>
wrote:
> Cory,
>
>
>
> Thank you for your answer, you understood my problem perfectly. I noticed
> the problem is somewhat similar when trying to incorporate a Python
> calculator to a custom filter and exposing the property name (in this case,
> the name remains 'Expression' no matter what you specify when creating the
> filter).
>
>
>
> The reason I asked this question is that I need to design a filter that
> asks some input from the user before performing some calculations. The way
> I used to do this was by creating a calculator with the name of the
> quantity the user has to give.
>
>
>
> However, I'm afraid I'm not sufficiently skilled in C++ to delve into
> custom widgets. I'll try to find a workaround.
>
>
>
> Thanks again,
>
> Jean-Michel
>
>
>
> *De :* Cory Quammen [mailto:cory.quammen at kitware.com]
> *Envoyé :* mercredi 23 septembre 2015 15:11
>
> *À :* Jean-Michel Lucas
> *Cc :* ParaView
> *Objet :* Re: [Paraview] Custom filter: exposed properties of a
> Calculator filter
>
>
>
> Jean-Michel,
>
>
>
> Thank you for clarifying, I think I understand now. So you see the
> calculator buttons and text field for entering the expression? And you want
> the name of the property to appear in the label?
>
>
>
> For this property, a custom widget is used in the Properties panel that
> does not display the property name. Hence, the property name does not show
> up. I see that in 3.14 the Function is displayed with a simple text field -
> you don't get the calculator buttons.
>
>
>
> We'd have to change the custom widget to display the property name. This
> would be a relatively simple change that I could walk you through if you'd
> like to contribute to the ParaView source code.
>
>
>
> Let me know if you are interested.
>
>
>
> Thanks,
>
> Cory
>
>
>
> On Wed, Sep 23, 2015 at 2:43 AM, Jean-Michel Lucas <jm.lucas at gantha.com>
> wrote:
>
> Hi Cory,
>
>
>
> Thank you for your answer.
>
>
>
> I did remember to click the + sign, and in fact the property shows fine
> when playing the filter later on. Only the property name, which you can
> choose when designing the filter, doesn't appear in ParaView 4.3. If I open
> the same custom filter in ParaView 3.12, the name does show up.
>
>
>
> Best,
>
> Jean-Michel
>
>
>
>
>
> *De :* Cory Quammen [mailto:cory.quammen at kitware.com]
> *Envoyé :* mercredi 23 septembre 2015 05:00
> *À :* Jean-Michel Lucas
> *Cc :* ParaView
> *Objet :* Re: [Paraview] Custom filter: exposed properties of a
> Calculator filter
>
>
>
> Jean-Michel,
>
>
>
> I am not able to reproduce what you are reporting with 4.3.1 or 4.4.
>
>
>
> Did you remember to click the + sign when adding the property? The first
> time I tried I forgot to do that, and the Function property was not exposed
> in my custom filter. When I did add the property, it was exposed.
>
>
>
> HTH,
>
> Cory
>
>
>
> On Tue, Sep 22, 2015 at 5:07 AM, Jean-Michel Lucas <jm.lucas at gantha.com>
> wrote:
>
> Hi,
>
>
>
> I am trying to create a Custom Filter in ParaView 4.3.1.
>
>
>
> I am having trouble with the exposed properties of a Calculator filter:
> when defining the properties for my custom filter, I am selecting the
> "Function" property and setting the property name for this Calculator.
> However, when using the custom filter, this property name does not appear
> in the Properties panel of the Object Inspector. Is this a known bug or is
> there something I'm missing ?
>
>
>
> Also, is it possible to hide the calculator buttons and only leave the
> blank field ? This was the default behavior in (at least) ParaView 3.12.0.
>
>
>
> Thank you for your help.
>
>
>
> Jean-Michel
>
>
> _______________________________________________
> 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.
>
>
>
>
>
> --
>
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150923/bb621e5e/attachment.html>
More information about the ParaView
mailing list