[Paraview] Fwd: Fwd: Updating Properties Panel

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed May 24 20:43:44 EDT 2017


Kevin,

I don't think Properties Panel is best suited for what you want to do.
Properties Panel is intended for a specific purpose: setting
parameters on a vtkObject subclass. When the proxy for such a
VTKObject is first created, ParaView has mechanism to get information
from server side and set default values for properties (that's what
the example I shared demonstrates). After that point, the Properties
panel doesn't automatically change values i.e. if "Current Object" is
changed, ParaView won't pass that to your vtkClass until Apply is hit.
And even after that, ParaView won't ask your vtkClass to get new
values for other properties line Scene ID etc. All the "dynamic'
components us see on the Panel are developed using information locally
available to the UI via domains, data information etc. They don't go
the VTKObject.

You have think in terms of what are attributes on the algorithm that
control it's execution and what's information shown to the user.
Attributes/parameters go on the Properties panel. Things that are
showing information about it's current status are generally relegated
to an "inspector" panel e.g. multiblock inspector, data information
panel etc. Now you can create a dummy property, tell paraview to
create a custom widget for it and then make that custom widget behave
like an inspector -- if you want to get creative, that is.

Utkarsh





On Wed, May 24, 2017 at 2:10 PM, Dean, Kevin
<kevin.dean at decisionsciencescorp.com> wrote:
>
> ---------- Forwarded message ----------
> From: Dean, Kevin <kevin.dean at decisionsciencescorp.com>
> Date: Wed, May 24, 2017 at 10:59 AM
> Subject: Re: [Paraview] Fwd: Updating Properties Panel
> To: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>
>
> Ok, Some Information will probably stay the same, such as the Scene
> Identification, Object Index, etc.
>
> However, I have the plugin set up to perform a vtkExtractBlock when
> selecting the object in the MB dataset I want to adjust. (These are truth
> coordinates for SVMs and Convolutional Neural Nets) So if I am to adjust the
> position of the object within the SceneID, I would like for those new
> coordinates to be dispalyed in the Properties Panel.
>
> But most of the properties will probably be information only.
>
> Kevin
>
> On Wed, May 24, 2017 at 8:09 AM, Utkarsh Ayachit
> <utkarsh.ayachit at kitware.com> wrote:
>>
>> Kevin,
>>
>> Before we discuss how this can be done (or can't be done), let's try
>> to figure out what we want here.
>>
>> Is the user ever expected to change "Scene ID", "Object Index" etc.,
>> the parameters that you are expecting to change their value when the
>> "Current Object" is changed, or are they just for information purposes
>> only?
>>
>> Utkarsh
>>
>> On Tue, May 23, 2017 at 1:48 PM, Dean, Kevin
>> <kevin.dean at decisionsciencescorp.com> wrote:
>> >
>> > ---------- Forwarded message ----------
>> > From: Dean, Kevin <kevin.dean at decisionsciencescorp.com>
>> > Date: Mon, May 22, 2017 at 12:37 PM
>> > Subject: Re: Updating Properties Panel
>> > To: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>> >
>> >
>> > So I have one more question. I have added a dropdown box in order to
>> > switch
>> > between objects in my MB DataSet. Is it the same kind of Idea where I
>> > need
>> > to Update the metadata in order for the values of the block information
>> > to
>> > change in the panel again? Here are pictures of how it is currently.
>> > (Also,
>> > when I print out the "current" values to the command line, they are
>> > correct
>> > (they just aren't correct in the properties panel).
>> >
>> > Thanks,
>> >
>> > Kevin
>> >
>> > P.S. - you can see that Current Object Differs, but the other
>> > information
>> > remains the same)
>> >
>> > On Thu, May 18, 2017 at 10:59 AM, Dean, Kevin
>> > <kevin.dean at decisionsciencescorp.com> wrote:
>> >>
>> >> Thanks Utkarsh, I really appreciate it! If I have any questions I'll
>> >> get
>> >> back to you. Thanks again.
>> >>
>> >> Kevin
>> >>
>> >> On Thursday, May 18, 2017, Utkarsh Ayachit
>> >> <utkarsh.ayachit at kitware.com>
>> >> wrote:
>> >>>
>> >>> Kevin,
>> >>>
>> >>> Here's a new example for filling up properties with default values
>> >>> read
>> >>> from file meta-data.
>> >>>
>> >>> https://gitlab.kitware.com/paraview/paraview/merge_requests/1655
>> >>>
>> >>> Hope that gives you enough pointers to make progress.
>> >>>
>> >>> Utkarsh
>> >>>
>> >>> On Wed, May 17, 2017 at 9:39 AM, Utkarsh Ayachit
>> >>> <utkarsh.ayachit at kitware.com> wrote:
>> >>>>
>> >>>> Kevin,
>> >>>>
>> >>>> Are you asking how to add a way for your reader to allow the the user
>> >>>> to
>> >>>> interactively place a (x,y,z) location? If so, look at "Point Source"
>> >>>> [1].
>> >>>> The "Center" property, together with the <PropertyGroup/> XML snippet
>> >>>> should
>> >>>> add the interactive widget.
>> >>>>
>> >>>> Utkarsh
>> >>>>
>> >>>> [1]
>> >>>>
>> >>>> https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/sources.xml#L1113-1153
>> >>>>
>> >>>> On Tue, May 16, 2017 at 5:53 PM, Dean, Kevin
>> >>>> <kevin.dean at decisionsciencescorp.com> wrote:
>> >>>>>
>> >>>>> Hey Guys,
>> >>>>>
>> >>>>> I was wondering if there's an example for me to look at for updating
>> >>>>> values in the fields of the properties panel. I am writing a Plugin
>> >>>>> that has
>> >>>>> the option of reading in values from a CSV, but I would like to have
>> >>>>> the
>> >>>>> values update in the properties panel... similar to how if you use a
>> >>>>> probe
>> >>>>> location filter, it adjusts (x, y, z) interactivley. Thanks for the
>> >>>>> help.
>> >>>>>
>> >>>>> Kevin
>> >>>>>
>> >>>>> This email and its contents are confidential. If you are not the
>> >>>>> intended recipient, please do not disclose or use the information
>> >>>>> within
>> >>>>> this email or its attachments. If you have received this email in
>> >>>>> error,
>> >>>>> please report the error to the sender by return email and delete
>> >>>>> this
>> >>>>> communication from your records.
>> >>>>> _______________________________________________
>> >>>>> 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
>> >>>>>
>> >>>>
>> >>>
>> >
>> >
>> >
>> > This email and its contents are confidential. If you are not the
>> > intended
>> > recipient, please do not disclose or use the information within this
>> > email
>> > or its attachments. If you have received this email in error, please
>> > report
>> > the error to the sender by return email and delete this communication
>> > from
>> > your records.
>> >
>> > _______________________________________________
>> > 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
>> >
>
>
>
>
> This email and its contents are confidential. If you are not the intended
> recipient, please do not disclose or use the information within this email
> or its attachments. If you have received this email in error, please report
> the error to the sender by return email and delete this communication from
> your records.
>
> _______________________________________________
> 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
>


More information about the ParaView mailing list