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