Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
*Wed, 4/5/11, Sebastien Jourdain > *wrote: > > > From: Sebastien Jourdain > Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to > pipeline > To: "Rajvikram Singh" > Cc: paraview@paraview.org > Date: Wednesday, 4 May, 2011,

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Rajvikram Singh
/5/11, Sebastien Jourdain wrote: From: Sebastien Jourdain Subject: Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline To: "Rajvikram Singh" Cc: paraview@paraview.org Date: Wednesday, 4 May, 2011, 4:29 AM Hi Raj,  I managed to show the correct color by

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
Hi Raj, I managed to show the correct color by executing that: sliceType.setNormal(0,0,1); sliceType.setOrigin(view1.getCenterOfRotation()); pv.SetDisplayProperties( {proxy : slice, view : view1, Representation : 'Surface', ColorArrayName : 'ImageFile'} ); In fact you shouldn't set any normal/o

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-03 Thread Sebastien Jourdain
', > //ColorArrayName : 'ImageFile', > LookupTable : lut1 > } ); > > pv.Hide({proxy : reader1}); > var dataRep1 = pv.Show({proxy : slice}); > pv.Render(); > > // Create and bind renderer > var renderer = new JavaScriptRenderer(&q

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-02 Thread Sebastien Jourdain
Hi Raj, Another thing. You should do that to set origin and normal. var plan = sliceFilter.getSliceType(); plan.setOrigin(0,0,0); plan.setNormal(1,0,0); in fact the methods SetSliceOrigin/Normal are helper methods on python objects and not properties. You can notice it because of the capital S i

Re: [Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-05-02 Thread Sebastien Jourdain
Hi Raj, You are not getting the propers bounds when you directly access them like that: > reader.Bounds In fact, if you validate each line that you wrote inside the JavaScript console of your browser, you could have seen that Bounds was not part of the reader proxy. Moreover, it goes against the

[Paraview] ParaviewWeb : Adding interactive slice filter to pipeline

2011-04-29 Thread Rajvikram Singh
Hi    I am trying to add a simple slice filter to a ParaviewWeb client that users could use interact with a volume. The bundled PWApp application does this already and so I tried to go through the code and looked at some Python examples. I was able to get an interactive widget to render but it s