Re: [Paraview] [Paraview-developers] time to kill the mailing lists?

2018-09-05 Thread Sgouros, Thomas
Do subscribers to the lists have to unsubscribe, or will they just go
quietly away?

Thank you,

 -Tom

On Wed, Sep 5, 2018 at 8:54 AM, Utkarsh Ayachit  wrote:

> Thanks, Benson. I've cleaned up the webpage. Let me know if that's
> still confusing: https://www.paraview.org/community-support/
> On Wed, Sep 5, 2018 at 12:14 PM Benson Muite  wrote:
> >
> > The current paraview website has a link to mailing lists:
> >
> > https://www.paraview.org/
> >
> > buried within that is a message that the lists have been deprecated and
> > a link to the discourse forum:
> >
> > https://discourse.paraview.org/
> >
> > It may be helpful to make the forum a little more prominent on the
> > Paraview website
> >
> >
> > On 09/05/2018 06:57 PM, Utkarsh Ayachit wrote:
> > > Folks,
> > >
> > > We have moved to Discourse (quite successfully). Given the latest
> > > round of phishing emails, with spam email masquerading as being sent
> > > by legitimate users, may be it's time to close the paraview mailing
> > > list? I expect we can shut down the mailing list with a default reply
> > > message instructing any sender to use discourse.paraview.org instead.
> > >
> > > Thoughts? Objections?
> > >
> > > Utkarsh
> > > ___
> > > 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 development 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
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview-developers
>
___
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 Sgouros, Thomas
Brilliant. I knew I was doing something dumb. Thank you.

 -Tom

On Tue, Jun 26, 2018 at 10:37 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> 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


[Paraview] vtk renderer question

2018-06-26 Thread Sgouros, Thomas
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 ? (
  


  
) : 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


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

2018-06-21 Thread Sgouros, Thomas
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 
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 
>> 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
>>>>>> 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 curso

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

2018-06-21 Thread Sgouros, Thomas
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 
> 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
>>>>> 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 i

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

2018-06-20 Thread Sgouros, Thomas
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 
> 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 Sgouros, Thomas
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
>>
>


linking-views.patch
Description: Binary data
___
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 Sgouros, Thomas
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  > 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
>>>>
>>>>
>>>> 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 <
>>>>> thomas_sgou...@brown.edu> 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
>>

Re: [Paraview] vtk renderer

2018-06-11 Thread Sgouros, Thomas
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 
> 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 <
>>> thomas_sgou...@brown.edu> 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/ f

Re: [Paraview] vtk renderer

2018-06-07 Thread Sgouros, Thomas
Hi Sebastien:

Looks like this:



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


[Paraview] vtk renderer

2018-06-07 Thread Sgouros, Thomas
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


Re: [Paraview] [Paraview-developers] Reminder: ParaView community support is transitioning to discourse.paraview.org

2018-06-06 Thread Sgouros, Thomas
Thank you. Will the VTK forums be moving there, too?

 -Tom

On Wed, Jun 6, 2018 at 10:15 AM, Cory Quammen 
wrote:

> Hi ParaView community,
>
> This is just a reminder that we are transitioning our community support
> forums to
>
> https://discourse.paraview.org/
>
> Discourse is now the preferred place to post new topics and help
> requests. In just a week of operation there are already a good number of
> discussions taking place there.
>
> By the way, if you prefer interacting via mailing list, Discourse provides
> a mailing list mode that you can enable by following the guide Utkarsh
> posted:
>
> https://discourse.paraview.org/t/using-discourse-as-a-mailing-list/64
>
> Thanks!
>
> Cory
>
> --
> Cory Quammen
> Staff R Engineer
> Kitware, Inc.
>
> ___
> Powered by www.kitware.com
>
> ParaView development 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
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview-developers
>
>
___
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] seeking pvpython debugging hints

2018-05-30 Thread Sgouros, Thomas
Ok, 18211. That ok?

Thanks,

  -Tom

On Wed, May 30, 2018 at 11:55 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> That, I think, should be an easy fix. Please free free to report a quick
> issue on the issue tracker. Such things are easier to fix when there are
> issues listed as otherwise it's easy to forget.
>
> Thanks
> Utkarsh
> On Wed, May 30, 2018 at 11:51 AM Sgouros, Thomas  >
> wrote:
>
> > Hi Utkarsh:
>
> > It did help, though I wonder why it couldn't tell me what array was the
> problem. The error messages from deep in the bowels of pvpython are pretty
> mysterious.
>
> > But enough carping -- thank you!
>
> >   -Tom
>
> > On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
> >> Tom,
>
> >> This generally means that the array you've chosen to color with in the
> >> script is not available in the dataset and hence its failing to
> determine
> >> the array range.
>
> >> Hope that helps narrow down the issue.
>
> >> Utkarsh
> >> On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas <
> thomas_sgou...@brown.edu>
> >> wrote:
>
> >> > Hello all:
>
> >> > Does anyone have helpful hints to offer about how to debug errors like
> >> these? Some array of mine is out of range, but I don't know what array
> it's
> >> talking about, and don't really see how to find out. To my knowledge the
> >> change in my code that triggered this has nothing to do with any array.
>
> >> > My guess is the "Failed to determine the LookupTable" is the result of
> >> the error after it, since it is sort of a common denominator among
> errors I
> >> see. Does that sound right?
>
> >> > Is there a way to enable more debug information or more verbose error
> >> messages?
>
> >> > Thank you,
>
> >> >   -Tom
>
>
> >> > Warning: In
>
> /Users/kitware/dashboards/buildbot-slave/8275bd07/build/
> superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/
> vtkSMPVRepresentationProxy.cxx,
> >> line 633
>
> >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the
> >> LookupTable being used.
>
>
> >> > Warning: In
>
> /Users/kitware/dashboards/buildbot-slave/8275bd07/build/
> superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/
> vtkSMPVRepresentationProxy.cxx,
> >> line 277
>
> >> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array
> >> range.
>
>
> >> > ___
> >> > 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] seeking pvpython debugging hints

2018-05-30 Thread Sgouros, Thomas
Hi Utkarsh:

It did help, though I wonder why it couldn't tell me what array was the
problem. The error messages from deep in the bowels of pvpython are pretty
mysterious.

But enough carping -- thank you!

 -Tom

On Wed, May 30, 2018 at 10:23 AM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Tom,
>
> This generally means that the array you've chosen to color with in the
> script is not available in the dataset and hence its failing to determine
> the array range.
>
> Hope that helps narrow down the issue.
>
> Utkarsh
> On Wed, May 30, 2018 at 10:22 AM Sgouros, Thomas  >
> wrote:
>
> > Hello all:
>
> > Does anyone have helpful hints to offer about how to debug errors like
> these? Some array of mine is out of range, but I don't know what array it's
> talking about, and don't really see how to find out. To my knowledge the
> change in my code that triggered this has nothing to do with any array.
>
> > My guess is the "Failed to determine the LookupTable" is the result of
> the error after it, since it is sort of a common denominator among errors I
> see. Does that sound right?
>
> > Is there a way to enable more debug information or more verbose error
> messages?
>
> > Thank you,
>
> >   -Tom
>
>
> > Warning: In
> /Users/kitware/dashboards/buildbot-slave/8275bd07/build/
> superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/
> vtkSMPVRepresentationProxy.cxx,
> line 633
>
> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the
> LookupTable being used.
>
>
> > Warning: In
> /Users/kitware/dashboards/buildbot-slave/8275bd07/build/
> superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/
> vtkSMPVRepresentationProxy.cxx,
> line 277
>
> > vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array
> range.
>
>
> > ___
> > 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


[Paraview] seeking pvpython debugging hints

2018-05-30 Thread Sgouros, Thomas
Hello all:

Does anyone have helpful hints to offer about how to debug errors like
these? Some array of mine is out of range, but I don't know what array it's
talking about, and don't really see how to find out. To my knowledge the
change in my code that triggered this has nothing to do with any array.

My guess is the "Failed to determine the LookupTable" is the result of the
error after it, since it is sort of a common denominator among errors I
see. Does that sound right?

Is there a way to enable more debug information or more verbose error
messages?

Thank you,

 -Tom


Warning: In
/Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx,
line 633

vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Failed to determine the
LookupTable being used.


Warning: In
/Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerManager/Rendering/vtkSMPVRepresentationProxy.cxx,
line 277

vtkSMPVRepresentationProxy (0x7fa0ae89ce00): Could not determine array
range.
___
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 Sgouros, Thomas
Great, thank you.

 -Tom

On Mon, May 14, 2018 at 7:49 AM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> // 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 <thomas_sgou...@brown.edu>
> 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 <
>>> thomas_sgou...@brown.edu> 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-14 Thread Sgouros, Thomas
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 <thomas_sgou...@brown.edu>
> 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] layout question, pvpython

2018-05-11 Thread Sgouros, Thomas
Thank you, you're very kind. I'm all about functional workarounds these
days. It leads to another question of course, but that's a ParaViewWeb
question, so I'll make it another post.

Thank you,

 -Tom


On Fri, May 11, 2018 at 4:06 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Attached is a script that demonstrates what I meant. Note, this is just a
> workaround and not a graceful solution :).
>
> Utkarsh
> On Fri, May 11, 2018 at 3:37 PM Sgouros, Thomas <thomas_sgou...@brown.edu>
> wrote:
>
> > Alas, indeed. Just as I thought I was starting to understand what's going
> on. Was I just misled because there is a trace output that has this in it?
>
> > # get layout
> > layout1 = GetLayoutByName("Layout #1")
> > # split cell
> > layout1.SplitHorizontal(0, 0.5)
>
>
> > Without layout support, can I use pvpython to present two render views
> and link them with a camera link? Can you suggest what direction might
> succeed?
>
> > You may have suggested this already, but I'm not sure the hint about
> view.GetRenderWindow().SetPosition(x, y) is enough for me. I don't really
> get how that's a way forward. What are you suggesting I use that function
> to do?
>
> > Thanks,
>
> >   -Tom
>
> > On Fri, May 11, 2018 at 3:04 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
> >> Tom,
>
> >> Alas, there's no layout support in pvpython. There indeed is a layout
> proxy
> >> (vtkSMLayoutProxy), but they rely on the Qt ParaView components to
> layout
> >> the windows. The proxy itself is the "model", if you will.  And it works
> >> when you execute the layout related updates in the Python shell in the
> >> ParaView UI.
>
> >> A clumpsy way to set a window's position in Python is:
> >> > view.GetRenderWindow().SetPosition(x, y)
>
> >> You can use that to lay out the windows, short of doing something more
> >> elaborate with a GUI library.
>
> >> Utkarsh
>
>
>
>
> >> On Fri, May 11, 2018 at 2:34 PM Sgouros, Thomas <
> thomas_sgou...@brown.edu
>
> >> wrote:
>
> >> > Hi All:
>
> >> > I've become accustomed to throwing around render view objects in
> >> pvpython, swapping them in and out of the view with simple.Show() and
> >> simple.Hide(). Now I have to learn about layout objects. Can someone
> >> suggest the best way to think about these? Are they containers into
> which I
> >> can drop one or more render views and move them around, or are they more
> >> like molds into which I can pour a render view and then use the layout
> as
> >> handles with which to manipulate the views?
>
> >> > Where can I find a list of the methods of a layout object? Or would it
> be
> >> better to call it a layout proxy?
>
> >> > 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


[Paraview] control comparative render in python?

2018-05-11 Thread Sgouros, Thomas
Hi All:

I have a paraviewweb application that accepts a bunch of options and
produces a nice visualization supplied by a pvpython server -- thank you
all for the help you've offered so far. Everyone is happy with this, but of
course the problem with that is now they want more.

I want to have two windows, side by side, rendering different views of the
same data, or the same view of two different data sources, side by side,
ideally always with the same camera position. This seems like exactly what
the comparative render view was built for. Unfortunately, I can't find how
to control that view through python. The Trace functionality seems
indifferent to whatever I do on the comparative view inspector window, and
I can't find any more than a mention in the Guide.

What is the python that corresponds to setting the MxN size of the
comparison and how do I assign a render to some given sector of my
comparison? Is there more to it than that?

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


[Paraview] Failed to determine the LookupTable being used

2018-04-17 Thread Sgouros, Thomas
Hello all:

I have a trace from a simple contour that I drew on a data set, and there
are parts of it that I don't understand. Here it is, with some question
numbers:

from paraview.simple import *

data = EnSightReader(CaseFileName='/my/data/file.case')

renderView1 = GetActiveViewOrCreate('RenderView')
dataDisplay = Show(data, renderView1)## 1

dataDisplay.Representation = 'Surface'
renderView1.ResetCamera()
dataDisplay.SetScalarBarVisibility(renderView1, True)
renderView1.Update()

pressureLUT = GetColorTransferFunction('pressure')  ## 2
contour1 = Contour(Input=data)

contour1.ContourBy = ['POINTS', 'uds_0_scalar']
contour1.Isosurfaces = [500.0]

contour1Display = Show(contour1, renderView1)
contour1Display.Representation = 'Surface'
Hide(data, renderView1)

contour1Display.SetScalarBarVisibility(renderView1, True) ## 3
renderView1.Update()


My questions:

 1. Why do I have to "Show" the raw data right after it's read? I almost
never actually want to do that. I just want to show the contour. Showing
and Hiding the raw data seems like a waste of cycles, but when I remove
references to dataDisplay, I get an error: "Failed to determine the
LookupTable being used." which seems oddly unrelated to what I did.

 2. Where does this value get used? It doesn't seem to me that it is being
used, but it seems related to the last and the next question:

 3. When I choose different scalar values to contour, I often see the
same "Failed to determine the LookupTable being used." here. There seem to
be some limitations on what scalars I can use, but what are they and where
can I read more about these missing lookup tables?

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


Re: [Paraview] ParaviewWeb server / client mismatch

2018-03-28 Thread Sgouros, Thomas
Curses, foiled again.

Thank you,

 -Tom



On Wed, Mar 28, 2018 at 7:35 PM, Sebastien Jourdain <
sebastien.jourd...@kitware.com> wrote:

> 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 <thomas_sgou...@brown.edu
> > 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 Sgouros, Thomas
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


[Paraview] ParaviewWeb server / client mismatch

2018-03-28 Thread Sgouros, Thomas
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.ParaViewWebViewPortImageDelivery())

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


Re: [Paraview] immediate update

2018-03-22 Thread Sgouros, Thomas
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/
> 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 <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 Sgouros, Thomas
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/
> light_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


[Paraview] simple ParaViewWeb example

2018-03-13 Thread Sgouros, Thomas
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


Re: [Paraview] how to make a new protocol

2018-02-22 Thread Sgouros, Thomas
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


[Paraview] how to make a new protocol

2018-02-22 Thread Sgouros, Thomas
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


Re: [Paraview] connecting buttons and python

2018-02-22 Thread Sgouros, Thomas
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.google.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=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] connecting buttons and python

2018-02-21 Thread Sgouros, Thomas
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_
> ParaViewWebClient.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=ParaView

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/paraview


[Paraview] connecting buttons and python

2018-02-21 Thread Sgouros, Thomas
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


Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
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 <aron.hel...@kitware.com>
>> 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 <aron.hel...@kitware.com>
>>>> 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

Re: [Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
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 <aron.hel...@kitware.com>
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 <aron.hel...@kitware.com>
>> 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


[Paraview] Using ParaviewWeb examples

2018-02-19 Thread Sgouros, Thomas
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