Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Sebastien Jourdain
Hum, I will have to do it myself to see exactly what is going on. Unfortunately there is no clean way to cleanup the proxies of ParaView, so you know that you start from fresh for each data. I'm wondering if calling Diconnect() before loading the new data could solve the issue. On the other

Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Cagatay Bilgin
adding the following line did not change anything renderers.current.unbindToElementId('renderercontainer'); and I do not know how to check the view id Calling disconnect and connecting again would indeed solve the problem but why would anyone want to do that? I am already connected, all I want to

Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Sebastien Jourdain
By disconnect, I mean the python method Disconnect that basically reset the ServerManager layer without stoping ParaView. To print the view id, if you are using firebug or any development javascript console you can see the output of some JavaScript code if you write

Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Cagatay Bilgin
Hi Seb, I am completely lost here. I tried the disconnect, and as I was expecting the render window is gone and I do not see any visualization. I would guess I will need to reconnect again. The view id is the same before and after. The datafile is correctly changed though. I guess that is the

Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Sebastien Jourdain
Hi Cagatay, could you send me 2 of your state file with your data so I can see how complex is your pipeline and see which approach is the best ? Seb On Fri, May 4, 2012 at 3:27 PM, Cagatay Bilgin bilgi...@gmail.com wrote: Hi Seb, I am completely lost here. I tried the disconnect, and as I

Re: [Paraview] changing the current view in pvw

2012-05-04 Thread Cagatay Bilgin
Hi Seb, There is really not much in my pipeline at the moment. I will do offline rendering using vtk, save the vtp file, and load it on paraviewweb. At the moment I play with sphere and cone objects. I uploaded the application here with the state files

[Paraview] changing the current view in pvw

2012-05-03 Thread Cagatay Bilgin
I am trying to build a web application that can visualize different objects by the use of a drop down bar. I do not want to create new connections or sessions every time the user changes object to be visualized. I've been trying the whole morning and could not figure out how to i) delete the

Re: [Paraview] changing the current view in pvw

2012-05-03 Thread Sebastien Jourdain
Hi Cagatay, does your data needs to be a ParaView state file, our would it be better if it was some other VTK compatible file ? Seb On Thu, May 3, 2012 at 3:18 PM, Cagatay Bilgin bilgi...@gmail.com wrote: I am trying to build a web application that can visualize different objects by the use

Re: [Paraview] changing the current view in pvw

2012-05-03 Thread Sebastien Jourdain
Normally loading a state file should re-initialize everything, so the activeView = paraview.CreateIfNeededRenderView(); paraview.ResetCamera(); activeView.setCenterOfRotation(activeView.getCameraFocalPoint()); should be redone and all the renderer should be re-init with the new view id. Seb

Re: [Paraview] changing the current view in pvw

2012-05-03 Thread Cagatay Bilgin
It only re-initializes if I create another session like this paraview.createSession(Shuttle, , default); but I think I shouldn't be creating a new session just to see a different object. I am completely ok with using different file formats. All I am trying to do is to minimize the

Re: [Paraview] changing the current view in pvw

2012-05-03 Thread Sebastien Jourdain
Well there is several way to deal with what you want to achieve. 1) if all the data that you are interested are kind of small then you can all load them and just call paraview.Show({proxy: objA}) or paraview.Hide({proxy: objA}) To get the proper references of objA, objB, ..., from the state

Re: [Paraview] changing the current view in pvw

2012-05-03 Thread Cagatay Bilgin
Hi Seb, The first option will not scale. We will have a growing number of tissue samples to be visualized and this option will be infeasible soon. I am already re-initializing the renderer with the new activeview. The minimal example illustrating the issue is here var renderers = {}; var