<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="stocktickeruk"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="stocktickerca"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-footer-margin:.5in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1377660898;
        mso-list-type:hybrid;
        mso-list-template-ids:1552049200 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Oh so close&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>On a clean Win2000 os + latest hole patches&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>1)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>full
installation of MS Visual Studio.<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk> 2003<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>2)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>installed
CMake 1.8 patch 1<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>3)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>extracted &#8220;VTK-4.2-LatestRelease.tar.gz&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>4)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>ran CMake
against VTK 4.2 source code<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>5)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>pointed
Vis-Studio to the &#8220;VTK.sln&#8221; file<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>6)<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>ran Build |
Build Solution<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Result:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Everything compiled except two errors in
vtkScalarBarActor:&nbsp;&nbsp;&nbsp; (lines 357 and 536) same error:&nbsp; looking
for overloading of &#8216;pow&#8217; to (int, float)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Since pow(float, float) is available, I tried casting the
integer constants to float, and compilation errors went away&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Question:&nbsp; Since I&#8217;m brand new to vtk (a few
hours!) I have no idea yet what pow is doing, and/or why vtkScalarBar is trying
to find an (int,float) overload, but I gotta believe the code that I&#8217;m
seeing.&nbsp;&nbsp; So how come this hasn&#8217;t produced failed tests for
anyone else?&nbsp; Does the (float) casting cause any problems?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Quite frankly, I expected LOTS of setup/compilation errors
with such a new project&#8230;&nbsp; what did I REALLY do wrong?&nbsp; ;-)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>tia&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jim<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Source code and compilation output follows:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color=blue><span style='color:blue'>float</span></font> rgbval =
log10(range[0]) + <o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
i*(log10(range[1])-log10(range[0]))/(numColors -1);<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rgba = lut-&gt;MapValue(pow((<font color=blue><span style='color:blue'>float</span></font>)10,rgbval));<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font
color=blue><span style='color:blue'>float</span></font> lval = log10(range[0])
+ (<font color=blue><span style='color:blue'>float</span></font>)i/(<font
color=blue><span style='color:blue'>this</span></font>-&gt;NumberOfLabels-1) *<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(log10(range[1])-log10(range[0]));<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
val = pow(10,lval);<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>vtkScalarBarActor.cxx<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(357)
: error C2666: 'pow' : 7 overloads have similar conversions<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(618): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'long
double pow(long double,long double)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(572): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'float
pow(float,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(570): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'float
pow(float,float)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(534): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(int,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(532): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(double,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(195): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(double,double)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
while trying to match the argument list '(int, float)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>\VTK-4.2.2\Rendering\vtkScalarBarActor.cxx(536)
: error C2666: 'pow' : 7 overloads have similar conversions<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(620): could be 'long double pow(long double,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(618): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'long
double pow(long double,long double)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(572): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'float
pow(float,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(570): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'float
pow(float,float)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(534): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(int,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(532): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(double,int)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
C:\Program Files\Microsoft Visual Studio .<st1:stocktickeruk w:st="on"><st1:stocktickerca
 w:st="on">NET</st1:stocktickerca></st1:stocktickeruk>
2003\Vc7\include\math.h(195): or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'double
pow(double,double)'<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=1 face="Courier New"><span
style='font-size:8.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
while trying to match the argument list '(int, float)'<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>