<HTML>
<HEAD>
<TITLE>Re: [Paraview] Bug in Color Scale</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>OK. It sounds like the range is properly being computed, but the range is not getting to the lookup table. If you are able to replicate the problem and capable of running a debug version of ParaView in a debugger, you might be able to narrow this down a bit more by setting a breakpoint at pqPipelineRepresentation::resetLookupTableScalarRange().<BR>
<BR>
Another possibility that occurred to me is that the rescale operation is performed on the selected variable for the selected object in the pipeline browser. Furthermore, all variables with the same name are synchronized to the same color range. Thus, you could see this kind of behavior if you have the wrong item selected in the pipeline browser.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 12/2/08 5:20 PM, "Takuya OSHIMA" <<a href="oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Just for an additional info, here's what I got from the user in<BR>
response to my query. The array range seems to be set correctly.<BR>
<BR>
> "Do you have any additional information that may help the developers<BR>
> reproduce the problem (platform, specific procedure to reproduce the<BR>
> problem, etc)?" -<BR>
><BR>
> - Regarding the platform I copied the OS Information of sysinfo:<BR>
><BR>
> OS: Linux 2.6.22.19-0.1-default x86_64<BR>
> System: openSUSE 10.3 (x86_64)<BR>
> KDE: 3.5.7 "release 72.9"<BR>
><BR>
> - Regarding a specific procedure - I would say there is none<BR>
> (-Selecting the *.foam file<BR>
> -In Display switch to pressure "p"<BR>
> -Show legend<BR>
> -Rescale)<BR>
><BR>
> But now back to the question in the current Email...<BR>
><BR>
> The information panel shows a range of [56784.4, 84151.5] for p, hence<BR>
> the correct range. (While the color range is still showing [0;1]).<BR>
<BR>
Takuya OSHIMA, Ph.D.<BR>
Faculty of Engineering, Niigata University<BR>
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<BR>
<BR>
From: Takuya OSHIMA <<a href="oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>><BR>
Subject: Re: [Paraview] Bug in Color Scale<BR>
Date: Tue, 02 Dec 2008 23:19:40 +0900<BR>
<BR>
> I appreciate your response. I have just sent a query about the values<BR>
> repoted in the Information panel to the user. Meanwhile I skimmed<BR>
> through pqPipelineRepresentation and its relevant classes but haven't<BR>
> found anything suspicious so far.<BR>
><BR>
> Takuya OSHIMA, Ph.D.<BR>
> Faculty of Engineering, Niigata University<BR>
> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<BR>
><BR>
> From: "Moreland, Kenneth" <<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>><BR>
> Subject: Re: [Paraview] Bug in Color Scale<BR>
> Date: Mon, 1 Dec 2008 15:44:31 -0700<BR>
><BR>
> > I’m running out of things to suggest. The only problem I can think of (and<BR>
> > this is a stretch) is that somewhere the range in the data array is being<BR>
> > incorrectly set either by some rouge call to the information object or because<BR>
> > the data in the array changes without the vtkDataArray object being aware of<BR>
> > it. Does anyone else have any ideas? Berk? Utkarsh?<BR>
> ><BR>
> > What range of values is reported in the Information panel? Is it giving the<BR>
> > correct range, or the range used in the color scale?<BR>
> ><BR>
> > -Ken<BR>
_______________________________________________<BR>
ParaView mailing list<BR>
<a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>