Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Utkarsh Ayachit
How are you loading the default.xml? Do the best of my knowledge, ParaView Python API has no call to setup LUTs from XML. Utkarsh On Wed, May 18, 2011 at 8:45 PM, Rajvikram Singh rajvikr...@yahoo.comwrote: Hi I've a case where the users can load .xml files saved from the Paraview's 'Edit

Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Rajvikram Singh
Hi Utkarsh    I'm using Jquery to load the .XML files. It works without any problems the first time and RGBPoints extracted from the XML are applied correctly.  The problem arises when the users selects a different XML file (different colormap). When the GetLookupTableForArray is called again

Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Sebastien Jourdain
Hi Raj, could you send the piece of code that update those RGBPoints values ? Thanks, Seb On Thu, May 19, 2011 at 12:58 PM, Rajvikram Singh rajvikr...@yahoo.comwrote: Hi Utkarsh I'm using Jquery to load the .XML files. It works without any problems the first time and RGBPoints

Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Rajvikram Singh
Hi Sebastien Here are the two javascript functions used for setting up the volume visualization. The second one (loadXMLColorMap()) is where Jquery is used to read the colormaps from the XML file. The variables Lut, Sof and CurrColormapFile are global. CurrColormapFile is the XML file chosen

Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Sebastien Jourdain
Hi Raj, why don't you get the LUT the first time and then just change the values on it. Lut.setRGBPoints(rgbPoints) ? Seb On Thu, May 19, 2011 at 2:20 PM, Rajvikram Singh rajvikr...@yahoo.comwrote: Hi Sebastien Here are the two javascript functions used for setting up the volume

Re: [Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-19 Thread Utkarsh Ayachit
Indeed that's what you should do. GetLookupTableForArray's documentation states that: ...Keyword arguments can be passed in to initialize the LUT if a new one is created.. Hence the arguments are used only the first time when the LUT is created. Utkarsh On Thu, May 19, 2011 at 2:28 PM, Sebastien

[Paraview] ParaviewWeb : Repeated calls to GetLookupTableForArray do not change the RGBpoints array

2011-05-18 Thread Rajvikram Singh
Hi    I've a case where the users can load .xml files saved from the Paraview's 'Edit Color Map' widget and apply the color maps (containing R,G,B and Opacity values) to volume rendering. When I start the application a call is made is load a default.xml file and then do a : Lut =