[Paraview] DoubleVectorProperty widget

Cory Quammen cory.quammen at kitware.com
Mon Feb 1 09:38:39 EST 2016


Sure. Details on how to do that are available here:

http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Adding_Customizations_for_Properties_Panel

- Cory

On Mon, Feb 1, 2016 at 6:31 AM, Andrzej Peczak <apeczak at ara.co.uk> wrote:

> Thanks Cory, I did not realise that I can do it this way. I have another
> question regarding representation of properties.
>
> Is there a way to substitute a default property widget with my own widget
> if I was to create one, say in the plugin xml configuration file ?
>
>
>
> Andrzej
>
>
>
>
>
> *From:* Cory Quammen [mailto:cory.quammen at kitware.com]
> *Sent:* 29 January 2016 20:03
> *To:* Andrzej Peczak
> *Cc:* paraview at paraview.org
> *Subject:* Re: [Paraview] DoubleVectorProperty widget
>
>
>
> Andrzej,
>
>
>
> Once you have the property, can't you call
>
>
>
> vtkSMDoubleVectorProperty::SetNumberOfElements(0);
>
>
>
> ?
>
>
>
> Thanks,
>
> Cory
>
>
>
> On Fri, Jan 29, 2016 at 11:35 AM, Andrzej Peczak <apeczak at ara.co.uk>
> wrote:
>
> Hi
>
> I want to modify a state of the DoubleVectorProperty object or its widget
> representation. I know that I can modify its content through
> vtkSMDoubleVectorProperty object retrieved with
> pqActiveObjects::instance().activeSource()->getSourceProxy()->GetProperty(...)
> method but I cannot find a method which would allow me to clear the entire
> content of it. I figured out that an alternative way to do that would be to
> retrieve the widget representation of that property which would be
> pqScalarValueListPropertyWidget and then call setScalars() but I do not
> know where I can get the object from.
>
> Andrzej
>
>
> **********************************************************************
> 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.
>
> **********************************************************************
>
> 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
>
> **********************************************************************
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160201/b160851f/attachment.html>


More information about the ParaView mailing list