<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#cae2b4>
<DIV><FONT face=Arial size=2>Hello everybody!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am using the Test of ImagePlaneWidget (from 
VTK\Hybrid\Testing\Cxx\ImagePlaneWidget.cxx) and in the test works fine. 
</FONT></DIV>
<DIV><FONT face=Arial size=2>I am using the same code in my app, but there I 
obtain only 2 colors, black where is 0 in the image, white where is not 0 in the 
image.</FONT></DIV>
<DIV><FONT face=Arial size=2>I tried several lookup tables and the results were 
the same.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can somebody help me? What did I 
wrong?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is the code:</FONT></DIV><FONT face=Arial 
size=2>
<DIV><BR>&nbsp;for (int i=0;i&lt;3;i++){ //3=nrPlanes<BR>&nbsp;&nbsp;if 
(!m_bViewReslice) {<BR>&nbsp;&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;Off(); 
<BR>&nbsp;&nbsp;&nbsp;continue;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetInteractor( 
aWin32RenderWindowInteractor);<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetPicker(aCellPicker);<BR>&nbsp;&nbsp;//vImagePlaneWidget[i]-&gt;RestrictPlaneToVolumeOn();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;GetPlaneProperty()-&gt;SetColor(1,1,0);<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetTexturePlaneProperty(aProperty);<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;TextureInterpolateOn();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetResliceInterpolateToLinear();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetInput((vtkDataSet 
*)v16-&gt;GetOutput());&nbsp; &nbsp;//in the test works without cating! 
why?<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetLookupTable(vLookupTable[i]); 
//same if I comment it out</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;DisplayTextOn();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;UpdatePlacement();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;On(); 
<BR>&nbsp;&nbsp;//vImagePlaneWidget[i]-&gt;InteractionOff();<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;InteractionOn();<BR>&nbsp;}<BR>&nbsp;vImagePlaneWidget[0]-&gt;SetPlaneOrientationToXAxes();<BR>&nbsp;vImagePlaneWidget[1]-&gt;SetPlaneOrientationToYAxes();<BR>&nbsp;vImagePlaneWidget[2]-&gt;SetPlaneOrientationToZAxes();<BR>&nbsp;for 
(i=0;i&lt;3;i++)<BR>&nbsp;&nbsp;vImagePlaneWidget[i]-&gt;SetSlicePosition(orig[i]);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
//orig[3] is the center of the volume<BR>&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2>Istvan Matis</FONT></DIV></BODY></HTML>