Re: [Paraview] Extract Point Data | Nearest Neighbor Location

2018-08-05 Thread Sebastien Jourdain
You could try sampling the unstructured grid with the polydata. But you
might run into issue if the polydata points end up outside if the
unstructured grid.
You could blow a little bit the unstructured grid by scaling it a bit...

On Sat, Aug 4, 2018 at 10:01 AM Fastl, Thomas 
wrote:

> Hey Sebastien,
>
> That's correct, the 'Extract Surface' filter applied to the
> UNSTRUCTURED_GRID (vtk file 1) results in more POINTS compared to the
> POINTS in the POLYDATA (vtk file 2). In addition, the POINTS in POLYDATA
> (vtk file 2) have some rounding error so that the location of
> 'corresponding points' doesn't match exactly.
>
> Maybe you've already suggested the right approach: Is there a way in
> ParaView to extract the nearest neighbor of all the POINTS in POLYDATA (vtk
> file 2) from the UNSTRUCTURED_GRID (vtk file 1)? I could just write a csv
> file of the POINTS in the POLYDATA (vtk file 2) if that'd makes the nearest
> neighbor approach in ParaView more simple? Thanks.
>
> Best, Thomas
>
> --
> *From:* Sebastien Jourdain 
> *Sent:* Friday, August 3, 2018 9:11:54 PM
> *To:* Fastl, Thomas
> *Cc:* paraview
> *Subject:* Re: [Paraview] Extract Point Data | Nearest Neighbor Location
>
> So you are saying that the ExtractSurface on the Unstructured grid won't
> produce the same polydata since it will be more refined than your file2? If
> that's the case, then maybe just looking for point closer could be the
> solution.
>
> On Fri, Aug 3, 2018 at 10:56 AM Fastl, Thomas 
> wrote:
>
> Hey Sebastien,
>
>
> the UNSTRUCTURED_GRID (vtk-file 1) has around 10^8 POINTS, while the
> POYDATA (vtk-file 2) has around 10^6 POINTS, i.e., the POINTS in vtk-file 2
> are a subset of the POINTS in vtk-file 1. Additionally, the POINTS in
> vtk-file 2 have some rounding error so that the location of "corresponding
> points" doesn't matches exactly and a nearest neighbor seems necessary.
>
>
> Best, Thomas
>
> --
> *From:* Sebastien Jourdain 
> *Sent:* Friday, August 3, 2018 17:20
> *To:* Fastl, Thomas
> *Cc:* paraview
> *Subject:* Re: [Paraview] Extract Point Data | Nearest Neighbor Location
>
> If they are truly the "same" why don't you forget your file2 and generate
> a polydata from the file1 as a file3?
>
> On Fri, Aug 3, 2018 at 9:41 AM Fastl, Thomas 
> wrote:
>
> Dear Community,
>
>
> I've got an UNSTRUCTURED_GRID (vtk-file 1) with POINT_DATA and want to
> extract the POINT_DATA at specific POINTS. However, the POINTS are
> defined in POLYDATA (vtk-file 2) and are slightly off by some rounding
> error. Thus, I presume the process should look similar to:
>
>
> 1) Find the nearest neighbors of all POINTS defined in vtk-file 2 in
> vtk-file 1
>
> 2) Transfer/Store the POINT_DATA of the nearest neighbors in vtk-file 1
>
>
> I've been searching the forum for hours, however, couldn't find a solution
> to that problem. I was wondering if there's a simple solution of doing this
> in Paraview? I'd really appreciate your help on this issue, thank you!
>
>
> Best, Thomas
>
> ___
> Powered by www.kitware.com
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=1tZnhbKqOJXcXbg0Tp2m8D2gjHP8MOb7HGdGUc0EgD8%3D&reserved=0>
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.paraview.org%2F&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k6yXwz%2FsmevXQOR8FGQCAscP2996kdUPrdujqiV%2Fcg0%3D&reserved=0>
> for future posts.
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k3qytN9NYE%2BVh6ZE99Kd1DUbtLIdGi3VuRqo1iQIht0%3D&reserved=0>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fparaview.org%2FWiki%2FParaView&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=diUlLjUJJAbNWnE%2FzjxJM7uaYq9brB8MBjq0160kVWA%3D&

Re: [Paraview] Extract Point Data | Nearest Neighbor Location

2018-08-03 Thread Sebastien Jourdain
So you are saying that the ExtractSurface on the Unstructured grid won't
produce the same polydata since it will be more refined than your file2? If
that's the case, then maybe just looking for point closer could be the
solution.

On Fri, Aug 3, 2018 at 10:56 AM Fastl, Thomas 
wrote:

> Hey Sebastien,
>
>
> the UNSTRUCTURED_GRID (vtk-file 1) has around 10^8 POINTS, while the
> POYDATA (vtk-file 2) has around 10^6 POINTS, i.e., the POINTS in vtk-file 2
> are a subset of the POINTS in vtk-file 1. Additionally, the POINTS in
> vtk-file 2 have some rounding error so that the location of "corresponding
> points" doesn't matches exactly and a nearest neighbor seems necessary.
>
>
> Best, Thomas
>
> --
> *From:* Sebastien Jourdain 
> *Sent:* Friday, August 3, 2018 17:20
> *To:* Fastl, Thomas
> *Cc:* paraview
> *Subject:* Re: [Paraview] Extract Point Data | Nearest Neighbor Location
>
> If they are truly the "same" why don't you forget your file2 and generate
> a polydata from the file1 as a file3?
>
> On Fri, Aug 3, 2018 at 9:41 AM Fastl, Thomas 
> wrote:
>
> Dear Community,
>
>
> I've got an UNSTRUCTURED_GRID (vtk-file 1) with POINT_DATA and want to
> extract the POINT_DATA at specific POINTS. However, the POINTS are
> defined in POLYDATA (vtk-file 2) and are slightly off by some rounding
> error. Thus, I presume the process should look similar to:
>
>
> 1) Find the nearest neighbors of all POINTS defined in vtk-file 2 in
> vtk-file 1
>
> 2) Transfer/Store the POINT_DATA of the nearest neighbors in vtk-file 1
>
>
> I've been searching the forum for hours, however, couldn't find a solution
> to that problem. I was wondering if there's a simple solution of doing this
> in Paraview? I'd really appreciate your help on this issue, thank you!
>
>
> Best, Thomas
>
> ___
> Powered by www.kitware.com
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=1tZnhbKqOJXcXbg0Tp2m8D2gjHP8MOb7HGdGUc0EgD8%3D&reserved=0>
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdiscourse.paraview.org%2F&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k6yXwz%2FsmevXQOR8FGQCAscP2996kdUPrdujqiV%2Fcg0%3D&reserved=0>
> for future posts.
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=k3qytN9NYE%2BVh6ZE99Kd1DUbtLIdGi3VuRqo1iQIht0%3D&reserved=0>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fparaview.org%2FWiki%2FParaView&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=diUlLjUJJAbNWnE%2FzjxJM7uaYq9brB8MBjq0160kVWA%3D&reserved=0>
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
> <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3DParaView&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=E0og4nleW31GkHJ0tL8nSySbRyZAqnODikkJqYSZmS8%3D&reserved=0>
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fparaview&data=01%7C01%7Cthomas.fastl%40kcl.ac.uk%7Ce5763891c0f6453319f108d5f95d16fd%7C8370cf1416f34c16b83c724071654356%7C0&sdata=R%2BrvA3fbK9R10O%2B4wYkwK8Qmgm64hcCa%2B7kd%2FukBI9I%3D&reserved=0>
>
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Extract Point Data | Nearest Neighbor Location

2018-08-03 Thread Sebastien Jourdain
If they are truly the "same" why don't you forget your file2 and generate a
polydata from the file1 as a file3?

On Fri, Aug 3, 2018 at 9:41 AM Fastl, Thomas  wrote:

> Dear Community,
>
>
> I've got an UNSTRUCTURED_GRID (vtk-file 1) with POINT_DATA and want to
> extract the POINT_DATA at specific POINTS. However, the POINTS are
> defined in POLYDATA (vtk-file 2) and are slightly off by some rounding
> error. Thus, I presume the process should look similar to:
>
>
> 1) Find the nearest neighbors of all POINTS defined in vtk-file 2 in
> vtk-file 1
>
> 2) Transfer/Store the POINT_DATA of the nearest neighbors in vtk-file 1
>
>
> I've been searching the forum for hours, however, couldn't find a solution
> to that problem. I was wondering if there's a simple solution of doing this
> in Paraview? I'd really appreciate your help on this issue, thank you!
>
>
> Best, Thomas
>
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtk renderer question

2018-06-26 Thread Sebastien Jourdain
The reason why it is not working is because you removed the container of
the renderer from the DOM.
Therefore, you will have to set its container again... Basically it is
rendering somewhere in a detached DOM element.

You can do that, or simply use CSS to hide that DOM element.

On Tue, Jun 26, 2018 at 8:15 AM Sgouros, Thomas 
wrote:

> Hi All:
>
> I have a vtk renderer in a ParaViewWeb application. I create it and then
> attach it to a container for display using the setContainer() method.
>
> this.renderers.push(VtkRenderer.newInstance({
>   client: this.model.pvwClient,
>   viewId: result,
> }) );
> this.renderers[this.renderers.length - 1].setContainer(
>   document.getElementById(container));
>
> This renders fine, and I can see the  I created and the 
> inside it that appears to be the vtkRenderer.
>
> When I render the container invisible (through the click of a user button)
> in the render function of its container, it disappears obediently, but when
> I make it visible again, the canvas inside my container is missing. Not
> zero size, just not present. I tried explicitly calling the render() method
> of the vtkRenderer object, but that doesn't seem to do anything.
>
> Here's what I'm doing:
>
> {
>   this.rendererTwoVisible = !this.rendererTwoVisible;
>   if (this.rendererTwoVisible) this.renderers[1].render(); //
> Doesn't do anything.
> }}>
>...
> { this.rendererTwoVisible ? (
>   width: '50%',
>   }}>
> 
>  view={this.renderers[1]?this.renderers[1].getViewId():""}
> />
>   style={{position: 'relative',
>  height: '80vh',
>  resize: 'both',
>  overflow: 'hidden',
>  zIndex: '10',
> }}
> />
>   
> ) : null }
>
> I feel like there is a render method I should be calling directly
> somewhere, but can't figure out what or where that should be. Any
> suggestions welcome,
>
> Thank you,
>
>  -Tom
>
>
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraviewweb, linked views, mouse handler

2018-06-21 Thread Sebastien Jourdain
We missed 5.5.2, but it will be in 5.6.x which should be out in less than 3
months.

On Thu, Jun 21, 2018 at 10:05 AM Sgouros, Thomas 
wrote:

> Forgot to ask: When do you think that will make it into the codebase?
>
> Thanks,
>
>  -Tom
>
> On Thu, Jun 21, 2018 at 12:04 PM, Sgouros, Thomas <
> thomas_sgou...@brown.edu> wrote:
>
>> Got it. I had misunderstood that message to only refer to the PVW
>> changes. I found the protocol.py file and made the change and it seems to
>> work fine now.
>>
>> Thank you,
>>
>>  -Tom
>>
>>
>> For those who are interested, it involves changing the
>>
>> /Applications/ParaView-5.5.2.app/Contents/Python/paraview/web/protocols.py
>> file like this, around line 605:
>>
>>
>> if not realViewId in self.trackingViews:
>> observerCallback = lambda *args, **kwargs:
>> self.pushRender(realViewId)
>> -startCallback = lambda *args, **kwargs:
>> self.startViewAnimation()
>> -stopCallback = lambda *args, **kwargs:
>> self.stopViewAnimation()
>> +startCallback = lambda *args, **kwargs:
>> self.startViewAnimation(realViewId)
>> +stopCallback = lambda *args, **kwargs:
>> self.stopViewAnimation(realViewId)
>> tag = self.getApplication().AddObserver('UpdateEvent',
>> observerCallback)
>> tagStart =
>> self.getApplication().AddObserver('StartInteractionEvent', startCallback)
>> tagStop =
>> self.getApplication().AddObserver('EndInteractionEvent', stopCallback)
>>
>>
>> On Thu, Jun 21, 2018 at 11:35 AM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> So ParaView 5.5.2 still don't have the correct code base, but
>>> ParaView/master works exactly as expected...
>>>
>>> If you look back at our previous email thread, I must have highlighted
>>> to you what was the change I had to do on the server side, which you can
>>> easily pick since it is just Python code with your current ParaView version.
>>>
>>> On Wed, Jun 20, 2018 at 9:11 PM Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
>>>> Hi Sebastien:
>>>>
>>>> Actually no, that doesn't change this behavior. One view moves with the
>>>> cursor when I click on it, while the other only moves when the mouse button
>>>> is lifted. This is true on your example, as well as my code, and I seem
>>>> unable to control which one is which. Are you saying your example works
>>>> differently for you?
>>>>
>>>> Thanks,
>>>>
>>>>  -Tom
>>>>
>>>> On Wed, Jun 20, 2018 at 8:53 PM, Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> Ok, thanks. I'll give that a try.
>>>>>
>>>>>  -Tom
>>>>>
>>>>> On Wed, Jun 20, 2018 at 5:44 PM, Sebastien Jourdain <
>>>>> sebastien.jourd...@kitware.com> wrote:
>>>>>
>>>>>> You need ParaView 5.5.2 or master as I said last time, I fixed some
>>>>>> stuff on the python side to properly register animation on a given view.
>>>>>> Or you may have patched your ParaView. But for sure, you need Python
>>>>>> code along with the pvw change I made.
>>>>>>
>>>>>> On Wed, Jun 20, 2018 at 1:12 PM Sgouros, Thomas <
>>>>>> thomas_sgou...@brown.edu> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Jun 20, 2018 at 10:43 AM, Sebastien Jourdain <
>>>>>>> sebastien.jourd...@kitware.com> wrote:
>>>>>>>
>>>>>>>> Hi Tom,
>>>>>>>>
>>>>>>>> - The mouse handler seems to listen only to one view...
>>>>>>>>
>>>>>>>> I though the example in
>>>>>>>> https://github.com/Kitware/paraviewweb-examples was taking care of
>>>>>>>> that. Or maybe I don't understand what you mean here.
>>>>>>>>
>>>>>>>
>>>>>>> I'm not really sure if it is or it isn't. It may be an illusion
>>>>>>> created by the other problem, but I don't know how to tell for sure 
>>>>>>> which
>>>>>

Re: [Paraview] paraviewweb, linked views, mouse handler

2018-06-21 Thread Sebastien Jourdain
So ParaView 5.5.2 still don't have the correct code base, but
ParaView/master works exactly as expected...

If you look back at our previous email thread, I must have highlighted  to
you what was the change I had to do on the server side, which you can
easily pick since it is just Python code with your current ParaView version.

On Wed, Jun 20, 2018 at 9:11 PM Sgouros, Thomas 
wrote:

> Hi Sebastien:
>
> Actually no, that doesn't change this behavior. One view moves with the
> cursor when I click on it, while the other only moves when the mouse button
> is lifted. This is true on your example, as well as my code, and I seem
> unable to control which one is which. Are you saying your example works
> differently for you?
>
> Thanks,
>
>  -Tom
>
> On Wed, Jun 20, 2018 at 8:53 PM, Sgouros, Thomas  > wrote:
>
>> Ok, thanks. I'll give that a try.
>>
>>  -Tom
>>
>> On Wed, Jun 20, 2018 at 5:44 PM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> You need ParaView 5.5.2 or master as I said last time, I fixed some
>>> stuff on the python side to properly register animation on a given view.
>>> Or you may have patched your ParaView. But for sure, you need Python
>>> code along with the pvw change I made.
>>>
>>> On Wed, Jun 20, 2018 at 1:12 PM Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Jun 20, 2018 at 10:43 AM, Sebastien Jourdain <
>>>> sebastien.jourd...@kitware.com> wrote:
>>>>
>>>>> Hi Tom,
>>>>>
>>>>> - The mouse handler seems to listen only to one view...
>>>>>
>>>>> I though the example in
>>>>> https://github.com/Kitware/paraviewweb-examples was taking care of
>>>>> that. Or maybe I don't understand what you mean here.
>>>>>
>>>>
>>>> I'm not really sure if it is or it isn't. It may be an illusion created
>>>> by the other problem, but I don't know how to tell for sure which view is
>>>> listening.
>>>>
>>>>
>>>>
>>>>> - The behavior I observe is that one of the views moves...
>>>>>
>>>>> That could be possible but are you using the latest ParaView/master?
>>>>> Normally any registered view should receive a stream of images. With the
>>>>> fix I've done last time for the multi-view.
>>>>>
>>>>>
>>>> The example you wrote behaves this way for me, too, even when I link
>>>> the views (see patch attached). One moves with the cursor and the other
>>>> only moves when you lift up the mouse button. Change the sphere to
>>>> something you can see move better and you'll see. I'm using the ParaViewWeb
>>>> 3.2.2 that you made. Or are you talking about Paraview itself? That's at
>>>> 5.5.0rc3. Were there relevant changes since then?
>>>>
>>>>
>>>>
>>>>> - When I make one of the views invisible...
>>>>>
>>>>> Do you still have a css / size issue when you make it available again?
>>>>> You need to inspect the DOM to see where that component is present (area 
>>>>> of
>>>>> active).
>>>>> Then does interacting on that area is not enough to get the images, or
>>>>> interacting does not work because the "active" area has a size 0x0?
>>>>>
>>>>>
>>>> I did fix the css / size issue that was pestering me last week. Your
>>>> explanation has the air of plausibility, but I don't completely understand
>>>> how this would work. Can you suggest how I would find the size of the
>>>> active area?
>>>>
>>>> Thanks,
>>>>
>>>>  -Tom
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Jun 20, 2018 at 6:38 AM Sgouros, Thomas <
>>>>> thomas_sgou...@brown.edu> wrote:
>>>>>
>>>>>> Hi All:
>>>>>>
>>>>>> I'm working on a ParaViewWeb client talking to a pvpython server that
>>>>>> shows two linked renderviews. The link works, and it all looks great, but
>>>>>> there remain a couple of oddities I can't seem to squeeze out:
>>>>>>
>>>>>>  - The mouse handler seems to listen only t

Re: [Paraview] paraviewweb, linked views, mouse handler

2018-06-20 Thread Sebastien Jourdain
You need ParaView 5.5.2 or master as I said last time, I fixed some stuff
on the python side to properly register animation on a given view.
Or you may have patched your ParaView. But for sure, you need Python code
along with the pvw change I made.

On Wed, Jun 20, 2018 at 1:12 PM Sgouros, Thomas 
wrote:

>
>
> On Wed, Jun 20, 2018 at 10:43 AM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Tom,
>>
>> - The mouse handler seems to listen only to one view...
>>
>> I though the example in https://github.com/Kitware/paraviewweb-examples
>> was taking care of that. Or maybe I don't understand what you mean here.
>>
>
> I'm not really sure if it is or it isn't. It may be an illusion created by
> the other problem, but I don't know how to tell for sure which view is
> listening.
>
>
>
>> - The behavior I observe is that one of the views moves...
>>
>> That could be possible but are you using the latest ParaView/master?
>> Normally any registered view should receive a stream of images. With the
>> fix I've done last time for the multi-view.
>>
>>
> The example you wrote behaves this way for me, too, even when I link the
> views (see patch attached). One moves with the cursor and the other only
> moves when you lift up the mouse button. Change the sphere to something you
> can see move better and you'll see. I'm using the ParaViewWeb 3.2.2 that
> you made. Or are you talking about Paraview itself? That's at 5.5.0rc3.
> Were there relevant changes since then?
>
>
>
>> - When I make one of the views invisible...
>>
>> Do you still have a css / size issue when you make it available again?
>> You need to inspect the DOM to see where that component is present (area of
>> active).
>> Then does interacting on that area is not enough to get the images, or
>> interacting does not work because the "active" area has a size 0x0?
>>
>>
> I did fix the css / size issue that was pestering me last week. Your
> explanation has the air of plausibility, but I don't completely understand
> how this would work. Can you suggest how I would find the size of the
> active area?
>
> Thanks,
>
>  -Tom
>
>
>
>
> On Wed, Jun 20, 2018 at 6:38 AM Sgouros, Thomas 
>> wrote:
>>
>>> Hi All:
>>>
>>> I'm working on a ParaViewWeb client talking to a pvpython server that
>>> shows two linked renderviews. The link works, and it all looks great, but
>>> there remain a couple of oddities I can't seem to squeeze out:
>>>
>>>  - The mouse handler seems to listen only to one view, and I can't seem
>>> to control which one it pays attention to. How can I demand it listen to
>>> one or the other?
>>>
>>>  - The behavior I observe is that one of the views moves with the mouse
>>> on a click and the other catches up when I release it. They do not move
>>> together, although this is close enough. Is this the expected behavior?
>>>
>>> A possibly relevant data point: On the machine where the pvpython server
>>> is running, there is a little undecorated window that appears, and the view
>>> that I see in there is the one that moves with the mouse. But I can't seem
>>> to control which view is visible there. Most of the time it seems to be the
>>> one I draw second, but not all the time. What is this window and what can
>>> it tell me?
>>>
>>> One other issue:
>>>
>>>  - When I make one of the views invisible (by simply not rendering it in
>>> the parent React object) I can't get it to render when it reappears. The
>>> render function is being invoked, but nothing appears. If I refresh the
>>> whole page, it appears again.
>>>
>>>
>>> Thank you,
>>>
>>>  -Tom
>>> ___
>>> Powered by www.kitware.com
>>>
>>> ParaView discussion is moving! Please visit
>>> https://discourse.paraview.org/ for future posts.
>>>
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraviewweb, linked views, mouse handler

2018-06-20 Thread Sebastien Jourdain
Hi Tom,

- The mouse handler seems to listen only to one view...

I though the example in https://github.com/Kitware/paraviewweb-examples was
taking care of that. Or maybe I don't understand what you mean here.

- The behavior I observe is that one of the views moves...

That could be possible but are you using the latest ParaView/master?
Normally any registered view should receive a stream of images. With the
fix I've done last time for the multi-view.

- When I make one of the views invisible...

Do you still have a css / size issue when you make it available again? You
need to inspect the DOM to see where that component is present (area of
active).
Then does interacting on that area is not enough to get the images, or
interacting does not work because the "active" area has a size 0x0?

Seb

On Wed, Jun 20, 2018 at 6:38 AM Sgouros, Thomas 
wrote:

> Hi All:
>
> I'm working on a ParaViewWeb client talking to a pvpython server that
> shows two linked renderviews. The link works, and it all looks great, but
> there remain a couple of oddities I can't seem to squeeze out:
>
>  - The mouse handler seems to listen only to one view, and I can't seem to
> control which one it pays attention to. How can I demand it listen to one
> or the other?
>
>  - The behavior I observe is that one of the views moves with the mouse on
> a click and the other catches up when I release it. They do not move
> together, although this is close enough. Is this the expected behavior?
>
> A possibly relevant data point: On the machine where the pvpython server
> is running, there is a little undecorated window that appears, and the view
> that I see in there is the one that moves with the mouse. But I can't seem
> to control which view is visible there. Most of the time it seems to be the
> one I draw second, but not all the time. What is this window and what can
> it tell me?
>
> One other issue:
>
>  - When I make one of the views invisible (by simply not rendering it in
> the parent React object) I can't get it to render when it reappears. The
> render function is being invoked, but nothing appears. If I refresh the
> whole page, it appears again.
>
>
> Thank you,
>
>  -Tom
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtk renderer

2018-06-12 Thread Sebastien Jourdain
Hi Tom,

Glad you figure it out. What I was previously trying to say was that in you
CSS definition you were not providing any constraint on the width and the
behavior of a container was to match the width of what it contains unless
the contains is smaller than the width of the window (block). So the parent
container has no reason to shrink since it always contains a canvas of a
fixed size. Unless you tell that container that it should not be affected
by the size of what is inside.

On Tue, Jun 12, 2018 at 6:09 AM Sgouros, Thomas 
wrote:

> Ok, turns out this is a CSS question. Table-layout: 'fixed' is the answer
> (in the display: 'table' div), in case someone else is ever wondering why
> their cells grow but do not shrink. Sorry for the extra traffic.
>
>  -Tom
>
> On Mon, Jun 11, 2018 at 5:25 PM, Sgouros, Thomas  > wrote:
>
>> I should also add that the reason I need this is because I'm trying to
>> toggle the visibility of one of two side-by-side vtkRenderer objects. But
>> what happens is that when I make one of them invisible, the container of
>> the other assumes a width of 100% and the VtkRenderer also gets wide. But
>> then when I make it visible again, the VTKRenderer is a fixed width and
>> will not shrink to fit its window.
>>
>> I imagine I can also deal with this by explicitly setting the width of
>> the VtkRenderer, but don't understand why it doesn't work automatically.
>> But maybe setting it explicitly is the preferred method?
>>
>> Thanks,
>>
>>  -Tom
>>
>> On Mon, Jun 11, 2018 at 5:06 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Hi Sebastien:
>>>
>>> I'm afraid I don't understand what you're saying here. Why would the
>>> container grow due to the setup of my css? I thought the way it works is
>>> that I resize the window, and SIzeHelper.onSizeChange() gets called. I use
>>> that function to call .resize() on the renderers and the vertical works
>>> perfectly, but the horizontal only goes one direction.
>>>
>>> Here's the entire hierarchy. There is no external CSS, so this is
>>> everything. I went back and tried to make the height and width parallel,
>>> set the same way. What I observe is that as I change the window size, the
>>> height (the number '686' in the image) changes when I make the window
>>> smaller or larger, but the width (the number '565') only changes when I
>>> make the window wider. When I make the window narrower I have to refresh
>>> the page to get the new width and then it looks right. Can you identify
>>> what isn't the same between width and height in my hierarchy?
>>>
>>> Thanks,
>>>
>>>  -Tom
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Jun 7, 2018 at 3:42 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> The renderer will ask for its container size when you call resize() on
>>>> it. So if that container keep growing due to the setup of your css, the
>>>> size propagation won't go to the server as the container will never shrink.
>>>>
>>>> You need to fix the width in some way like you did for the height. You
>>>> can use 50vw or use a mix of absolute/relative position in your dom
>>>> hierarchy.
>>>>
>>>> On Thu, Jun 7, 2018 at 12:35 PM Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> Hi Sebastien:
>>>>>
>>>>> Looks like this:
>>>>>
>>>>> >>>>      style={{position: 'relative',
>>>>>  height: '80vh',
>>>>>  overflow: 'hidden',
>>>>>  zIndex: '10',
>>>>> }}
>>>>> />
>>>>>
>>>>> Another data point: when I shrink or grow the window in the vertical,
>>>>> the *height* of the canvas element changes in both directions, but the
>>>>> width only changes when I grow the window and not when I shrink it. Maybe
>>>>> what you're saying though is that I should travel up the hierarchy and see
>>>>> where I'm setting heights and widths in non-parallel ways?
>>>>>
>>>>> Thank you,
>>>>>
>>>>>  -Tom
>>&g

Re: [Paraview] vtk renderer

2018-06-07 Thread Sebastien Jourdain
The renderer will ask for its container size when you call resize() on it.
So if that container keep growing due to the setup of your css, the size
propagation won't go to the server as the container will never shrink.

You need to fix the width in some way like you did for the height. You can
use 50vw or use a mix of absolute/relative position in your dom hierarchy.

On Thu, Jun 7, 2018 at 12:35 PM Sgouros, Thomas 
wrote:

> Hi Sebastien:
>
> Looks like this:
>
>   style={{position: 'relative',
>  height: '80vh',
>  overflow: 'hidden',
>  zIndex: '10',
> }}
> />
>
> Another data point: when I shrink or grow the window in the vertical, the
> *height* of the canvas element changes in both directions, but the width
> only changes when I grow the window and not when I shrink it. Maybe what
> you're saying though is that I should travel up the hierarchy and see where
> I'm setting heights and widths in non-parallel ways?
>
> Thank you,
>
>  -Tom
>
>
> On Thu, Jun 7, 2018 at 2:28 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Tom,
>>
>> That would be a ParaViewWeb question. The issue is related to the css for
>> your div that contains the renderer.
>> To allow the renderer to shrink you need to set "overflow: hidden;"
>> assuming the rest of the size of the div is defined by other constraints.
>>
>> Seb
>>
>> On Thu, Jun 7, 2018 at 11:41 AM Sgouros, Thomas 
>> wrote:
>>
>>> Hi All:
>>>
>>> I'm not sure if this is a VTK question or a Paraview question, so
>>> apologies in advance. In a ParaViewWeb application, I have a vtkRenderer in
>>> a div in another div, etc. The vtkRenderer seems to adjust when I make the
>>> window it's in bigger or the container, but it does not resize when I make
>>> the window smaller. Using the browser's element viewer, I can see the
>>>  object inside, and see its width reach when I expand elements and
>>> refuse to react when I contract the window or container.
>>>
>>> When I create the vtk renderer, I use this code:
>>>
>>>this.renderers.push(VtkRenderer.newInstance({
>>>   client: this.model.pvwClient,
>>>   viewId: result,
>>> }) );
>>>
>>> ... and then later...
>>>
>>>   SizeHelper.onSizeChange(() => {
>>> this.renderers[0].resize();
>>> this.renderers[1].resize();
>>>   });
>>>   SizeHelper.startListening();
>>>
>>> I invoke the SizeHelper.triggerChange() method regularly and it seems to
>>> work, though again only to make the renderer bigger.
>>>
>>> Should I be resizing these with a direct call to some method? What is
>>> the way I should be doing this?
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>>
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> ParaView discussion is moving! Please visit
>>> https://discourse.paraview.org/ for future posts.
>>>
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] vtk renderer

2018-06-07 Thread Sebastien Jourdain
Hi Tom,

That would be a ParaViewWeb question. The issue is related to the css for
your div that contains the renderer.
To allow the renderer to shrink you need to set "overflow: hidden;"
assuming the rest of the size of the div is defined by other constraints.

Seb

On Thu, Jun 7, 2018 at 11:41 AM Sgouros, Thomas 
wrote:

> Hi All:
>
> I'm not sure if this is a VTK question or a Paraview question, so
> apologies in advance. In a ParaViewWeb application, I have a vtkRenderer in
> a div in another div, etc. The vtkRenderer seems to adjust when I make the
> window it's in bigger or the container, but it does not resize when I make
> the window smaller. Using the browser's element viewer, I can see the
>  object inside, and see its width reach when I expand elements and
> refuse to react when I contract the window or container.
>
> When I create the vtk renderer, I use this code:
>
>this.renderers.push(VtkRenderer.newInstance({
>   client: this.model.pvwClient,
>   viewId: result,
> }) );
>
> ... and then later...
>
>   SizeHelper.onSizeChange(() => {
> this.renderers[0].resize();
> this.renderers[1].resize();
>   });
>   SizeHelper.startListening();
>
> I invoke the SizeHelper.triggerChange() method regularly and it seems to
> work, though again only to make the renderer bigger.
>
> Should I be resizing these with a direct call to some method? What is the
> way I should be doing this?
>
> Thank you,
>
>  -Tom
>
>
>
> ___
> Powered by www.kitware.com
>
> ParaView discussion is moving! Please visit
> https://discourse.paraview.org/ for future posts.
>
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

ParaView discussion is moving! Please visit https://discourse.paraview.org/ for 
future posts.

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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] paraviewweb multiple renderview problem

2018-05-28 Thread Sebastien Jourdain
Hi Tom,

There might be a bug (sometime it happen ;-). If you can provide a tiny
example app with a cone and cube in two views, I might be able to quickly
look at it and even fix the source of the issue.

1) The active view won't help you in your current setup as it is a
convenient way to ignore the view id. But since you need a clear
distinction, you will have to stick to a given view id to prevent mixup.

2) They are supposed to be unique and we know by nature they are a counter
and -1 represent the "active" one. Normally the type should not matter. But
the server usually send it as a string.

3) Normally the mouse handler hold that viewId as well. But if not provided
(-1), it will affect the active view.

HTH,

Seb

On Sun, May 27, 2018 at 8:34 PM Sgouros, Thomas 
wrote:

> Hi All:
>
> For a ParaViewWeb application using pvpython as a server, I have two
> vtkRenderer objects side-by-side. I have used setViewId() to set the view
> IDs of those two objects to correspond to two different RenderView objects
> over on the server, with viewIDs retrieved using the GetGlobalIDAsString()
> method.
>
> I expected to see the different render views in the two different
> vtkRenderers, but unfortunately what I see is always the same visualization
> in the two different windows, sometimes one RenderView, sometimes the other.
>
> This is probably too vague a description to diagnose the problem (though
> advice is certainly welcome) so I also have these specific questions:
>
>  1. Is the concept of the "active" view of any use in this context, or
> will that just get in the way? I've tried experimenting with making one or
> the other render view active on the server and it clearly changes the
> behavior, but I still wind up with the same view in both vtkRenderer
> objects.
>
>  2. Are the view IDs supposed to be strings or integers on the client? The
> divvy code seems to imply integers, but there is a "Failed to determine the
> LookupTable being used." error on the server that seems to be associated
> with my choosing to use integers on the client.
>
>  3. How is the MouseHandler code supposed to relate to these two views? It
> seems to matter which vtkRenderer window it's clicked in, but which one
> moves doesn't seem related to the viewID of the window.
>
> Thank you,
>
>  -Tom
>
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb and multiple windows

2018-05-14 Thread Sebastien Jourdain
// Client viewId setup
https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L135-L138

// Client / server ID exchange
https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L78-L83
https://github.com/Kitware/divvy/blob/master/Server/scatterplotProtocol.py#L552-L556

On Mon, May 14, 2018 at 8:07 AM Sgouros, Thomas 
wrote:

> Great, thank you. Do you have an example of how to use it on the client
> side?
>
> Thanks,
>
>  -Tom
>
> On Sun, May 13, 2018 at 5:51 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> You should set the viewId to the VtkRenderer based on which view from the
>> server you want to be bound to.
>> To retrieve the view Id on the server side, just call on the python side.
>>
>> view.GetGlobalDAsString()
>>
>> I may have small typo for the method name, but in either case the number
>> you want is the "GlobalID".
>>
>> HTH,
>>
>> Seb
>>
>> On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas 
>> wrote:
>>
>>> Hi All:
>>>
>>> I have a ParaViewWeb application going with a pvpython back end, and it
>>> looks great. I want to show views of multiple datasets in it now. I gather
>>> that the layout() methods are not supported in pvpython, so I have to use
>>> separate windows.
>>>
>>> I'm creating the render window on the client with this:
>>>
>>> const renderer = VtkRenderer.newInstance({ client: model.pvwClient });
>>>
>>> I can certainly create two such renderer objects, but I don't see how to
>>> link the Render on my pvpython server to one or the other of the client's
>>> renderer objects.
>>>
>>> I assume I've been using some default behavior where my Show() and
>>> Update() commands get sent to the one renderer, but how do I direct them to
>>> one or the other?
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> ___
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaViewWeb and multiple windows

2018-05-13 Thread Sebastien Jourdain
You should set the viewId to the VtkRenderer based on which view from the
server you want to be bound to.
To retrieve the view Id on the server side, just call on the python side.

view.GetGlobalDAsString()

I may have small typo for the method name, but in either case the number
you want is the "GlobalID".

HTH,

Seb

On Fri, May 11, 2018 at 4:47 PM Sgouros, Thomas 
wrote:

> Hi All:
>
> I have a ParaViewWeb application going with a pvpython back end, and it
> looks great. I want to show views of multiple datasets in it now. I gather
> that the layout() methods are not supported in pvpython, so I have to use
> separate windows.
>
> I'm creating the render window on the client with this:
>
> const renderer = VtkRenderer.newInstance({ client: model.pvwClient });
>
> I can certainly create two such renderer objects, but I don't see how to
> link the Render on my pvpython server to one or the other of the client's
> renderer objects.
>
> I assume I've been using some default behavior where my Show() and
> Update() commands get sent to the one renderer, but how do I direct them to
> one or the other?
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] AppendAttributes issue

2018-04-04 Thread Sebastien Jourdain
This has to do with the origin of our vtkImageData which is not using the
same as your elevation data.

(top, left) vs (bottom, left)

On Wed, Apr 4, 2018 at 11:18 AM, Andy Bauer  wrote:

> Any chance you could share the datasets and maybe a state file so that I
> could try to reproduce your issue?
>
> I can't think of anything off the top of my head that would case this.
>
> On Wed, Apr 4, 2018 at 1:13 PM, Christian Adrián Álvarez Báez <
> christian.alvarez...@gmail.com> wrote:
>
>> Hello,
>>
>> I have an UCD (ASCII) and a DEM, I would like to color the UCD by
>> elevation (since the UCD alone just can be color by Material ID, which has
>> nothing to do with elevation). For this I got a DEM with the exactly same
>> array than the UCD. I apply AppendAtributes to both and I can color now
>> with elevation. The problem is that the elevation color is upside down. I
>> attached a picture to make sense.
>>
>> Thank you very much for your attention. I hope you could help me.
>> Christian
>>
>> ___
>> 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:
>> https://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb server / client mismatch

2018-03-28 Thread Sebastien Jourdain
Yes threading is bad. I didn't noticed that you were creating threads in
your code.

On Wed, Mar 28, 2018 at 4:22 PM, Sgouros, Thomas 
wrote:

> Brilliant. That worked, thank you, and most of the image changes are
> updated with one click of the button rather than one for the control and
> one click on the canvas. However, I often (not always) get this:
>
> CRITICAL:twisted:Unhandled Error
>
> Traceback (most recent call last):
>
>   File "AMSServer.py", line 220, in 
>
> server.start_webserver(options=args, protocol=AMSServer)
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/wslink/server.py",
> line 238, in start_webserver
>
> reactor.run()
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
> line 1243, in run
>
> self.mainLoop()
>
> ---  ---
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
> line 1249, in mainLoop
>
> while self._started:
>
> exceptions.UnboundLocalError: local variable 'self' referenced before
> assignment
>
>
> Traceback (most recent call last):
>
>   File "AMSServer.py", line 220, in 
>
> server.start_webserver(options=args, protocol=AMSServer)
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/wslink/server.py",
> line 238, in start_webserver
>
> reactor.run()
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
> line 1243, in run
>
> self.mainLoop()
>
>   File 
> "/Applications/ParaView-5.5.0-RC3.app/Contents/Python/twisted/internet/base.py",
> line 1247, in mainLoop
>
> while self._started:
>
> UnboundLocalError: local variable 'self' referenced before assignment
>
> Fatal Python error: GC object already tracked
>
> Abort trap: 6
>
> I imagine this is related to the fact that the control that is invoked
> here is a slider, and I set it up so that when the slider is moved, it
> launches a thread that watches to see when the slider stops moving before
> doing an update of the model view. So it probably has something to do with
> the fact that the InvokeEvent('UpdateEvent') call happens in a thread.
> Maybe I shouldn't do that? The other renderer, with ViewPortImageDelivery,
> seemed to handle this fine, though you had to click in the window to see
> the change, which is what I'm trying to fix.
>
> Thank you,
>
>  -Tom
>
>
> p.s. Also thank you for the issue entry.
>
>
>
> On Wed, Mar 28, 2018 at 5:53 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> You need to register the following protocol
>> https://github.com/Kitware/visualizer/blob/master/server/pvw
>> -visualizer.py#L196
>>
>> Then make sure you call:
>> https://github.com/Kitware/visualizer/blob/master/server/pvw
>> -visualizer.py#L208-L209
>>
>> On Wed, Mar 28, 2018 at 3:43 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> HI All:
>>>
>>> I'm trying to switch from ViewPortImageDelivery to VtkImageDelivery so I
>>> can see updates to the web client without having to click in the window.
>>> But apparently the protocols on the server side are deficient, and I get a
>>> client-side error complaining that "viewport.image.animation.fps.max"
>>> is an unregistered method.
>>>
>>> On the python side, tried both of these, but got the same error.
>>>
>>> self.registerVtkWebProtocol(pv_protocols.ParaViewWebViewPort
>>> ImageDelivery())
>>> self.registerVtkWebProtocol(pv_protocols.vtk_protocols.vtkWe
>>> bViewPortImageDelivery())
>>>
>>> This is using the pvpython that comes with ParaView-5.5.0-RC3.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>>
>>>
>>> ___
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] ParaviewWeb server / client mismatch

2018-03-28 Thread Sebastien Jourdain
You need to register the following protocol
https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L196

Then make sure you call:
https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L208-L209

On Wed, Mar 28, 2018 at 3:43 PM, Sgouros, Thomas 
wrote:

> HI All:
>
> I'm trying to switch from ViewPortImageDelivery to VtkImageDelivery so I
> can see updates to the web client without having to click in the window.
> But apparently the protocols on the server side are deficient, and I get a
> client-side error complaining that "viewport.image.animation.fps.max" is
> an unregistered method.
>
> On the python side, tried both of these, but got the same error.
>
> self.registerVtkWebProtocol(pv_protocols.ParaViewWebViewPortImageDelive
> ry())
> self.registerVtkWebProtocol(pv_protocols.vtk_protocols.
> vtkWebViewPortImageDelivery())
>
> This is using the pvpython that comes with ParaView-5.5.0-RC3.
>
> Thank you,
>
>  -Tom
>
>
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] VRML animation

2018-03-28 Thread Sebastien Jourdain
Putting back the mailing list as other could provide an actual answer to
your "immersive question".

ParaView can do immersive animation but that would be managed within
ParaView. So I'm still not sure to understand what you are trying to do.
But maybe other on the mailing list may do...

Seb

On Wed, Mar 28, 2018 at 8:38 AM, GeorgeP S  wrote:

> I am trying to set up an environment where i can enter "inside" the
> simulation and visualize the animation and the results on a height of eye
> level.
> Due to the fact that i saw articles about immersive paraview i thought it
> could export also the animation.
>
> Thank you again for the responce,
> Salachoris Georgios Panagiotis
>
> On Wed, Mar 28, 2018 at 4:32 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> May I ask why VRML? Are you trying to do a time animation of
>> geometry+data/color on the web?
>> What I'm trying to say is that often by narrowing the question you get a
>> perfect answer for it but not a good one for truly solving your problem.
>> So what are you trying to do/solve?
>>
>> Thanks,
>>
>> Seb
>>
>> On Wed, Mar 28, 2018 at 8:19 AM, GeorgeP S  wrote:
>>
>>> Thank you very much for the responce. To your knowledge which program
>>> can do a vrml animation by a .vtp file?
>>>
>>> Thank you again,
>>> Salachoris Georgios Panagiotis
>>>
>>> On Wed, Mar 28, 2018 at 3:46 PM, Utkarsh Ayachit <
>>> utkarsh.ayac...@kitware.com> wrote:
>>>
>>>> To the best of my knowledge, this is not supported currently.
>>>>
>>>> Utkarsh
>>>>
>>>> On Thu, Mar 22, 2018 at 2:14 PM, GeorgeP S 
>>>> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> i would like to ask how is it possible to export in vrml but retain
>>>>> the animation acquired from the models simulation.Is there a specific
>>>>> feature that i have not found out yet about this kind of thing?
>>>>>
>>>>> Thank you!
>>>>>
>>>>>
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>>  Mail
>>>>> priva di virus. www.avast.com
>>>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>>>>> <#m_3492283369435919282_m_-8827445642746360931_m_5815021470817030596_m_-2886712227971363020_m_-1156303584899477793_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>
>>>>> ___
>>>>> 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:
>>>>> https://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>
>>> ___
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] VRML animation

2018-03-28 Thread Sebastien Jourdain
May I ask why VRML? Are you trying to do a time animation of
geometry+data/color on the web?
What I'm trying to say is that often by narrowing the question you get a
perfect answer for it but not a good one for truly solving your problem.
So what are you trying to do/solve?

Thanks,

Seb

On Wed, Mar 28, 2018 at 8:19 AM, GeorgeP S  wrote:

> Thank you very much for the responce. To your knowledge which program can
> do a vrml animation by a .vtp file?
>
> Thank you again,
> Salachoris Georgios Panagiotis
>
> On Wed, Mar 28, 2018 at 3:46 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> To the best of my knowledge, this is not supported currently.
>>
>> Utkarsh
>>
>> On Thu, Mar 22, 2018 at 2:14 PM, GeorgeP S  wrote:
>>
>>> Hello all,
>>>
>>> i would like to ask how is it possible to export in vrml but retain the
>>> animation acquired from the models simulation.Is there a specific feature
>>> that i have not found out yet about this kind of thing?
>>>
>>> Thank you!
>>>
>>>
>>> 
>>>  Mail
>>> priva di virus. www.avast.com
>>> 
>>> <#m_5815021470817030596_m_-2886712227971363020_m_-1156303584899477793_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> ___
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] immediate update

2018-03-22 Thread Sebastien Jourdain
In the latest version of ParaViewWeb, I've added the Native implementation
of it while the other one was React only.
Divvy is the application that use the native one.

https://github.com/Kitware/divvy/blob/master/Sources/scatterPlotManager.js#L134-L140

For the client, we initialize it like that:
https://github.com/Kitware/divvy/blob/master/Sources/client.js#L27-L29

HTH,

Seb

On Thu, Mar 22, 2018 at 12:04 PM, Sgouros, Thomas 
wrote:

> That makes sense. I'm using RemoteRenderer, like this:
>
> import RemoteRenderer from 'paraviewweb/src/NativeUI/
> Canvas/RemoteRenderer';
> ...
> smartConnect.onConnectionReady((connection) => {
>   model.pvwClient =
> ParaViewWebClient.createClient(connection,
>[
>  'MouseHandler',
>  'ViewPort',
>  'ViewPortImageDelivery',
>],
>amsProtocols);
>   const renderer = new RemoteRenderer(model.pvwClient);
>  ...
>
> When I look in my paraviewweb/src/NativeUI/Renderers directory, I don't
> see VtkRenderer, only NativeImageRenderer and RemoteRendererStatsTable. I
> see VtkRenderer in the other place, though. Are they the same? Do I use
> them the same way as RemoteRenderer?
>
> Thank you,
>
>  -Tom
>
> On Thu, Mar 22, 2018 at 1:03 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> ViewPortImageDelivery require the JS side to request a render
>> while VtkImageDelivery allow the server to push the image without the
>> client requesting it (self.getApplication().InvokeEvent('UpdateEvent')).
>>
>> VtkImageDelivery is used inside those components:
>> https://github.com/Kitware/paraviewweb/tree/master/src/React
>> /Renderers/VtkRenderer
>> https://github.com/Kitware/paraviewweb/tree/master/src/Nativ
>> eUI/Renderers/VtkRenderer
>>
>> Which renderer do you use and how do you set it up?
>>
>> Seb
>>
>> On Thu, Mar 22, 2018 at 6:38 AM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Thank you, but that doesn't seem to change anything for me. Doing this
>>> now:
>>>
>>> self.renderView1.Update()
>>> self.getApplication().InvokeEvent('UpdateEvent')
>>>
>>> Am I understanding it right that this is communicating with one of the
>>> ViewPort or ViewPortImageDelivery protocols? Should I be sure to include
>>> one of the other built-in protocols? Right now, I use those two, plus
>>> MouseHandler.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> On Wed, Mar 21, 2018 at 11:45 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> On the server side you should do something like:
>>>> https://github.com/Kitware/light-viz/blob/master/server/ligh
>>>> t_viz_protocols.py#L252
>>>>
>>>> On Wed, Mar 21, 2018 at 4:59 PM, Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> Hello all:
>>>>>
>>>>> How do you get the ParaViewWeb client to update the window without
>>>>> clicking in it? I have some controls -- some buttons and sliders -- but
>>>>> when I change them, the view doesn't update until I click in the view 
>>>>> frame
>>>>> and move slightly.
>>>>>
>>>>> Thank you,
>>>>>
>>>>>  -Tom
>>>>>
>>>>> ___
>>>>> 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:
>>>>> https://public.kitware.com/mailman/listinfo/paraview
>>>>>
>>>>>
>>>>
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] immediate update

2018-03-22 Thread Sebastien Jourdain
ViewPortImageDelivery require the JS side to request a render
while VtkImageDelivery allow the server to push the image without the
client requesting it (self.getApplication().InvokeEvent('UpdateEvent')).

VtkImageDelivery is used inside those components:
https://github.com/Kitware/paraviewweb/tree/master/src/React/Renderers/VtkRenderer
https://github.com/Kitware/paraviewweb/tree/master/src/NativeUI/Renderers/VtkRenderer

Which renderer do you use and how do you set it up?

Seb

On Thu, Mar 22, 2018 at 6:38 AM, Sgouros, Thomas 
wrote:

> Thank you, but that doesn't seem to change anything for me. Doing this now:
>
> self.renderView1.Update()
> self.getApplication().InvokeEvent('UpdateEvent')
>
> Am I understanding it right that this is communicating with one of the
> ViewPort or ViewPortImageDelivery protocols? Should I be sure to include
> one of the other built-in protocols? Right now, I use those two, plus
> MouseHandler.
>
> Thank you,
>
>  -Tom
>
> On Wed, Mar 21, 2018 at 11:45 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> On the server side you should do something like:
>> https://github.com/Kitware/light-viz/blob/master/server/ligh
>> t_viz_protocols.py#L252
>>
>> On Wed, Mar 21, 2018 at 4:59 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Hello all:
>>>
>>> How do you get the ParaViewWeb client to update the window without
>>> clicking in it? I have some controls -- some buttons and sliders -- but
>>> when I change them, the view doesn't update until I click in the view frame
>>> and move slightly.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> ___
>>> 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:
>>> https://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] immediate update

2018-03-21 Thread Sebastien Jourdain
On the server side you should do something like:
https://github.com/Kitware/light-viz/blob/master/server/light_viz_protocols.py#L252

On Wed, Mar 21, 2018 at 4:59 PM, Sgouros, Thomas 
wrote:

> Hello all:
>
> How do you get the ParaViewWeb client to update the window without
> clicking in it? I have some controls -- some buttons and sliders -- but
> when I change them, the view doesn't update until I click in the view frame
> and move slightly.
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] simple ParaViewWeb example

2018-03-13 Thread Sebastien Jourdain
Thanks Tom, I'll check it out...

On Tue, Mar 13, 2018 at 2:44 PM, Sgouros, Thomas 
wrote:

> Hi All:
>
> I had a pretty bad time trying to put together the bones of a ParaViewWeb
> client and server, so have taken a few crusts of bread and gone back to try
> to leave a trail of crumbs that others can follow.
>
> Please find a working simple example at:
>
>   https://github.com/tsgouros/ParaViewWeb-SimpleDemo
>
> It doesn't do much, but it works over here, and has some instructions that
> I hope will be of service to the next person trying to follow this trail.
>
> For the experts out there: it would be great if you wanted to look this
> over and tell me what could be improved to make it a better illustration of
> best practices. Even better if you want to make such suggestions in the
> form of pull requests.
>
> For example I can't seem to make all the warnings go away for the npm
> install, and I'm not sure whether the RPC protocol only transmits strings
> or whether type conversions can happen on the client side. Nor am I sure
> that the pvwclient is made available in the smoothest possible way, and so
> on. Your contributions are welcome.
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to make a new protocol

2018-03-03 Thread Sebastien Jourdain
Hi Tom,

The array list should only contain the names that belong to that directory:
https://github.com/Kitware/paraviewweb/tree/master/src/IO/WebSocket/ParaViewWebClient

Then your custom protocol should looks like:
https://github.com/Kitware/paraviewweb/blob/master/src/IO/WebSocket/ParaViewWebClient/ProxyManager.js

Except that you will need to nest it inside an object like:

{
  CustomProtocol1: [...content of the previous example...],
  CustomProtocol2: [...content of the previous example...],
}

Then to use it you will do:

client.CustomProtocol1.availableSources().then(...

You can find a live example of its usage here:
https://github.com/Kitware/divvy/blob/master/Sources/client.js#L27-L65

HTH,

Seb

On Fri, Mar 2, 2018 at 5:02 PM, Sgouros, Thomas 
wrote:

> How do I learn what to do on the client side? I see the 
> ParaViewWebClient.createClient()
> function, and I see that I can add a hash of custom protocols to it, but
> when I try, the client complains.
>
> I tried this:
>
> const config = { sessionURL: 'ws://localhost:1234/ws' };
> const smartConnect = SmartConnect.newInstance({ config });
>
> const amsProtocols = {
>   testbuttonService: function createMethods(session) {
> return {
>   testbutton: () => {
> console.log("hi there **");
> return session.call('amsprotocol.testbutton',[])
>   .then((result) => log('result' + result));
>   },
> };
>   },
> };
>
> smartConnect.onConnectionReady((connection) => {
>   const pvwClient =
> ParaViewWebClient.createClient(connection,
>[
>  'MouseHandler',
>  'ViewPort',
>  'ViewPortImageDelivery',
>  'testbuttonService'   // <---
> I thought this...
>],
>amsProtocols);  // <---
> ...was a key into this hash. No?
>
> Obviously I'm misunderstanding something here, but can someone explain
> what I'm missing? Where is the structure of a client described?
>
> Do I need to do any of this if all I'm trying to do is to get button
> presses and selection widgets to communicate with the pvpython server?
>
> Thank you,
>
>  -Tom
>
> On Thu, Feb 22, 2018 at 11:49 AM, Sgouros, Thomas <
> thomas_sgou...@brown.edu> wrote:
>
>> Thank you, I will look at it.
>>
>>  -Tom
>>
>> On Thu, Feb 22, 2018 at 11:24 AM, Sebastien Jourdain <
>> sebastien.jourd...@kitware.com> wrote:
>>
>>> LightViz will be a good example as it defines a custom set of protocols
>>> instead of using only the default ones like in Visualizer.
>>>
>>> https://github.com/Kitware/light-viz/tree/master/server
>>>
>>> On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
>>>> Hello all:
>>>>
>>>> Can someone describe the steps necessary to create and use a web socket
>>>> connection between a Paraviewweb client and a pvpython server? I am not
>>>> having much luck finding the documentation for registerVtkWebProtocol()
>>>> which appears to be an important part of the process. Google only helps me
>>>> find pvw-visualizer.py, which I'm sure is useful code, but I'm having a
>>>> hard time making much sense of it as an example.
>>>>
>>>> I would appreciate even just being pointed to the vtk python code, but
>>>> I'll take any pointers you can offer.
>>>>
>>>> Thank you,
>>>>
>>>>  -Tom
>>>>
>>>> ___
>>>> 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:
>>>> https://public.kitware.com/mailman/listinfo/paraview
>>>>
>>>>
>>>
>>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to make a new protocol

2018-02-22 Thread Sebastien Jourdain
LightViz will be a good example as it defines a custom set of protocols
instead of using only the default ones like in Visualizer.

https://github.com/Kitware/light-viz/tree/master/server

On Thu, Feb 22, 2018 at 6:59 AM, Sgouros, Thomas 
wrote:

> Hello all:
>
> Can someone describe the steps necessary to create and use a web socket
> connection between a Paraviewweb client and a pvpython server? I am not
> having much luck finding the documentation for registerVtkWebProtocol()
> which appears to be an important part of the process. Google only helps me
> find pvw-visualizer.py, which I'm sure is useful code, but I'm having a
> hard time making much sense of it as an example.
>
> I would appreciate even just being pointed to the vtk python code, but
> I'll take any pointers you can offer.
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] connecting buttons and python

2018-02-22 Thread Sebastien Jourdain
An example is available here

https://github.com/Kitware/light-viz/blob/master/server/light_viz_protocols.py

On Thu, Feb 22, 2018 at 4:32 AM, Sgouros, Thomas 
wrote:

> There appears to be one more missing piece, though, because my attempt
> provokes an assertion error that appears to be claiming that my protocol,
> derived from a LinkProtocol, is not actually a LinkProtocol:
>
>   File "pvsvn.py", line 41, in initialize
>
> self.registerVtkWebProtocol(self.testbutton())
>
>   File "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/
> Python/vtkmodules/web/wslink.py", line 63, in registerVtkWebProtocol
>
> self.registerLinkProtocol(protocol)
>
>   File 
> "/Applications/ParaView-5.4.1-1232-g1496380e37.app/Contents/Python/wslink/websocket.py",
> line 89, in registerLinkProtocol
>
> assert( isinstance(protocol, LinkProtocol))
>
> AssertionError
>
> At least I think that's what it's saying.
>
> Thank you,
>
>  -Tom
>
> On Thu, Feb 22, 2018 at 6:25 AM, Sgouros, Thomas  > wrote:
>
>> Turns out you can't use capital letters for the protocol options (what
>> should I call them?), according to the discussion at this link. Some people
>> here might find it familiar: https://groups.googl
>> e.com/forum/#!topic/autobahnws/mkjF21Fb8ow
>>
>>  -Tom
>>
>>
>>
>> On Wed, Feb 21, 2018 at 7:56 PM, Scott Wittenburg <
>> scott.wittenb...@kitware.com> wrote:
>>
>>> That actually looks ok to me.  Why isn't pvpython happy with it?  What
>>> version of ParaView are you running?  If it's a recent ParaView and the
>>> problem is you can't import wslink, then setting up a virtualenv with the
>>> missing modules (wslink and its dependencies) might be what you need.  See
>>> this blog post for more information on how to use pvpython but also bring
>>> in the modules in your virtualenv:
>>>
>>> https://blog.kitware.com/using-pvpython-and-virtualenv/
>>>
>>> If the problem is something else, we might need more details.
>>>
>>> Hope this helps.
>>>
>>> Cheers,
>>> Scott
>>>
>>>
>>>
>>> On Wed, Feb 21, 2018 at 5:44 PM, Sgouros, Thomas <
>>> thomas_sgou...@brown.edu> wrote:
>>>
 Thank you that's very helpful. Where will I find how to define the
 protocols on the python side? I've only found a wslink example that looks
 like this:

 from wslink import register as exportRPC
 from wslink.websocket import LinkProtocol

 class myProtocol(LinkProtocol):
 def __init__(self):
 super(myProtocol, self).__init__()

 @exportRPC("myprotocol.testButton")
 def testButton(self, nothing):
 print("*** HELP ")

 Pvpython isn't happy with this, but I'm not sure where to look for the
 right way to do it.

 Thank you,

  -Tom

 On Wed, Feb 21, 2018 at 6:55 PM, Scott Wittenburg <
 scott.wittenb...@kitware.com> wrote:

> Yes that link is old and broken, but if you navigate through the api
> docs links, that is working.  Here's the direct link to the page you
> couldn't find though:
>
> https://kitware.github.io/paraviewweb/api/IO_WebSocket_ParaV
> iewWebClient.html
>
>
>
> On Wed, Feb 21, 2018 at 4:43 PM, Sgouros, Thomas <
> thomas_sgou...@brown.edu> wrote:
>
>> Hello all:
>>
>> Got some nice looking buttons and widgets, but I can't seem to find
>> examples of how to deliver the button press or other widget output to my
>> pvpython server. I imagine the steps are:
>>
>> 1. Create a protocol on the python side. Can I use wslink.register,
>> or is there paraviewweb functionality I should be using?
>>
>> 2. Create a matching protocol on the js side, with
>> ParaviewWebClient.createClient(), but I'm not seeing how to link the
>> protocol to a function that can be linked to a button press.
>>
>> Also, this page, found via a google search, seems potentially useful,
>> but gives me a 404.
>>
>> https://kitware.github.io/paraviewweb/api/ParaViewWebClient.html
>>
>> Many thanks,
>>
>>  -Tom
>>
>> ___
>> 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:
>> https://public.kitware.com/mailman/listinfo/paraview
>>
>>
>

>>>
>>
>
> ___
> 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=ParaV

Re: [Paraview] Using ParaviewWeb examples

2018-02-20 Thread Sebastien Jourdain
Hi Tom,

So everything is up, so you can checkout the website.

Regarding your loader, I think it is good. You can look the ones we use
here:
https://github.com/Kitware/paraviewweb/tree/master/config

And for the dependency, we let the user to add every dependency required
instead of forcing a specific version in our pvw dependency list. That way
they can update or pick version at their own discretion.
Especially if a dependency is missing the error message is pretty explicit
regarding which one needs to be added.

Seb


On Tue, Feb 20, 2018 at 10:44 AM, Sgouros, Thomas 
wrote:

> Cool, thank you. I found some additional dependencies (hammerjs and
> monologue.js) and added this loader to the webpack config for the
> font-awesome thing:
>
>   {
> test: /\.(eot|svg|ttf|woff|woff2)$/,
> loader: 'file-loader?name=public/fonts/[name].[ext]'
>   }
>
> Not sure if that's optimal, but it seems to work. My package dependencies
> look like this now:
>
>  "dependencies": {
> "font-awesome": "^4.7.0",
> "kw-web-suite": "^5.0.0",
> "monologue.js": "^0.3.5",
> "normalize.css": "^8.0.0",
> "paraviewweb": "^3.0.9",
> "react": "^15.5.4",
> "react-dom": "^15.5.4",
> "wslink": "^0.1.5",
> "hammerjs": "^2.0.8"
>   },
>
> Happy to hear if I've gotten something wrong. Looking forward to the new
> site.
>
> Thank you,
>
>  -Tom
>
> On Tue, Feb 20, 2018 at 12:32 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Tom,
>>
>> I've just updated ParaViewWeb documentation (setup) to reflect the latest
>> tools that we use.
>> Also I've updated the examples to use absolute path so you would not need
>> to figure out those relative path resolution.
>>
>> Travis is currently building the new version along with an updated
>> website which usually take around 25 minutes to complete.
>>
>> Seb
>>
>> On Tue, Feb 20, 2018 at 8:16 AM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Yes, my excursion to webpack 1 was enough of a failure that I'm not
>>> tempted.
>>>
>>> Thank you for that, I'll see if I can get something out of those.
>>>
>>>  -Tom
>>>
>>> On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Hi Tom,
>>>>
>>>> Try to stay with the latest webpack. The setup doc was initially
>>>> describing the ParaViewWeb config itself.
>>>> But since we've updated the build process of ParaViewWeb, you could
>>>> look at the actual configuration of ParaViewWeb itself. That will give you
>>>> the proper set of files.
>>>>
>>>> https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js
>>>> https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js
>>>> https://github.com/Kitware/paraviewweb/blob/master/package.json
>>>> https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js
>>>> https://github.com/Kitware/paraviewweb/blob/master/.babelrc
>>>>
>>>> Hope that helps until we fix and update the documentation,
>>>>
>>>> Seb
>>>>
>>>> On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> Hi Sebastien:
>>>>>
>>>>> I suspected that and also tried downgrading to webpack 1, but then
>>>>> loading paraviewweb won't work because lots of its dependencies require
>>>>> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils,
>>>>> worker-loader, several others) It tells you to load the peer dependencies
>>>>> by hand, but that seems not to work for paraviewweb, though I'm probably
>>>>> misunderstanding something.
>>>>>
>>>>> I will forget the examples and try building up a webpack from scratch,
>>>>> but there are a few things in the webpack config that make me nervous 
>>>>> about
>>>>> the prospects:
>>>>>
>>>>>  1. The alias PVWStyle.
>>>>>
>>>>>  2. The "postcss: [require('autoprefixer')... ]
>>>>>
>>>>>  3. 'loader: "expose

Re: [Paraview] Using ParaviewWeb examples

2018-02-20 Thread Sebastien Jourdain
Hi Tom,

I've just updated ParaViewWeb documentation (setup) to reflect the latest
tools that we use.
Also I've updated the examples to use absolute path so you would not need
to figure out those relative path resolution.

Travis is currently building the new version along with an updated website
which usually take around 25 minutes to complete.

Seb

On Tue, Feb 20, 2018 at 8:16 AM, Sgouros, Thomas 
wrote:

> Yes, my excursion to webpack 1 was enough of a failure that I'm not
> tempted.
>
> Thank you for that, I'll see if I can get something out of those.
>
>  -Tom
>
> On Tue, Feb 20, 2018 at 9:54 AM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Tom,
>>
>> Try to stay with the latest webpack. The setup doc was initially
>> describing the ParaViewWeb config itself.
>> But since we've updated the build process of ParaViewWeb, you could look
>> at the actual configuration of ParaViewWeb itself. That will give you the
>> proper set of files.
>>
>> https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js
>> https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js
>> https://github.com/Kitware/paraviewweb/blob/master/package.json
>> https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js
>> https://github.com/Kitware/paraviewweb/blob/master/.babelrc
>>
>> Hope that helps until we fix and update the documentation,
>>
>> Seb
>>
>> On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Hi Sebastien:
>>>
>>> I suspected that and also tried downgrading to webpack 1, but then
>>> loading paraviewweb won't work because lots of its dependencies require
>>> webpack versions up to 2.2.0. (babel-loader, expose-loader, schema-utils,
>>> worker-loader, several others) It tells you to load the peer dependencies
>>> by hand, but that seems not to work for paraviewweb, though I'm probably
>>> misunderstanding something.
>>>
>>> I will forget the examples and try building up a webpack from scratch,
>>> but there are a few things in the webpack config that make me nervous about
>>> the prospects:
>>>
>>>  1. The alias PVWStyle.
>>>
>>>  2. The "postcss: [require('autoprefixer')... ]
>>>
>>>  3. 'loader: "expose?MyWebApp"'.
>>>
>>> All of these seem like maybe they are going to be required for some
>>> parts of paraviewweb. The current version of webpack seems to choke on them
>>> all, and I won't know what to replace them with. Any advice?
>>>
>>> Thank you.
>>>
>>>  -Tom
>>>
>>> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com> wrote:
>>>
>>>> Hi Tom,
>>>>
>>>> The documentation was written when we were still using Webpack 1 and
>>>> unfortunately it is outdated.
>>>> I'll try to update it so it will be easier to follow for users that
>>>> don't know any of those web tools.
>>>>
>>>> For normalize, you can find some information directly on their web site
>>>> https://necolas.github.io/normalize.css/
>>>>
>>>> Seb
>>>>
>>>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> I tried that page twice and get errors about missing fix-autobahn, and
>>>>> when I removed that from the package.json, webpack complained about 
>>>>> missing
>>>>> eslint (I installed eslint, but it doesn't change), and then errors saying
>>>>> "Webpack has been initialised using a configuration object that does not
>>>>> match the API schema" and errors about the output directory needing to be
>>>>> an "**absolute path** (required)". I'm sure there's something simple I'm
>>>>> missing, but not sure what.
>>>>>
>>>>> Thank you,
>>>>>
>>>>>  -Tom
>>>>>
>>>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
>>>>> wrote:
>>>>>
>>>>>> I think you're looking for the setup doc: https://kitware.github.io
>>>>>> /paraviewweb/docs/setup.html
>>>>>> It gives you a sample webpack config. Nearly all the paraviewweb
>>>>>> dependenc

Re: [Paraview] Using ParaviewWeb examples

2018-02-20 Thread Sebastien Jourdain
Hi Tom,

Try to stay with the latest webpack. The setup doc was initially describing
the ParaViewWeb config itself.
But since we've updated the build process of ParaViewWeb, you could look at
the actual configuration of ParaViewWeb itself. That will give you the
proper set of files.

https://github.com/Kitware/paraviewweb/blob/master/webpack.config.js
https://github.com/Kitware/paraviewweb/blob/master/prettier.config.js
https://github.com/Kitware/paraviewweb/blob/master/package.json
https://github.com/Kitware/paraviewweb/blob/master/.eslintrc.js
https://github.com/Kitware/paraviewweb/blob/master/.babelrc

Hope that helps until we fix and update the documentation,

Seb

On Mon, Feb 19, 2018 at 4:34 PM, Sgouros, Thomas 
wrote:

> Hi Sebastien:
>
> I suspected that and also tried downgrading to webpack 1, but then loading
> paraviewweb won't work because lots of its dependencies require webpack
> versions up to 2.2.0. (babel-loader, expose-loader, schema-utils,
> worker-loader, several others) It tells you to load the peer dependencies
> by hand, but that seems not to work for paraviewweb, though I'm probably
> misunderstanding something.
>
> I will forget the examples and try building up a webpack from scratch, but
> there are a few things in the webpack config that make me nervous about the
> prospects:
>
>  1. The alias PVWStyle.
>
>  2. The "postcss: [require('autoprefixer')... ]
>
>  3. 'loader: "expose?MyWebApp"'.
>
> All of these seem like maybe they are going to be required for some parts
> of paraviewweb. The current version of webpack seems to choke on them all,
> and I won't know what to replace them with. Any advice?
>
> Thank you.
>
>  -Tom
>
> On Mon, Feb 19, 2018 at 6:16 PM, Sebastien Jourdain <
> sebastien.jourd...@kitware.com> wrote:
>
>> Hi Tom,
>>
>> The documentation was written when we were still using Webpack 1 and
>> unfortunately it is outdated.
>> I'll try to update it so it will be easier to follow for users that don't
>> know any of those web tools.
>>
>> For normalize, you can find some information directly on their web site
>> https://necolas.github.io/normalize.css/
>>
>> Seb
>>
>> On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> I tried that page twice and get errors about missing fix-autobahn, and
>>> when I removed that from the package.json, webpack complained about missing
>>> eslint (I installed eslint, but it doesn't change), and then errors saying
>>> "Webpack has been initialised using a configuration object that does not
>>> match the API schema" and errors about the output directory needing to be
>>> an "**absolute path** (required)". I'm sure there's something simple I'm
>>> missing, but not sure what.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
>>> wrote:
>>>
>>>> I think you're looking for the setup doc: https://kitware.github.io
>>>> /paraviewweb/docs/setup.html
>>>> It gives you a sample webpack config. Nearly all the paraviewweb
>>>> dependencies are contained in kw-websuite, as documented on that page.
>>>>
>>>> The examples as they stand use a bit of magic, you are right, so they
>>>> can be embedded in the documentation pages. AFAIK, we don't have an install
>>>> option to make a stand-alone example.
>>>> Regards,
>>>> Aron
>>>>
>>>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas <
>>>> thomas_sgou...@brown.edu> wrote:
>>>>
>>>>> Thank you. it would be great also to have pointers to normalize.css,
>>>>> and the webpack and package configs for these examples. They are more like
>>>>> puzzles than examples in their current state, with the challenge to find
>>>>> all the missing pieces and guess how to put them together. Am I missing
>>>>> some intro that steps me through those parts? Or is there a way to see the
>>>>> whole example laid out with those other pieces? Maybe an npm install 
>>>>> option
>>>>> that will give me these examples on my disk?
>>>>>
>>>>> I see fragments of examples on this page: https://kitware.github.i
>>>>> o/paraviewweb/docs/import.html , but apparently it is not enough for
>>>>> me.
>>>>>
>>>>> Thank you,
>>>&g

Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sebastien Jourdain
Hi Tom,

The documentation was written when we were still using Webpack 1 and
unfortunately it is outdated.
I'll try to update it so it will be easier to follow for users that don't
know any of those web tools.

For normalize, you can find some information directly on their web site
https://necolas.github.io/normalize.css/

Seb

On Mon, Feb 19, 2018 at 2:27 PM, Sgouros, Thomas 
wrote:

> I tried that page twice and get errors about missing fix-autobahn, and
> when I removed that from the package.json, webpack complained about missing
> eslint (I installed eslint, but it doesn't change), and then errors saying
> "Webpack has been initialised using a configuration object that does not
> match the API schema" and errors about the output directory needing to be
> an "**absolute path** (required)". I'm sure there's something simple I'm
> missing, but not sure what.
>
> Thank you,
>
>  -Tom
>
> On Mon, Feb 19, 2018 at 4:08 PM, Aron Helser 
> wrote:
>
>> I think you're looking for the setup doc: https://kitware.github.io
>> /paraviewweb/docs/setup.html
>> It gives you a sample webpack config. Nearly all the paraviewweb
>> dependencies are contained in kw-websuite, as documented on that page.
>>
>> The examples as they stand use a bit of magic, you are right, so they can
>> be embedded in the documentation pages. AFAIK, we don't have an install
>> option to make a stand-alone example.
>> Regards,
>> Aron
>>
>> On Mon, Feb 19, 2018 at 3:59 PM, Sgouros, Thomas <
>> thomas_sgou...@brown.edu> wrote:
>>
>>> Thank you. it would be great also to have pointers to normalize.css, and
>>> the webpack and package configs for these examples. They are more like
>>> puzzles than examples in their current state, with the challenge to find
>>> all the missing pieces and guess how to put them together. Am I missing
>>> some intro that steps me through those parts? Or is there a way to see the
>>> whole example laid out with those other pieces? Maybe an npm install option
>>> that will give me these examples on my disk?
>>>
>>> I see fragments of examples on this page: https://kitware.github.i
>>> o/paraviewweb/docs/import.html , but apparently it is not enough for me.
>>>
>>> Thank you,
>>>
>>>  -Tom
>>>
>>> On Mon, Feb 19, 2018 at 2:48 PM, Aron Helser 
>>> wrote:
>>>
 Hi Tom,
 The ParaviewWeb examples always live in a sub-directory of the
 component they illustrate - so here, this is the Composite example, so '..'
 just refers to 'Composite'.
 If you look in the left menu, you can see that 'Composite' is grouped
 into ' Component/Native'. That's the directory it's in.  
 '../../BackgroundColor'
 is a sibling directory to 'Composite', so it will also be in '
 Component/Native'

 Generally you can follow the '..' out from the example sub-directory
 and figure out where you are.

 Hope that helps,
 Aron

 On Mon, Feb 19, 2018 at 2:38 PM, Sgouros, Thomas <
 thomas_sgou...@brown.edu> wrote:

> Hello all:
>
> When I see a Paraviewweb example like this (from Composite.html):
>
> import CompositeComponent from '..';
> import BGColorComponent from '../../BackgroundColor';
>
> Where should I look for BackgroundColor and CompositeComponent? I feel
> sure I could find them eventually, but is there another search algorithm
> besides brute force?
>
> Thank you,
>
>  -Tom
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>

>>>
>>
>
> ___
> 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:
> https://public.kitware.com/mailman/listinfo/paraview
>
>
___
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:
https://public.kitware.com/mailman/listinfo/paraview