[Paraview] Custom panel widget

Andrzej Peczak apeczak at ara.co.uk
Fri May 27 11:58:18 EDT 2016


Yes, this is what I want Utkarsh. 

The filter does not necessary has to output the distances on the output port (which I presumably would do by assigning a field array to the output geometry)  but I definitely would like them to display and modify in the panel widget to affect the execution logic of the filter.

Andrzej

-----Original Message-----
From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com] 
Sent: 27 May 2016 13:51
To: Andrzej Peczak
Cc: ParaView
Subject: Re: [Paraview] Custom panel widget

Andrzej,

Just to make sure I understand:

vtkCpCutter calculates slices aka contours on surface and also outputs an array of  "max-distance"s. You want the user to be able to see these values on the panel for this filter and then change them which in turn affects some execution logic in vtkCpCutter. Is that correct?
	
Utkarsh

On Thu, May 26, 2016 at 7:30 AM, Andrzej Peczak <apeczak at ara.co.uk> wrote:
> Hi Utkarsh
>
> Our use-case scenario is that we have our own filter based on vtkCpCutter (both vtkPolyData on the input and output port) . We use this filter to generate a set of slices on surface geometry. We then process the obtained contours with vtkPlotEdges. For each contour (slice) we would like to compute a scalar value, say max distance between two points in the contour and output the values to the scalar list widget. Of course we also would like to modify the distances and send it back to the filters. These values will be used to update the output of the filter.
>
> Andrzej
>
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: 23 May 2016 14:58
> To: Andrzej Peczak
> Cc: ParaView
> Subject: Re: [Paraview] Custom panel widget
>
>> Is it possible to create a custom widget for a filter which would allow me to retrieve the results of its computation? I would like to reproduce the functionality of the pqDoubleVectorPropertyWidget and populate it with values computed by the filter. I know how to create and register the widget but I do not know how do I send values to it from the filter. In paraview code base  I found vtkEventQtSlotConnect but I do not know if it is of any use to my problem.
>
> There are several ways of skinning this cat. Can you elaborate of what exactly is your use-case? Do you want the default values for this double-vector-property (DVP) set using some values provided by the VTK filter, but allow user to override using UI?
>
> **********************************************************************
> 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
>
> **********************************************************************

**********************************************************************
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

**********************************************************************


More information about the ParaView mailing list